JPAStorageService and OpenJDk
McLennan, Neil R
n.mclennan at imperial.ac.uk
Wed Mar 13 08:56:24 EDT 2019
Thanks, I’ve now added to jaxb-api-2.3.1.jar to the classpath and now run into
org.eclipse.jetty.util.MultiException: Multiple exceptions
Suppressed: java.lang.RuntimeException: Error scanning entry com/microsoft/sqlserver/jdbc/AppDTVImpl.class from jar file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/jetty-base/tmp/jetty-0.0.0.0-443-idp.war-_idp-any-9619733119329353050.dir/webinf/WEB-INF/lib/mssql-jdbc-7.2.1.jre11.jar
However com/microsoft/sqlserver/jdbc/AppDTVImpl.class is in mssql-jdbc-7.2.1.jre11.jar
Busy reading up on how Jetty works to try and work out why this is happening
From: users <users-bounces at shibboleth.net> On Behalf Of Daniel Fisher
Sent: 13 March 2019 03:44
To: Shib Users <users at shibboleth.net>
Subject: Re: JPAStorageService and OpenJDk
On Tue, Mar 12, 2019 at 2:50 PM McLennan, Neil R <n.mclennan at imperial.ac.uk<mailto:n.mclennan at imperial.ac.uk>> wrote:
I’m using OpenJDK11, Microsoft JDBC database drivers (mssql-jdbc-7.2.1.jre11.jar) and the HikariCP-2.2.5.jar connection pooling, but get
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.JPAStorageService.EntityManagerFactory' defined in file [C:\Program Files (x86)\Shibboleth\IdP\system\conf\..\..\conf\global.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
Based on Scott's comment seems like that dependency is being pulled in transitively, but maybe that's only happening for tests.
Regardless, that class was removed in Java 9, see http://openjdk.java.net/jeps/320#Java-EE-modules
You'll need to download the jaxb jar from maven and add it to your classpath.
--Daniel Fisher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20190313/f6f63a3a/attachment.html>
More information about the users
mailing list