Hi Anderson,
I build jar from your source and see same error as you see.
I explicitly add package org.springframework.context to bundle import,
but no luck, still the same error.
It's wired for me since we already have this
org.springframework.context.Lifecyle in the enviroment (you can see the
spring-context bundle installed when you start servicemix) and imported
properly.
Will investigate more when I get chance.
Freeman
Anderson Nielson wrote:
Freeman,
The JAR is now attached.
PS.: Before I attached the sources.
Please let me know if you need more information.
B.R.
-Anderson
2008/12/23 Freeman Fang <[email protected]
<mailto:[email protected]>>
Hi,
Anderson Nielson wrote:
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
Which jar you want to put in deploy folder?
Would you please append this jar?
Thanks
Freeman
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 <http://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