You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by kumar k <ku...@yahoo.com> on 2007/08/28 14:18:08 UTC

Unrecognized xbean namespace mapping for jms

I am trying to deploy a component with servicemix.xml file . But I get
 an error "Unrecognized xbean namespace mapping:
 http://servicemix.apache.org/jms/1.0"
   
  Here is the xbean file :
   
  <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"   
    xmlns:sm="http://servicemix.apache.org/config/1.0" 
       xmlns:sub="http://subp" 
    xmlns:amq="http://activemq.org/config/1.0" >
    <sm:serviceunit id="jbi">
    <sm:activationSpecs>
        <!-- JMS POLLER - CONSUMER -->
   <sm:activationSpec componentName="MyConsumer"
 service="sub:MyConsumer">
    <sm:component>
     <jms:component>
      <jms:endpoints>
       <jms:endpoint service="sub:MyConsumer"
        endpoint="MyConsumer"
        targetService="sub:MyProvider"
        targetEndpoint="MyProvider"
        role="consumer"
        destinationStyle="topic"
        jmsProviderDestinationName="demo.org.servicemix.source"
        defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
        defaultOperation="sub:Echo"
        connectionFactory="#connectionFactory" />
      </jms:endpoints>
     </jms:component>
    </sm:component>
   </sm:activationSpec>
   <!-- JMS SENDER - PROVIDER -->
   <sm:activationSpec componentName="MyProvider"
 service="sub:MyProvider">
    <sm:component>
     <jms:component>
      <jms:endpoints>        
       <jms:endpoint service="sub:MyProvider"
        endpoint="myProvider"
        role="provider"
        defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
        destinationStyle="topic"
        jmsProviderDestinationName="demo.org.servicemix.result"
        connectionFactory="#connectionFactory" />
      </jms:endpoints>
     </jms:component>
    </sm:component>
   </sm:activationSpec>   
    </sm:activationSpecs>
  </sm:serviceunit>
 <amq:connectionFactory id="connectionFactory"
 brokerURL="tcp://localhost:61616/" />
</beans>


   

  <stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException: org.springframework.beans.factory.BeanDefinitionStoreException:
 Unrecognized xbean namespace mapping:
 http://servicemix.apache.org/jms/1.0
 at
 org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
 at
 org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
 at
 org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:154)
 at
 org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:79)
 at
 org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
 at
 org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
 at
 org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:527)
 at
 org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:335)
 at 

       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

Re: Unrecognized xbean namespace mapping for jms

Posted by Michal <ca...@yahoo.com>.
If you are using maven then you can just use dependency tag. Unfortunately
there is a bug in maven plugin (see my issue:
http://www.nabble.com/-jira--Created%3A-%28SM-1030%29-maven-plugin-should-not-exclude-all-jbi-components-from-runtime-scope-tf4267815s12049.html#a12146099)

Alternatively you can identify dependencies manually (by looking at the
jms-component pom.xml) and put these dependencies (jar files) in the
classpath location 
- if you are using SM 3.1.1 (not sure exactly the ver number) do it just by
putting them in lib folder under zipped SU - folder 'lib' is automatically
in the classpath
- if you are using some older SM then you need to define classpath
explicitly in service.xml file





kumar k wrote:
> 
> Please let me know how do I find what all libraries are needed and what is
> the best location to keep them.
>   
> 

-- 
View this message in context: http://www.nabble.com/Unrecognized-xbean-namespace-mapping-for-jms-tf4341410s12049.html#a12371783
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Unrecognized xbean namespace mapping for jms

Posted by kumar k <ku...@yahoo.com>.
Please let me know how do I find what all libraries are needed and what is the best location to keep them.
  
Michal <ca...@yahoo.com> wrote:
  
You are trying to use JMS component inside LW compoent. To do this you need
to have JMS component on the classpath - put necessary libraries to the SUs
classpath. 


-- 
View this message in context: http://www.nabble.com/Unrecognized-xbean-namespace-mapping-for-jms-tf4341410s12049.html#a12368580
Sent from the ServiceMix - User mailing list archive at Nabble.com.



       
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

Re: Unrecognized xbean namespace mapping for jms

Posted by Michal <ca...@yahoo.com>.
You are trying to use JMS component inside LW compoent. To do this you need
to have JMS component on the classpath - put necessary libraries to the SUs
classpath. 


-- 
View this message in context: http://www.nabble.com/Unrecognized-xbean-namespace-mapping-for-jms-tf4341410s12049.html#a12368580
Sent from the ServiceMix - User mailing list archive at Nabble.com.