You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2006/10/30 18:18:56 UTC
Problems starting embedded broker
Hello there! I'm trying to start an embedded broker using spring 2.0
and I'm getting this error:
Loading Spring root WebApplicationContext
ERROR http-8080-Processor24
org.springframework.web.context.ContextLoader - Context initialization
failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate NamespaceHandler for namespace
[http://activemq.org/config/1.0]
Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]
I've followed the Spring Support tutorial at activemq's site, here's
my configuration:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.org/config/1.0
http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd">
<amq:broker useJmx="false" persistent="true" >
<amq:transportConnectors>
<amq:transportConnector uri="tcp://localhost:61616"></amq:transportConnector>
</amq:transportConnectors>
</amq:broker>
<amq:queue id="testQueue" physicalName="com.x.x.x.queues.Test"></amq:queue>
<amq:connectionFactory id="jmsFactory"
brokerURL="vm://localhost"></amq:connectionFactory>
<bean id="testListener" class="com.x.x.x.TestListener"></bean>
<bean id="listenerConteiner"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="concurrentConsumers" value="5"/>
<property name="connectionFactory">
<bean class="org.springframework.jms.connection.SingleConnectionFactory">
<property name="targetConnectionFactory">
<ref local="jmsFactory"/>
</property>
</bean>
</property>
<property name="destination"><ref local="testQueue"/></property>
<property name="messageListener">
<ref bean="testListener"/>
</property>
</bean>
</beans>
Any ideas?
Regards
--
IBM Certified SOA Solution Designer
IBM Database Associate - DB2 UDB V8.1 Family
Re: Problems starting embedded broker
Posted by Vinicius Carvalho <ja...@gmail.com>.
sorry for this, forgot to include the xbean-spring 2.7 on my dependency list :P
sorry
On 10/30/06, Vinicius Carvalho <ja...@gmail.com> wrote:
> Hello there! I'm trying to start an embedded broker using spring 2.0
> and I'm getting this error:
>
> Loading Spring root WebApplicationContext
> ERROR http-8080-Processor24
> org.springframework.web.context.ContextLoader - Context initialization
> failed
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate NamespaceHandler for namespace
> [http://activemq.org/config/1.0]
> Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]
>
> I've followed the Spring Support tutorial at activemq's site, here's
> my configuration:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:amq="http://activemq.org/config/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://activemq.org/config/1.0
> http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd">
> <amq:broker useJmx="false" persistent="true" >
> <amq:transportConnectors>
> <amq:transportConnector uri="tcp://localhost:61616"></amq:transportConnector>
> </amq:transportConnectors>
> </amq:broker>
> <amq:queue id="testQueue" physicalName="com.x.x.x.queues.Test"></amq:queue>
> <amq:connectionFactory id="jmsFactory"
> brokerURL="vm://localhost"></amq:connectionFactory>
> <bean id="testListener" class="com.x.x.x.TestListener"></bean>
> <bean id="listenerConteiner"
> class="org.springframework.jms.listener.DefaultMessageListenerContainer">
> <property name="concurrentConsumers" value="5"/>
> <property name="connectionFactory">
> <bean class="org.springframework.jms.connection.SingleConnectionFactory">
> <property name="targetConnectionFactory">
> <ref local="jmsFactory"/>
> </property>
> </bean>
> </property>
> <property name="destination"><ref local="testQueue"/></property>
> <property name="messageListener">
> <ref bean="testListener"/>
> </property>
> </bean>
> </beans>
>
>
> Any ideas?
>
> Regards
>
> --
> IBM Certified SOA Solution Designer
> IBM Database Associate - DB2 UDB V8.1 Family
>
--
IBM Certified SOA Solution Designer
IBM Database Associate - DB2 UDB V8.1 Family