You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by gumba <an...@gmail.com> on 2012/03/16 07:57:01 UTC

Unrecognized xbean namespace mapping: http://jencks.org/amqpool/2.0

I am using apache-servicemix-4.3.0 with Java 1.6 in a windows 7
I am trying to deploy an JMS SU, I have all the listed .jar files in the
library folder of my project but when I try to deploy I get an error below
the description of my project
==the ant build task==

<target name="package-su-jms">
		<jar destfile="${build.dir}/${destination-su-file}">
			<fileset dir="${descriptor-dir}">
				<include name="*.xml" />
			</fileset>
			<fileset dir="${libraries.dir}">
				<include name="jencks-2.0.jar" />
				<include name="jencks-amqpool-2.0.jar" />
				<include name="activemq-core-5.5.1-fuse-02-05.jar" />
				<include name="activemq-protobuf-1.1.jar" />
				<include name="aopalliance-1.0.jar" />
				<include name="commons-net-2.2.jar" />
				<include name="servicemix-utils-1.4.0.jar" />
				<include name="servicemix-jms-2011.01.jar" />
				<include name="servicemix-services-3.2.3.jar" />
				<include name="servicemix-utils-1.4.0.jar" />
				<include name="jencks-amqpool-2.0.jar" />
			</fileset>
		</jar>
	</target>


==the xbean.xml file==
<beans xmlns="http://xbean.org/schemas/spring/1.0"
	   xmlns:jms="http://servicemix.apache.org/jms/1.0"
	   xmlns:amqpool="http://jencks.org/amqpool/2.0"
	   xmlns:jee="http://www.springframework.org/schema/jee"
	   xmlns:jencks="http://jencks.org/2.0"
	   xmlns:tns="http://laboratory/finalproject">

	<classpath>
		<location>.</location>
		<location>./lib/jencks-2.0.jar</location>
		<location>./lib/jencks-amqpool-2.0.jar</location>
		<location>./lib/activemq-core-5.5.1-fuse-02-05.jar</location>
		<location>./lib/activemq-protobuf-1.1.jar</location>
		<location>./lib/aopalliance-1.0.jar</location>
		<location>./lib/commons-net-2.2.jar</location>
		<location>./lib/servicemix-utils-1.4.0.jar</location>
		<location>./lib/servicemix-jms-2011.01.jar</location>
	</classpath>


	
	<amqpool:xa-pool id="connectionFactory" 
					 url="tcp://localhost:61616"
					 maxConnections="8" 
					 transactionManager="#transactionManager"/>
					 
	<jencks:transactionManager id="transactionManager"
					 transactionLogDir="./data/log" 
					 defaultTransactionTimeoutSeconds="600" />
					 
	
    	  
    
    <jms:provider service="tns:topicHandler"
              	  endpoint="topic"
              	  destination="#dwTopic"
                  connectionFactory="#connectionFactory"
                  storeFactory="#storeFactory"
                  stateless="false">
    </jms:provider>

	<jee:jndi-lookup id="dwTopic" jndi-name="my.widget.queue">
		<jee:environment>
			java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
			java.naming.provider.url=t3://localhost:7001
		</jee:environment>
	</jee:jndi-lookup>
    
    <bean id="storeFactory"
class="org.apache.servicemix.store.jdbc.JdbcStoreFactory">
		<property name="clustered" value="true" />
		<property name="dataSource">
			<ref local="mysql-stageArea" />
		</property>
	</bean>
    
    <bean id="mysql-stageArea"
class="com.mchange.v2.c3p0.ComboPooledDataSource"
		destroy-method="close">
		<property name="driverClass" value="com.mysql.jdbc.Driver" />
		<property name="jdbcUrl"
			value="jdbc:mysql://localhost:3306/activemq?relaxAutoCommit=true" />
		<property name="user" value="root" />
		<property name="password" value="" />
		<property name="minPoolSize" value="5" />
		<property name="maxPoolSize" value="10" />
		<property name="acquireIncrement" value="3" />
		<property name="autoCommitOnClose" value="false" />
	</bean>
   
    
    
    <jms:consumer service="datawarehouseProxy"
              	  endpoint="datawarehouseProxy"
              	  destination="#queue" 
              	  connectionFactory="#connectionFactory"
              	  targetService="my:aggregator"
              	  targetEndpoint="aggregator"/>
    
    
    <jee:jndi-lookup id="queue" jndi-name="my.widget.queue">
    	<jee:environment>
      		java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
      		java.naming.provider.url=t3://localhost:7001
    	</jee:environment>
  	</jee:jndi-lookup>
    
</beans>


==The error which I get==
ERROR | rint Extender: 3 | ServiceAssemblyInstaller         | 124 -
org.apache.servicemix.jbi.deployer - 1.4.0 | Error deploying SU
projectlab-jms-su
javax.jbi.management.DeploymentException: <component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
	<component-name>servicemix-jms</component-name>
	<component-task-result-details>
		<task-result-details>
			<task-id>deploy</task-id>
			<task-result>FAILED</task-result>
			<message-type>ERROR</message-type>
			<task-status-msg><msg-loc-info><loc-token/><loc-message>Could not deploy
xbean service unit</loc-message></msg-loc-info></task-status-msg>
			<exception-info>
				<nesting-level>1</nesting-level>
				<msg-loc-info>
					<loc-token />
					<loc-message>Unrecognized xbean namespace mapping:
http://jencks.org/amqpool/2.0</loc-message>
				
<stack-trace><![CDATA[org.springframework.beans.factory.BeanDefinitionStoreException:
Unrecognized xbean namespace mapping: http://jencks.org/amqpool/2.0


I dont know if is a case of package conflict. Can any one help me please!

--
View this message in context: http://servicemix.396122.n5.nabble.com/Unrecognized-xbean-namespace-mapping-http-jencks-org-amqpool-2-0-tp5570096p5570096.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.