Hi,
 Servicemix 3.3.1 did not support camel 2.x .I guess the 3.3.2 also does not
support camel 2.x; So we have to use camel 1.x version; This uses the
namespace http://activemq.apache.org/camel/schema/spring  -- see - 
http://camel.apache.org/spring.html -->section Adding Camel Schema. Also as
i noted earlier changing tthe namespace lands me to the older error ( due to
I guess incompatabilityof camel 2.x with servicemix 3.3.x ?)


Snippet below shows the error when namespace is updated to
http://camel.apache.org/schema/spring

----------------------------------
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message";
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
        <component-name>servicemix-file</component-name>
        <component-task-result-details>
                <task-result-details>
                        <task-id>deploy</task-id>
                        <task-result>SUCCESS</task-result>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
        <component-name>servicemix-camel</component-name>
        <component-task-result-details>
                <task-result-details>
                        <task-id>deploy</task-id>
                        <task-result>FAILED</task-result>
                        <message-type>ERROR</message-type>
                        <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Could not deploy xbean service unit</loc-message>
</msg-loc-info>
</task-status-msg>
                        <exception-info>
                                <nesting-level>1</nesting-level>
                                <msg-loc-info>
                                        <loc-token/>
                                        <loc-message>Error creating bean with 
name 'camel': Invocation of init
method failed; nested exception is java.lang.NoSuchMethodError:
com.nsn.hiq.MyRouteBuilder.from(Ljava/lang/String;)Lorg/apache/camel/model/RouteType;</loc-message>
                                
<stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'camel': Invocation of init method failed;
nested exception is java.lang.NoSuchMethodError:
com.nsn.hiq.MyRouteBuilder.from(Ljava/lang/String;)Lorg/apache/camel/model/RouteType;
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
----------------------------------------------
-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/servicemix-3-3-1-and-camel-core-2-3-0-tp1624310p2838929.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to