Which version of smx are you using ?
Can you check the camel version it uses ?
On Wed Nov 9 21:22:26 2011, Gnanaguru S wrote:
Hi
I am trying to deploy camel-example-cxf-osgi to smx. I am facing this in the
console ?
It was successfully built
karaf@root> features:addUrl
mvn:org.apache.camel.karaf/apache-camel/2.8.0/xml/features
karaf@root> features:install war
karaf@root> features:install camel-spring
karaf@root> features:install camel-jaxb
karaf@root> features:install camel-cxf
karaf@root> osgi:install -s
mvn:org.apache.camel/camel-example-cxf-osgi/2.8.0
Bundle ID: 288
karaf@root> Exception in thread "SpringOsgiExtenderThread-21"
org.springframework.beans.factory.BeanCreationEx
ception: Error creating bean with name 'camel': Invocation of init method
failed; nested exception is org.apac
he.camel.CamelException: Cannot find any routes with this RouteBuilder
reference: RouteBuilderRef[reportIncide
ntRoutes]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstrac
tAutowireCapableBeanFactory.java:1420)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractA
utowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAut
owireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:
291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleto
nBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:28
8)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:28
1)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(Defau
ltListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(Abst
ractApplicationContext.java:895)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(A
bstractDelegatedExecutionApplicationContext.java:69)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(Abstrac
tDelegatedExecutionApplicationContext.java:355)
at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:8
5)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefre
sh(AbstractDelegatedExecutionApplicationContext.java:320)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextE
xecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.camel.CamelException: Cannot find any routes with this
RouteBuilder reference: RouteBuil
derRef[reportIncidentRoutes]
at
org.apache.camel.core.xml.AbstractCamelContextFactoryBean.installRoutes(AbstractCamelContextFactory
Bean.java:585)
at
org.apache.camel.core.xml.AbstractCamelContextFactoryBean.afterPropertiesSet(AbstractCamelContextFa
ctoryBean.java:303)
at
org.apache.camel.osgi.CamelContextFactoryBean.afterPropertiesSet(CamelContextFactoryBean.java:66)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Abst
ractAutowireCapableBeanFactory.java:1477)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstrac
tAutowireCapableBeanFactory.java:1417)
... 16 more
Please help out
Regards
Guru
--
View this message in context:
http://camel.465427.n5.nabble.com/Unable-to-export-camel-example-to-servicemix-tp4976894p4977653.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang