Hi, i'm new in this forum. I hope to get your help.
I'm trying to follow this tutorial:
http://servicemix.apache.org/33-adding-a-jms-su.html
I wrote all the code lited in the previous pages, buildin succesfully the camel-jms component having this bean.xml:
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:tutorial="urn:org:apache:servicemix:tutorial :camel"
xmlns:amq="http://activemq.org/config/1.0">
<jmsrovider service="tutorial:jms"
endpoint="provider"
destinationName="tutorial.camel.queue"
connectionFactory="#connectionFactory" />
<jms:consumer service="tutorial:jms"
endpoint="consumer"
destinationName="tutorial.camel.queue"
connectionFactory="#connectionFactory"
targetService="tutorial:jms"
targetEndpoint="consumer" />
<amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" />
</beans>
But when i deploy the service assembly into the servicemix deploy folder i get this error in the logout:
12:52:39,064 | WARN | rint Extender: 2 | FileSystemXmlApplicationContext | 61 - org.springframework.context - 3.0.5.RELEASE | Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.apache.xbean.spring.context.FileSystemXmlAppli cationContext@35cc4a32: startup date [Wed Dec 21 12:52:38 CET 2011]; root of context hierarchy
at org.springframework.context.support.AbstractApplic ationContext.getApplicationEventMulticaster(Abstra ctApplicationContext.java:316)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplic ationContext.publishEvent(AbstractApplicationConte xt.java:303)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplic ationContext.doClose(AbstractApplicationContext.ja va:1007)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplic ationContext.close(AbstractApplicationContext.java :970)[61:org.springframework.context:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplic ationContext.destroy(AbstractApplicationContext.ja va:958)[61:org.springframework.context:3.0.5.RELEASE]
at org.apache.servicemix.common.xbean.AbstractXBeanDe ployer.deploy(AbstractXBeanDeployer.java:107)[121:servicemix-common:2011.01.0]
at org.apache.servicemix.common.BaseServiceUnitManage r.doDeploy(BaseServiceUnitManager.java:88)[121:servicemix-common:2011.01.0]
at org.apache.servicemix.common.BaseServiceUnitManage r.deploy(BaseServiceUnitManager.java:69)[121:servicemix-common:2011.01.0]
at org.apache.servicemix.jbi.deployer.artifacts.Servi ceUnitImpl.deploy(ServiceUnitImpl.java:104)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.impl.ServiceAss emblyInstaller.deploySUs(ServiceAssemblyInstaller. java:207)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.impl.ServiceAss emblyInstaller.install(ServiceAssemblyInstaller.ja va:85)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.impl.Deployer.c heckPendingInstallers(Deployer.java:558)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.impl.Deployer.l ifeCycleChanged(Deployer.java:608)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.artifacts.Abstr actLifecycleJbiArtifact.fireEvent(AbstractLifecycl eJbiArtifact.java:102)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.artifacts.Abstr actLifecycleJbiArtifact.fireEvent(AbstractLifecycl eJbiArtifact.java:92)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.deployer.artifacts.Compo nentImpl$ComponentWrapper.init(ComponentImpl.java: 250)[124:org.apache.servicemix.jbi.deployer:1.4.0]
at org.apache.servicemix.jbi.runtime.impl.ComponentRe gistryImpl.doRegister(ComponentRegistryImpl.java:8 9)[122:org.apache.servicemix.jbi.runtime:1.4.0]
at org.apache.servicemix.jbi.runtime.impl.ComponentRe gistryImpl.doRegister(ComponentRegistryImpl.java:3 8)[122:org.apache.servicemix.jbi.runtime:1.4.0]
at org.apache.servicemix.nmr.core.ServiceRegistryImpl .register(ServiceRegistryImpl.java:47)[83:org.apache.servicemix.nmr.core:1.4.0]
at org.apache.servicemix.nmr.osgi.OsgiServiceRegistry Tracker.addingService(OsgiServiceRegistryTracker.j ava:78)[84:org.apache.servicemix.nmr.osgi:1.4.0]
at org.osgi.util.tracker.ServiceTracker$Tracked.custo mizerAdding(ServiceTracker.java:896)[karaf.jar:]
at org.osgi.util.tracker.AbstractTracked.trackAdding( AbstractTracked.java:261)[karaf.jar:]
I'm getting mad to undertand the error. I'm using ServiceMix 4.3.0 and the embedded Camel version is the 2.6.0 ... while the spring framework is the 3.0.5. Could someone explain me what is going wrong with this jbi component?
Thanks a lot.


rovider service="tutorial:jms"
Reply With Quote
