<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Ouch, one more thing - it's not ONLY that option, also follow the rest of the line:</div><ul><li>-jar xxx.war is replaced by -cp xxx.war (that is we don't "start" the JAR, but we use it for classpath)<br></li><li>to actually start it there is a class name at the end of the line, you can skip %2... options if you don't need them<br data-mce-bogus="1"></li></ul><div>The order is important as java.exe help says, the start class must be after all JVM arguments, anything following is actual program arguments and we don't use these in general.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>RR<br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Cc: </b>"Richard Richter" <virgo@evolveum.com><br><b>Sent: </b>Wednesday, March 24, 2021 2:40:57 PM<br><b>Subject: </b>Re: [midPoint] Message Configuration error: JDBC Driver is not found on classpath<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div style="font-family:'arial' , 'helvetica' , sans-serif;font-size:12pt;color:#000000"><div>Hi,<br></div><br><div>with midPoint 4.2 the real issue is different. The startup command line changed and the critical missing option is here:<br></div><div><a href="https://github.com/Evolveum/midpoint/blob/master/dist/src/main/bin/midpoint.bat#L75" target="_blank" rel="nofollow noopener noreferrer">https://github.com/Evolveum/midpoint/blob/master/dist/src/main/bin/midpoint.bat#L75</a><br></div><br><div>That is: <strong> -Dloader.path=WEB-INF/classes,WEB-INF/lib,WEB-INF/lib-provided,<span class="pl-smi">%MIDPOINT_HOME%</span>\lib</strong><br></div><div>(the ^ character is to continue with the line and probably not relevant for your case)<br></div><br><div>Please, adjust it accordingly for your case, replace %MIDPOINT_HOME% with the actual value. Hope this helps and sorry about this change, but it was necessary on our path to newer Spring Boot. We're considering some options how to hide this hassle, but at this moment this is the way and affects everyone who does not use our scripts. (And yes, I'm aware we broke the support for Windows service, it's actually part of this change and at this moment we don't have a fix. Sorry about it too.)<br></div><br><div>Best regards<br></div><br><div>Richard Richter<br></div><div>midPoint developer<br></div><br><hr id="zwchr"><div><b>From: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Cc: </b>"Sven Lukrafka" <sven.lukrafka@daasi.de><br><b>Sent: </b>Wednesday, March 24, 2021 2:30:57 PM<br><b>Subject: </b>Re: [midPoint] Message Configuration error: JDBC Driver is not found on classpath<br></div><br><div><p>Hello Keith,</p>
<p>you might want to use "oracle.jdbc.driver.OracleDriver" instead
of "oracle.jdbc.OracleDriver".</p>
<p><br>
</p>
<p>Best regards,</p>
<p>Sven<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 24.03.21 um 14:23 schrieb Keith
LeValley via midPoint:<br>
</div>
<blockquote>
<div dir="ltr">I am having trouble trying to connect to an Oracle
database using the Database table connector v1.4.4.0
<div><br>
</div>
<div>I have already downloaded the ojdbc8.jar file and have
placed it in the locations below:</div>
<div><br>
</div>
<div>[root@midPointDemo var]# find / -name ojdbc8.jar<br>
/opt/midpoint-4.2/var/lib/ojdbc8.jar<br>
/opt/midpoint-4.2/var/ojdbc8.jar<br>
/opt/midpoint-4.2/lib/ojdbc8.jar</div>
<div><br>
</div>
<div>-----------------------------------------------------------------------------</div>
<div>Below is my service file that I use to run midpoint:</div>
<div><br>
</div>
<div>[Unit]<br>
Description=MidPoint Standalone Service<br>
[Service]<br>
User=midpoint<br>
WorkingDirectory=/opt/midpoint-4.2<br>
ExecStart=/usr/bin/java -Xmx2048m
-Dmidpoint.home=/opt/midpoint-4.2/var -jar
/opt/midpoint-4.2/lib/midpoint.war<br>
SuccessExitStatus=143<br>
[Install]<br>
WantedBy=multi-user.target<br>
</div>
<div><br>
</div>
<div>---------------------------------------------------------------------------------</div>
<div>This is the config I am using for the class path</div>
<div><br>
</div>
<div><gen699:jdbcDriver>oracle.jdbc.OracleDriver</gen699:jdbcDriver><br>
</div>
<div><br>
</div>
<div>I have also tried oracle.jdbc,driver.OracleDriver and
neither are working. The error I am getting is:</div>
<div><br>
</div>
<div><dt id="gmail-id4ee" style="line-height:1.42857;font-weight:700;float:left;width:100px;text-align:right;text-overflow:ellipsis;white-space:nowrap;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">Operation</dt>
<dd style="line-height:1.42857;margin-left:130px;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'"><span id="gmail-id4ef" style="font-weight:700">ICF schema</span></dd>
<dt id="gmail-id4f0" style="line-height:1.42857;font-weight:700;float:left;width:100px;text-align:right;text-overflow:ellipsis;white-space:nowrap;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">Message</dt>
<dd id="gmail-id4f1" style="line-height:1.42857;margin-left:130px;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">Configuration
error: JDBC Driver is not found on classpath.</dd>
<dd style="line-height:1.42857;margin-left:130px;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">
<table class="gmail-paramtable" style="border-collapse:collapse;border-spacing:0px;background-color:transparent;border:0px"></table>
</dd>
<dt id="gmail-id4f2" style="line-height:1.42857;font-weight:700;float:left;width:100px;text-align:right;text-overflow:ellipsis;white-space:nowrap;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">Context</dt>
<dd style="line-height:1.42857;margin-left:130px;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">
<table class="gmail-paramtable" style="border-collapse:collapse;border-spacing:0px;background-color:transparent;border:0px"><tbody><tr class="gmail-paramtable-row"><th class="gmail-paramtable-name" style="padding:0px;text-align:left;vertical-align:top">connector</th><td class="gmail-paramtable-value" style="padding:0px 20px 0px 5px;white-space:pre-wrap">[class org.identityconnectors.framework.impl.api.local.LocalConnectorFacadeImpl]</td></tr></tbody></table>
</dd>
<dt id="gmail-id4f3" style="line-height:1.42857;font-weight:700;float:left;width:100px;text-align:right;text-overflow:ellipsis;white-space:nowrap;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">Error</dt>
<dd id="gmail-id4f4" style="line-height:1.42857;margin-left:130px;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'">Configuration
error: JDBC Driver is not found on classpath.</dd>
<dd style="line-height:1.42857;margin-left:130px;color:rgb( 51 , 51 , 51 );font-family:'sans pro' 'helvetica neue'"><a style="background-color:transparent;color:rgb( 60 , 141 , 188 )">show</a><br></dd>
<dd class="gmail-stacktrace" id="gmail-id4f5" style="line-height:1.42857;margin-left:130px;font-family:monospace;white-space:pre-wrap;font-size:11px;color:rgb( 51 , 51 , 51 )">com.evolveum.midpoint.util.exception.ConfigurationException: Configuration error: JDBC Driver is not found on classpath.</dd>
</div>
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Not really sure where to troubleshoot from here. My
assumption is the ojdbc8.jar file isn't getting picked up by
midpoint but I have tried placing it every location I can
think off where midpoint might look, any suggestions or help
would be appreciated.</div>
<div><br>
</div>
<div>PS- I did cat the jar and it is in fact a binary file, I
have restarted both the service and the server itself
multiple times, and I changed the ownership of the jar to
the midpoint service account just to ensure it wasn't a
strange permissions issue.</div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Keith LeValley<br>
<div><font face="arial, helvetica, sans-serif">Identity
Services Architect</font>, Davenport
University</div>
<div>phone: (616) 732-1102</div>
<div><a href="mailto:klevalley2@davenport.edu" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">klevalley2@davenport.edu<br>
</a><br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre">_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">midPoint@lists.evolveum.com</a>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="nofollow noopener noreferrer nofollow noopener noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>https://lists.evolveum.com/mailman/listinfo/midpoint<br></div></div><br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>https://lists.evolveum.com/mailman/listinfo/midpoint<br></div></div></body></html>