activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinicius Carvalho" <java.vinic...@gmail.com>
Subject Problems starting embedded broker
Date Mon, 30 Oct 2006 17:18:56 GMT
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

Mime
View raw message