Willem I did not. Did you got the same error when running the attached sample?
B.R. -Anderson 2008/12/24 Willem Jiang <[email protected]> > Hi, > > I guess you forgot to install the camel-spring feature. > most of camel component depends on camel-core and camel-spring :) > > Willem > > Anderson Nielson wrote: > > Attached file. > > > > > > > _______________________________________________________________________________ > > > > Anderson Nielson | Consultor Integração | Datasul ECM| (47) 3802-8208 | > (47) 9934-1224 > > Acesse www.datasulecm.com.br e conheça nossas Soluções para Gestão de > Conteúdo, Integração e Automação de Processos > > > > Antes de imprimir pense em > > seu compromisso com o Meio Ambiente > > > > > > -----Mensagem original----- > > De: Anderson Nielson [mailto:[email protected]] > > Enviada em: terça-feira, 23 de dezembro de 2008 15:35 > > Para: [email protected] > > Assunto: Problem deploying simple camel-jms example in SMX 4 > > > > I am trying to use JMS in SMX 4. I have read the documentation in Apache > (ActiveMQ) site. > > I have just attached a simpler project that you can run and see that the > bundle is not started when deployed in the "deploy" folder. > > > > I have run the following commands in the console: > > > > features addUrl > mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.features/4.0.0.3-fuse/xml/features > > > > osgi install -s mvn:commons-collections/commons-collections/3.2.1 > > osgi install -s > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_1 > > > > features install camel-osgi > > features install camel-mail > > features install camel-jms > > > > After putting the JAR in the deploy folder the SMX log showed me the the > message bellow > > > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'jms' defined in URL > [bundle://156.0:0/META-INF/spring/beans.xml]: Error setting property values; > nested exception is org.springframework.beans.PropertyBatchUpdateException; > nested PropertyAccessExceptions (1) are: > > PropertyAccessException 1: > org.springframework.beans.MethodInvocationException: Property > 'connectionFactory' threw exception; nested exception is > java.lang.NoClassDefFoundError: org/springframework/context/Lifecycle > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1278) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > > at java.security.AccessController.doPrivileged(Native Method) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) > > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) > > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) > > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) > > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) > > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) > > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) > > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:276) > > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145) > > at java.lang.Thread.run(Thread.java:619) > > Caused by: org.springframework.beans.PropertyBatchUpdateException; nested > PropertyAccessExceptions (1) are: > > PropertyAccessException 1: > org.springframework.beans.MethodInvocationException: Property > 'connectionFactory' threw exception; nested exception is > java.lang.NoClassDefFoundError: org/springframework/context/Lifecycle > > at > org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104) > > at > org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1275) > > ... 15 more > > See the attached example. > > The same occurs when I try to use any other camel component. > > > > How to fix it and to use a camel route that works with camel:run maven > goal in SMX 4? > > > > B.R. > > > > > _______________________________________________________________________________ > > > > Anderson Nielson | Consultor Integração | Datasul ECM| (47) 3802-8208 | > (47) 9934-1224 Acesse www.datasulecm.com.br <blocked:: > http://www.datasulecm.com.br/> e conheça nossas Soluções para Gestão de > Conteúdo, Integração e Automação de Processos > > > > Antes de imprimir pense em > > seu compromisso com o Meio Ambiente > > > > > >
