The work around is to add spring-aop in the lib folder of servicemix installation. It should work that way.
On Nov 13, 2007 2:32 PM, Vinram <[EMAIL PROTECTED]> wrote: > > Hi, > In that case Pls let me know what is the alternative to use Apache camel > with ServiceMix(3.1.2 and above)? > > Thanks > > > Gert Vanthienen wrote: > > > > L.S., > > > > This is probably a classloading issue, because the 'missing' AopUtils > > class is correctly packaged with the component. Could you open a JIRA > > for it? > > > > Gert > > > > Vinram wrote: > >> I am using a binary version of ServiceMix 3.2 downloaded from > >> > http://people.apache.org/~ffang/servicemix3.2/org/apache/servicemix/apache-servicemix/3.2/apache-servicemix-3.2.zip<http://people.apache.org/%7Effang/servicemix3.2/org/apache/servicemix/apache-servicemix/3.2/apache-servicemix-3.2.zip> > . > >> I want to run the camel sample given in servicemix/samples/camel. > >> I followed the instructions as per > >> http://incubator.apache.org/servicemix/camel-example.html > >> i.e > >> D:\Samples_Camel> mvn install -Dmaven.test.skip=true > >> It generated the ServiceAssembly zip and jar files without any build > >> errors > >> (but build was giving errors with test). > >> I started the servicemix using bin\servicemix.bat and copied the > Service > >> Assembly jar into the hotdeploy directory. > >> > >> It gave the error mentioned in the below snippet. > >> > >> INFO - AutoDeploymentService - Directory: hotdeploy: Archive > >> changed: processing camel-sa-3.2-SNAPSHOT.jar ... > >> > >> ERROR - AutoDeploymentService - Failed to update Service > >> Assembly: > >> camel-sa > >> 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-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.factory.BeanCreationException: > >> Error > >> crea > >> ting bean with name 'camelContext:beanPostProcessor': Cannot resolve > >> reference to bean 'camelContext' while setting bean > >> property 'camelContext'; nested exception is > >> org.springframework.beans.factory.BeanCreationException: Error creating > >> be > >> an with name 'camelContext': Invocation of init method failed; nested > >> exception is java.lang.NoClassDefFoundError: org/s > >> pringframework/aop/support/AopUtils</loc-message> > >> > >> <stack-trace><![CDATA[ > org.apache.xbean.kernel.ServiceRegistrationException: > >> org. > >> springframework.beans.factory.BeanCreationException: Error creating > bean > >> with name 'camelContext:beanPostProcessor': Can > >> not resolve reference to bean 'camelContext' while setting bean > property > >> 'camelContext'; nested exception is org.springf > >> ramework.beans.factory.BeanCreationException: Error creating bean with > >> name > >> 'camelContext': Invocation of init method fa > >> iled; nested exception is java.lang.NoClassDefFoundError: > >> org/springframework/aop/support/AopUtils > >> at > >> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService > (ServiceManagerRegistry.java:424) > >> at > >> org.apache.xbean.kernel.standard.StandardKernel.registerService( > StandardKernel.java:220) > >> at > >> org.apache.xbean.server.spring.loader.SpringLoader.load( > SpringLoader.java:152) > >> at > >> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy( > AbstractXBeanDeployer.java:83) > >> at > >> org.apache.servicemix.camel.CamelSpringDeployer.deploy( > CamelSpringDeployer.java:79) > >> at > >> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy( > BaseServiceUnitManager.java:88) > >> at > >> org.apache.servicemix.common.BaseServiceUnitManager.deploy( > BaseServiceUnitManager.java:69) > >> at > >> > org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly > (DeploymentService.java:508) > >> at > >> > org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly > (AutoDeploymentService.java:35 > >> 0) > >> at > >> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive > (AutoDeploymentService.java:253) > >> at > >> > org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory > (AutoDeploymentService.java:647) > >> at > >> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800( > AutoDeploymentService.java:60) > >> at > >> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run( > AutoDeploymentService.java:611) > >> at java.util.TimerThread.mainLoop(Timer.java:512) > >> at java.util.TimerThread.run(Timer.java:462) > >> Caused by: org.springframework.beans.factory.BeanCreationException: > Error > >> creating bean with name 'camelContext:beanPost > >> Processor': 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.NoClassDefFoundError > : > >> org/springframework/aop/support/AopUtils > >> at > >> > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference > (BeanDefinitionValueRes > >> olver.java:269) > >> at > >> > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary > (BeanDefinitionV > >> alueResolver.java:109) > >> at > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues > (AbstractAuto > >> wireCapableBeanFactory.java:1099) > >> at > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean > (AbstractAutowireCap > >> ableBeanFactory.java:861) > >> at > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > (AbstractAutowireCapab > >> leBeanFactory.java:421) > >> at > >> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( > AbstractBeanFactory.java:251) > >> at > >> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > (DefaultSingletonBeanRegis > >> try.java:156) > >> at > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean( > AbstractBeanFactory.java:248) > >> at > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean( > AbstractBeanFactory.java:160) > >> at > >> org.springframework.context.support.AbstractApplicationContext.getBean( > AbstractApplicationContext.java:733) > >> at > >> > org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors > (AbstractApplication > >> Context.java:511) > >> at > >> org.springframework.context.support.AbstractApplicationContext.refresh( > AbstractApplicationContext.java:337) > >> at > >> org.apache.xbean.server.spring.configuration.SpringConfiguration > .<init>(SpringConfiguration.java:63) > >> at > >> > org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService > (SpringConfigurat > >> ionServiceFactory.java:106) > >> at > >> org.apache.xbean.kernel.standard.ServiceManager.start( > ServiceManager.java:420) > >> at > >> org.apache.xbean.kernel.standard.ServiceManager.initialize( > ServiceManager.java:200) > >> at > >> > org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call( > RegistryFutureTask.java:110) > >> at > >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) > >> at java.util.concurrent.FutureTask.run(FutureTask.java:123) > >> at > >> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService > (ServiceManagerRegistry.java:409) > >> ... 14 more > >> > >> I also tried to deploy using D:\Samples_Camel\camel-sa>mvn > >> jbi:projectDeploy > >> but resulted in the same error > >> Can anyone please tell me if I have missed out any steps? > >> > >> > >> > > > > > > > > -- > View this message in context: > http://www.nabble.com/Unable-to-deploy-Camel-example-in-ServiceMix-3.2-tf4750870s12049.html#a13725713 > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/