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";>

    <jms:provider 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.FileSystemXmlApplicationContext@35cc4a32:
startup date [Wed Dec 21 12:52:38 CET 2011]; root of context hierarchy
        at
org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:316)[61:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[61:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1007)[61:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)[61:org.springframework.context:3.0.5.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.destroy(AbstractApplicationContext.java:958)[61:org.springframework.context:3.0.5.RELEASE]
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:107)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java:104)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstaller.java:207)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:85)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.impl.Deployer.checkPendingInstallers(Deployer.java:558)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.impl.Deployer.lifeCycleChanged(Deployer.java:608)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact.fireEvent(AbstractLifecycleJbiArtifact.java:102)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.artifacts.AbstractLifecycleJbiArtifact.fireEvent(AbstractLifecycleJbiArtifact.java:92)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.deployer.artifacts.ComponentImpl$ComponentWrapper.init(ComponentImpl.java:250)[124:org.apache.servicemix.jbi.deployer:1.4.0]
        at
org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doRegister(ComponentRegistryImpl.java:89)[122:org.apache.servicemix.jbi.runtime:1.4.0]
        at
org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl.doRegister(ComponentRegistryImpl.java:38)[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.OsgiServiceRegistryTracker.addingService(OsgiServiceRegistryTracker.java:78)[84:org.apache.servicemix.nmr.osgi:1.4.0]
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(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 on with this jbi component?
Thanks a lot.

--
View this message in context: 
http://camel.465427.n5.nabble.com/ServiceMix-Camel-JMS-deployment-error-tp5091937p5091937.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to