[ 
https://issues.apache.org/activemq/browse/SM-1327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42394#action_42394
 ] 

James Strachan commented on SM-1327:
------------------------------------

This is caused by ActiveMQ and ServiceMix being dependent on different Camel 
versions - with ActiveMQ bringing in one version of camel-core and servicemix 
bringing in another of camel-spring.

Lets await for ActiveMQ 5.1.0 to come out with the latest/greatest Camel and 
then switch ServiceMix to it

> Camel demo fails in the latest kit of 3.x
> -----------------------------------------
>
>                 Key: SM-1327
>                 URL: https://issues.apache.org/activemq/browse/SM-1327
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: samples
>            Reporter: Edell Nolan
>            Assignee: James Strachan
>
> if I try to run the example in embedded Servicemix container mode I get the 
> error below.
>  
> It runs fine if I launch servicemix and then run mvn install jbi:projectDeploy
>  
> <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>org.springframework.beans.f
> actory.BeanCreationException: Error creating bean with name 
> 'camelContext:beanPo
> stProcessor': Cannot resolve reference to bean 'camelContext' while setting 
> bean
>  property 'camelContext'; nested exception is 
> org.springframework.beans.factory.
> BeanCreationException: Error creating bean with name 'camelContext': 
> Invocation
> of init method failed; nested exception is java.lang.NoSuchMethodError: 
> org.apac
> he.camel.spring.SpringCamelContext.setName(Ljava/lang/String;)V</loc-message>
>                                         
> <stack-trace><![CDATA[org.apache.xbean.k
> ernel.ServiceRegistrationException: 
> org.springframework.beans.factory.BeanCreati
> onException: Error creating bean with name 'camelContext:beanPostProcessor': 
> Can
> not resolve reference to bean 'camelContext' while setting bean property 
> 'camelC
> ontext'; nested exception is 
> org.springframework.beans.factory.BeanCreationExcep
> tion: Error creating bean with name 'camelContext': Invocation of init method 
> fa
> iled; nested exception is java.lang.NoSuchMethodError: 
> org.apache.camel.spring.S
> pringCamelContext.setName(Ljava/lang/String;)V
>         at 
> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerServi
> ce(ServiceManagerRegistry.java:424)
>         at 
> org.apache.xbean.kernel.standard.StandardKernel.registerService(Stand
> ardKernel.java:220)
>         at 
> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.
> java:152)
>         at 
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(Abstr
> actXBeanDeployer.java:83)
>         at 
> org.apache.servicemix.camel.CamelSpringDeployer.deploy(CamelSpringDep
> loyer.java:83)
>         at 
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServ
> iceUnitManager.java:88)
>         at 
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServic
> eUnitManager.java:69)
>         at 
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs
> sembly(DeploymentService.java:508)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi
> ceAssembly(AutoDeploymentService.java:353)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi
> ve(AutoDeploymentService.java:256)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExter
> nalArchive(AutoDeploymentService.java:204)
>         at 
> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchiv
> e(JBIContainer.java:476)
>         at 
> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchiv
> e(JBIContainer.java:486)
>         at 
> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServic
> eAssembly(AdminCommandsService.java:209)
>         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)

-- 
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