[midPoint] Midpoint 4.3 - JDBC Driver is not found on classpath

Richard Richter virgo at evolveum.com
Thu Apr 21 19:23:32 CEST 2022


Hi Andrea 

I hope this transition is only to get to the 4.4, as 4.3 has become unsupported two weeks ago... but to your question: 

Broad problem: We use Spring Boot as the main framework for midPoint application. Here and there something changes in Spring Boot, or something changes in midPoint - and in MP 4.2 and 4.3 there was a bit of a mess around loading these additional libraries. This was taken care of by the provided scripts (midpoint.sh or start.sh) but not if you didn't use them. 

So my question is - how exactly are you starting your midpoint? Is it service or shell script? Please, check midpoint.sh in the version you want to run and search for the start command and its -Dloader.path=... argument in particular (and also how -cp and PropertiesLauncher class name is used instead of simple -jar argument). 

This was fixed in 4.4 and is automagically treated inside WAR again. 

Regards 

Richard Richter 
midPoint Developer 


From: "midPoint General Discussion" <midpoint at lists.evolveum.com> 
To: "midPoint General Discussion" <midpoint at lists.evolveum.com> 
Cc: "Andrea Picconi" <andrea.picconi at innovery.net>, "Jacopo Giuliano" <jacopo.giuliano at innovery.net> 
Sent: Thursday, April 21, 2022 4:57:56 PM 
Subject: [midPoint] Midpoint 4.3 - JDBC Driver is not found on classpath 



Hi all, 



I am having trouble trying to connect our Oracle database using the Database table connector v1.4.4.6. 

We just upgraded from version 4.1 to 4.3 (going through the 4.2) leaving the /var folder unchanged, but now it appears at the time of the connection test, for every Oracle DB, this error: 







While in 4.1 we had no problems with the ojdbc7.jar driver, in this new one we also tried to update it to 8, but always with the same result. 



Now the ojdbc8.jar file is placed it in the locations below: 



/opt/midpoint/var/lib/ojdbc8.jar 



------- 



This is our classPath: 









We also tried to change the permissions in the jar file to do more tests, besides restarting the service and the machines several times. 



Any idea to resolve the problem? 



Thank you and regards, 





	

Andrea Picconi 


IAM Engineer 


MAIL: [ mailto:ANDREA.PICCONI at INNOVERY.NET | ANDREA.PICCONI at INNOVERY.NET ] 



PHONE: +39 06 51963439 (ext. 196) 


MOBILE: - 





[ http://www.innovery.net/ | WWW.INNOVERY.NET ] 



STRADA QUATTRO SNC, PAL A6 


CENTRO DIREZIONALE MILANOFIORI | 20057 ASSAGO (MI) 











_______________________________________________ 
midPoint mailing list 
midPoint at lists.evolveum.com 
https://lists.evolveum.com/mailman/listinfo/midpoint 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220421/80f285f9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 8765 bytes
Desc: image003.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220421/80f285f9/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 2509 bytes
Desc: image004.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220421/80f285f9/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2583 bytes
Desc: image001.jpg
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220421/80f285f9/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1986 bytes
Desc: image002.jpg
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220421/80f285f9/attachment-0003.jpg>


More information about the midPoint mailing list