[midPoint] midPoint Digest, Vol 148, Issue 13

Ashwill, Steven L sashwill at uillinois.edu
Fri Aug 23 14:01:19 CEST 2024


Thank you.  This is very helpful.

-----Original Message-----
From: midPoint <midpoint-bounces at lists.evolveum.com> On Behalf Of midpoint-request at lists.evolveum.com
Sent: Thursday, August 22, 2024 6:02 PM
To: midpoint at lists.evolveum.com
Subject: midPoint Digest, Vol 148, Issue 13

Send midPoint mailing list submissions to
	midpoint at lists.evolveum.com

To subscribe or unsubscribe via the World Wide Web, visit
	https://urldefense.com/v3/__https://lists.evolveum.com/mailman/listinfo/midpoint__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJT4r0opaw$
or, via email, send a message with subject or body 'help' to
	midpoint-request at lists.evolveum.com

You can reach the person managing the list at
	midpoint-owner at lists.evolveum.com

When replying, please edit your Subject line so it is more specific than "Re: Contents of midPoint digest..."


Today's Topics:

   1. Re: adding external jars (Kamil Jires)
   2. ServiceType schema extension - Error when writing to fields -
      Midpoint 4.4.8 (Alcides Moraes)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Aug 2024 13:37:37 +0200
From: Kamil Jires <kamil.jires at evolveum.com>
To: midpoint at lists.evolveum.com
Subject: Re: [midPoint] adding external jars
Message-ID: <ea32a422-065d-4667-b65b-0671b1f15e2f at evolveum.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Steve,

  as you are not providing the use case I can only guess the goal you are trying to reach. Let me answer in general level.

     1) midPoint home directory (preferred way)

In the midpoint home directory there is lib subdirectory. In case you place the jar file into this location it will be loaded with the next midPoint start. It will work out of the box and nothing else have to be done.

The default location (could be changed by the configuration) is
/opt/midpoint/var(/lib) .

This approach is stable also over the updates and the jar file is places independently to the midPoint jar file.

      2) overlay (not recommended in this case)

Even it is not recommended technically you can add the file into the jar file. It should also work but this level of change may several impact. 
The most visible are:

  - once you want to update the midPoint version you have to update all the future file to have it available (your current state)

  - under about, there is information announcing the official build (checking signature of the file). After the update there will be shown "Unofficial build" - https://urldefense.com/v3/__https://docs.evolveum.com/midpoint/reference/admin-gui/midpoint-jar-signature-status/__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJTLtw-gEg$ 

It can be done manually. There is also available overlay project ( https://urldefense.com/v3/__https://docs.evolveum.com/midpoint/features/current/overlay-project/__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJS7_zhKXg$  ) which may help you maintaining the overlay to the future.



If it si possible start with the option of home directory.

I hope this information will help you.

Best Regards,

Kamil

On 8/15/24 16:40, Ashwill, Steven L via midPoint wrote:
> Hello,
> In the midpoint-4.8.3 build, how do I add an external jar file?
> Currently, in the 4.4.8 build, we just add it to the WEB-INF/lib folder in the war file and midpoint can access the methods in the jar.  What steps are needed to add a folder of additional jars. It appears that PropertiesLauncher might be the solution, but I want to check to see if it is supported by this build? Is it as simple as LOADER_PATH as an Environment variable and setting it to the path of the external jars folder?
>
> Thanks,
> Steve
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://urldefense.com/v3/__https://lists.evolveum.com/mailman/listinf
> o/midpoint__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGy
> haDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJT4r0opaw$


------------------------------

Message: 2
Date: Thu, 22 Aug 2024 20:01:27 -0300
From: Alcides Moraes <alcides.neto at gmail.com>
To: midPoint General Discussion <midpoint at lists.evolveum.com>
Subject: [midPoint] ServiceType schema extension - Error when writing
	to fields - Midpoint 4.4.8
Message-ID: <911F5D75-89B5-4CE7-9204-13BA8EC3AC3F at gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello list,
I’m on Midpoint 4.4.8

I recently created a schema extension for ServiceTypes.
The new fields show up on the UI just fine.
But whenever I try to write to any of them, I get this error:

 org.hibernate.dialect.identity.IdentityColumnSupportImpl does not support identity key generation

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gr?ficoColado-1.png
Type: image/png
Size: 80578 bytes
Desc: not available
URL: <https://urldefense.com/v3/__https://lists.evolveum.com/pipermail/midpoint/attachments/20240822/08402ffa/attachment.png__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJSsUO1nxg$ >
-------------- next part --------------


It’s the same error either from the UI, or from mappings, I cannot write values to any of the new fields.
I have many schema extensions, for nearly every object type (Orgs, Users, Roles, Assignments), and they all work.
What could be the issue here? 
Below is the XSD, very simple, with 3 string fields.

Any help is appreciated, thanks

<xsd:schema elementFormDefault="qualified" targetNamespace="https://urldefense.com/v3/__http://midpoint.evolveum.com/xml/ns/samples/extension-3__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJRl_gTy6A$ "
            xmlns:tns="http://midpoint.evolveum.com/xml/ns/samples/extension-3"
            xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
            xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">


    <xsd:complexType name="ServiceExtensionType">
        <xsd:annotation>
            <xsd:appinfo>
                <a:extension ref="c:ServiceType"/>
            </xsd:appinfo>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="contaAplicUsername" type="xsd:string"
                         minOccurs="0">
                <xsd:annotation>
                    <xsd:appinfo>
                        <a:indexed>true</a:indexed>
                        <a:displayName>Nome do usuário AD de aplicação</a:displayName>
                        <a:displayOrder>100</a:displayOrder>
                    </xsd:appinfo>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="contaBindUsername" type="xsd:string"
                         minOccurs="0">
                <xsd:annotation>
                    <xsd:appinfo>
                        <a:indexed>true</a:indexed>
                        <a:displayName>Nome do usuário AD de bind</a:displayName>
                        <a:displayOrder>110</a:displayOrder>
                    </xsd:appinfo>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="contaEcmUsername" type="xsd:string"
                         minOccurs="0">
                <xsd:annotation>
                    <xsd:appinfo>
                        <a:indexed>true</a:indexed>
                        <a:displayName>Nome do usuário de ECM</a:displayName>
                        <a:displayOrder>120</a:displayOrder>
                    </xsd:appinfo>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

</xsd:schema>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6278 bytes
Desc: not available
URL: <https://urldefense.com/v3/__https://lists.evolveum.com/pipermail/midpoint/attachments/20240822/08402ffa/attachment.bin__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJSDaivrgQ$ >

------------------------------

Subject: Digest Footer

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://urldefense.com/v3/__https://lists.evolveum.com/mailman/listinfo/midpoint__;!!DZ3fjg!42NPxngDqLNk23eEXzJiNxqSNyZL25OTRuOfElGIWAnXhCGyhaDNkV6mez3cxVSxZATfogRVnliuRzpOnEz4IwG7yiaawJT4r0opaw$ 


------------------------------

End of midPoint Digest, Vol 148, Issue 13
*****************************************


More information about the midPoint mailing list