[ 
https://issues.apache.org/jira/browse/FEDIZ-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17870928#comment-17870928
 ] 

Ganapathiram Natarajan commented on FEDIZ-257:
----------------------------------------------

Hi [~jgoodyear] I checked out the code from the branch and it was able to build 
fediz plugin for tomcat10 although many other projects failed. I tried running 
with it to see how it works. At tomcat server startup I get the error when its 
trying to process fediz config file. Do you have any ideas where to look?
{code:java}
       Caused by: org.apache.catalina.LifecycleException: Failed to load Fediz 
configuration
                at 
org.apache.cxf.fediz.tomcat.FederationAuthenticator.startInternal(FederationAuthenticator.java:119)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at 
org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:171)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4778)
                at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
                at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
                ... 37 more
        Caused by: jakarta.xml.bind.JAXBException: Error while searching for 
service [jakarta.xml.bind.JAXBContextFactory]
 - with linked exception:
[java.util.ServiceConfigurationError: jakarta.xml.bind.JAXBContextFactory: 
org.glassfish.jaxb.runtime.v2.JAXBContextFactory not a subtype]
                at 
jakarta.xml.bind.ContextFinder$1.createException(ContextFinder.java:88)
                at 
jakarta.xml.bind.ContextFinder$1.createException(ContextFinder.java:85)
                at 
jakarta.xml.bind.ServiceLoaderUtil.firstByServiceLoader(ServiceLoaderUtil.java:46)
                at jakarta.xml.bind.ContextFinder.find(ContextFinder.java:377)
                at 
jakarta.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
                at 
jakarta.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
                at 
org.apache.cxf.fediz.core.config.FedizConfigurator.getJaxbContext(FedizConfigurator.java:77)
                at 
org.apache.cxf.fediz.core.config.FedizConfigurator.loadConfig(FedizConfigurator.java:46)
                at 
org.apache.cxf.fediz.tomcat.FederationAuthenticator.startInternal(FederationAuthenticator.java:116)
                ... 43 more
        Caused by: java.util.ServiceConfigurationError: 
jakarta.xml.bind.JAXBContextFactory: 
org.glassfish.jaxb.runtime.v2.JAXBContextFactory not a subtype
                at 
java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
                at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
                at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
                at 
java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
                at 
java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
                at 
jakarta.xml.bind.ServiceLoaderUtil.firstByServiceLoader(ServiceLoaderUtil.java:39)
 {code}
 

> Apache CXF Fediz Tomcat Plugin ver 1.6.1 does not work with Jakarta
> -------------------------------------------------------------------
>
>                 Key: FEDIZ-257
>                 URL: https://issues.apache.org/jira/browse/FEDIZ-257
>             Project: CXF-Fediz
>          Issue Type: Dependency upgrade
>          Components: Plugin
>    Affects Versions: 1.6.1
>            Reporter: Mark
>            Priority: Major
>             Fix For: 1.6.1
>
>
> The following version of the fediz tomcat plugin was compiled with JDK 1.6 
> and uses 
> https://cxf.apache.org/fediz-downloads.html
> https://downloads.apache.org/cxf/fediz/1.6.1/
> If using version 1.6.1 with TomEE https://tomee.apache.org/download.html
> I see errors encountering, java.lang.NoClassDefFoundError: 
> javax/xml/bind/JAXBException, that indicates the Java JAXB (Java Architecture 
> for XML Binding) API is not available in the runtime environment. This issue 
> is commonly encountered when running applications on Java versions 9 and 
> later, as JAXB was removed from the Java SE platform starting with Java 11.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to