Hi Piergiorgio! Thank you for your reply.
Actually it tried adding these jars to /connector-lib-proprietary/, unfortunately with no effect - or do i have to add them to a different location? Kind Regards, Uwe -----Ursprüngliche Nachricht----- Von: Piergiorgio Lucidi <piergior...@apache.org> Gesendet: Dienstag, 5. Dezember 2023 12:11 An: dev@manifoldcf.apache.org Betreff: Re: JAXBContext - JDK 11 Hi Uwe, Thank you for sharing this issue and I think that the jaxb library is needed to solve this problem. I didn't tested it yet but probably adding these dependencies should solve it: - jaxb-core:2.3.1 - jaxb-api:2.3.1 - jaxb-impl:2.3.1 I'm going to replicate the issue and raise a ticket on Jira about this. Thank you again and hope this helps ;) Cheers, PG Il giorno mar 5 dic 2023 alle ore 11:55 Wolfinger Uwe <uwe.wolfin...@oegk.at> ha scritto: > When trying to use the Generic Authority Connector > (org.apache.manifoldcf.authorities.authorities.generic.GenericAuthorit > y) we experienced some problems: > > Line 681 (context = JAXBContext.newInstance(Auth.class);) results in > an > error: > > javax.xml.bind.JAXBException: Implementation of JAXB-API has not been > found on module path or classpath. > - with linked exception: > [java.lang.ClassNotFoundException: > com.sun.xml.internal.bind.v2.ContextFactory] > javax.xml.bind.JAXBException: Implementation of JAXB-API has not been > found on module path or classpath. > - with linked exception: > [java.lang.ClassNotFoundException: > com.sun.xml.internal.bind.v2.ContextFactory] > at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:232) > at javax.xml.bind.ContextFinder.find(ContextFinder.java:375) > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691) > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632) > at > org.apache.manifoldcf.authorities.authorities.generic.GenericAuthority > $FetchTokensThread.run(GenericAuthority.java:717) > Caused by: java.lang.ClassNotFoundException: > com.sun.xml.internal.bind.v2.ContextFactory > at > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1412) > at > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220) > at > javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:92) > at > javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:125) > at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:230) > ... 4 more > > We are using JDK 11 as our runtime envirnoment. As far as i > understood, support for jaxb was removed in JDK 11. So my question is, > does anybody know a workaround for this problem (adding jaxb libs > manually?) or are there any plans to upgrade the GenericAuthority > Connector to JDK 11 (jakarta.xml.bind). > > Kind Regards, > Uwe > -- Piergiorgio