And Uwe: you also would need to add it to connector-build.xml. Karl
On Tue, Dec 5, 2023 at 10:03 AM Karl Wright <daddy...@gmail.com> wrote: > Have a look at the list of dependencies in framework/build.xml for various > contexts. I believe jaxb-api is there already but possibly not jaxb-impl. > The fix would then be to add jaxb-impl to every place we see jaxb-api in > that file. Also, the download for jaxb is in the main build.xml and it > would have to include that jar as well. > > I'll look into this when I get done work. > > Karl > > > On Tue, Dec 5, 2023 at 6:11 AM Piergiorgio Lucidi <piergior...@apache.org> > wrote: > >> 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.GenericAuthority) 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 >> >