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

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

Hi [~jgoodyear] , There is an issue with fediz-cxf. It has javax.xml 

 
[INFO] \- org.apache.cxf.fediz:fediz-cxf:jar:1.6.3-SNAPSHOT:compile
[INFO]    +- javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO]    |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO]    |  \- javax.activation:activation:jar:1.1:compile
[INFO]    \- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:4.0.4:compile
[INFO]       \- jakarta.ws.rs:jakarta.ws.rs-api:jar:3.1.0:compile
 
and also jakarta.xml
 
 +- org.apache.cxf.fediz:fediz-core:jar:1.6.3-SNAPSHOT:provided
[INFO] |  +- joda-time:joda-time:jar:2.10.10:provided
[INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.2:compile
[INFO] |  +- com.sun.xml.bind:jaxb-impl:jar:4.0.5:compile
 
org.apache.cxf.fediz.core.config.FedizConfigurator has an issue when loading 
the fediz_config.xml. In the method below it runs into issue with 
getJaxbContext(). It could be due to conflicting versions. I will do an 
exclusion and pom level and confirm results.
 
 public FedizConfig loadConfig(File f) throws JAXBException, IOException {
        try (InputStream input = Files.newInputStream(f.toPath())) {
            rootConfig = (FedizConfig) 
getJaxbContext().createUnmarshaller().unmarshal(input);
        }
        parseFedizContextList();
        return rootConfig;
    }

> 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