Hi, yes I'm trying to run it within ActiveMQ and there's no jaxb jars in the
lib or optional directories.
The first part of the stack trace is below.
I dropped in jaxb-api-2.0 and jaxb-impl-2.0.3 which maven had lying around.
Now it complains about javax.activation.DataSource being missing
(NoClassDefFoundError). Stack trace after the jaxb one...
I dropped in activation-1.1.jar from Maven and then
javax.xml.stream.XMLStreamException not found.
I dropped in all the javax.xml jars Maven knew about (jsr173_api-1.0
saaj-api-1.3 and jaxws-api-2.0).
It then started up happily (haven't tested it if sends any messages yet!).
Perhaps there are a few broken dependencies?!
Thanks,
-Dominic
================================
WARN XBeanNamespaceHandlerResolver - Ignoring namespace handler
[org.apache.ca
mel.spring.handler.CamelNamespaceHandler]: problem with handler class file
or de
pendent class
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.getDeclaredConstructor(Class.java:1953)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:6
0)
at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
.initHandlerMappings(DefaultNamespaceHandlerResolver.java:122)
at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
.<init>(DefaultNamespaceHandlerResolver.java:96)
at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
.<init>(DefaultNamespaceHandlerResolver.java:82)
at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerResolver.<ini
t>(XBeanNamespaceHandlerResolver.java:26)
at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.creat
eDefaultNamespaceHandlerResolver(XBeanXmlBeanDefinitionReader.java:87)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createR
eaderContext(XmlBeanDefinitionReader.java:477)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
rBeanDefinitions(XmlBeanDefinitionReader.java:458)
at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.regis
terBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
================================
Loading message broker from: xbean:activemq.xml
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
org.spr
ingframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception pa
rsing XML document from class path resource [activemq.xml]; nested exception
is
java.lang.NoClassDefFoundError: javax/activation/DataSource
java.lang.RuntimeException: Failed to execute start task. Reason:
org.springfram
ework.beans.factory.BeanDefinitionStoreException: Unexpected exception
parsing X
ML document from class path resource [activemq.xml]; nested exception is
java.la
ng.NoClassDefFoundError: javax/activation/DataSource
at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand
.java:70)
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:50)
at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
.java:65)
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:50)
at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
va:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.activemq.console.Main.runTaskClass(Main.java:202)
at org.apache.activemq.console.Main.main(Main.java:91)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Unexp
ected exception parsing XML document from class path resource
[activemq.xml]; ne
--
View this message in context:
http://www.nabble.com/Naive-Question-%28-%29-Why-are-headers-not-maintained-when-message-is-forwarded--tf4247991s22882.html#a12092786
Sent from the Camel - Users mailing list archive at Nabble.com.