NoClassDefFoundError when start up servicemix-camel sa component
----------------------------------------------------------------

                 Key: SM-1405
                 URL: https://issues.apache.org/activemq/browse/SM-1405
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-camel
    Affects Versions: 3.2.1
            Reporter: Willem Jiang



When start servicemix-camel simple sa example , we will  get the below error.

{code}
INFO: Started [EMAIL PROTECTED]:9190
WARN  - ResolverUtil                   - Could not examine class 
'org/apache/activemq/camel/converter/ActiveMQMessageConverter$1.class' due to a 
java.lang.NoCla
ssDefFoundError with message: org/apache/camel/Processor
WARN  - ResolverUtil                   - Could not examine class 
'org/apache/activemq/camel/converter/ActiveMQMessageConverter$1.class' due to a 
java.lang.NoCla
ssDefFoundError with message: org/apache/camel/Processor
WARN  - ResolverUtil                   - Could not examine class 
'org/apache/activemq/camel/converter/ActiveMQMessageConverter$1.class' due to a 
java.lang.NoCla
ssDefFoundError with message: org/apache/camel/Processor
{code}

It is cased by activemq's dependency of camel. Since activemq-core.jar is in 
the $SMX_HOME/lib but the camel-core.jar is in the service-camel service engine 
lib. They are loaded by different class loaders, so we get the 
NoClassDefFoundError (not the ClassNotFoundException).

I think we can resolve this issue by moving the camel-core into $SMX_HOME/lib 
or take camel out of activemq-core to break the cycle dependency.
Because camel-core have some jaxb dependency, I think the last option is the 
best solution.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to