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

Matt Pavlovich edited comment on AMQ-8144 at 3/3/21, 8:38 PM:
--------------------------------------------------------------

This is caused by using a Java JDK newer than 8.x, since JAXB has been removed 
by default as part of the Java JDK re-packaging work in 9.

ActiveMQ 5.17.x is going to have full JDK 11 support and address this 
out-of-the-box.


was (Author: mattrpav):
This is caused by using a Java JDK newer than 8.x, since JAXB has been removed 
by default as part of the Java JDK re-packaging work in 9.

> Missing dependency for parsing <camelContext>
> ---------------------------------------------
>
>                 Key: AMQ-8144
>                 URL: https://issues.apache.org/jira/browse/AMQ-8144
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Camel
>    Affects Versions: 5.16.1
>            Reporter: Stefanie
>            Assignee: Matt Pavlovich
>            Priority: Critical
>
> When having a camel route within activemq.xml the config is not parsable. 
> Thus the server instance couldn't be used.
> {code:java}
> // 2021-02-12 20:42:37,829 | ERROR | Failed to load: class path resource 
> [activemq.xml], reason: Unexpected exception parsing XML document from class 
> path resource [activemq.xml]; nested exception is 
> java.lang.NoClassDefFoundError: 
> com/sun/xml/bind/v2/model/annotation/AnnotationReader | 
> org.apache.activemq.xbean.XBeanBrokerFactory | WrapperSimpleAppMain
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
> exception parsing XML document from class path resource [activemq.xml]; 
> nested exception is java.lang.NoClassDefFoundError: 
> com/sun/xml/bind/v2/model/annotation/AnnotationReader
> {code}
> I found an old Github issue stating the following:
> {code:java}
> the class: com.sun.xml.bind.v2.model.annotation.AnnotationReader moved from 
> jaxb-impl 2.2.6 to jaxb-core 2.2.7{code}
> Adding jaxb-core-2.2.11.jar to the /lib directory solved the problem for me.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to