activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garner, Shawn" <shawn.gar...@vangent.com>
Subject spring and activemq
Date Thu, 29 Mar 2007 20:42:36 GMT
I'm having problems getting the example spring file to load:

 

http://activemq.apache.org/spring-support.html

 

007-03-29 15:19:23,662 [main] ERROR
org.springframework.web.context.ContextLoader:initWebApplicationContext:
205  - Context initialization failed

org.springframework.beans.factory.BeanDefinitionStoreException: Line 11
in XML document from ServletContext resource
[/WEB-INF/config-spring/applicationContext-jms.xml] is invalid; nested
exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The
content of element 'amq:transportConnector' is not complete. One of
'{"http://activemq.org/config/1.0":broker,
"http://activemq.org/config/1.0":brokerInfo,
"http://activemq.org/config/1.0":discoveryAgent,
"http://activemq.org/config/1.0":messageAuthorizationPolicy,
"http://activemq.org/config/1.0":server,
"http://activemq.org/config/1.0":taskRunnerFactory,
WC[##other:"http://activemq.org/config/1.0"]}' is expected.

Caused by: 

org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of
element 'amq:transportConnector' is not complete. One of
'{"http://activemq.org/config/1.0":broker,
"http://activemq.org/config/1.0":brokerInfo,
"http://activemq.org/config/1.0":discoveryAgent,
"http://activemq.org/config/1.0":messageAuthorizationPolicy,
"http://activemq.org/config/1.0":server,
"http://activemq.org/config/1.0":taskRunnerFactory,
WC[##other:"http://activemq.org/config/1.0"]}' is expected.

 

 

<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.xsd 

  http://activemq.org/config/1.0
http://people.apache.org/repository/org.apache.activemq/xsds/activemq-co
re-4.1-SNAPSHOT.xsd">

  

  <!--  lets create an embedded ActiveMQ Broker -->

  <amq:broker useJmx="false" persistent="false">

    <amq:transportConnectors>

      <amq:transportConnector uri="tcp://localhost:0" />

    </amq:transportConnectors>

  </amq:broker>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message