ActiveMQ 4.1 Shawn
-----Original Message----- From: James Strachan [mailto:[EMAIL PROTECTED] Sent: Monday, April 02, 2007 3:08 AM To: [email protected] Subject: Re: spring and activemq Which version were you using? On 3/29/07, Garner, Shawn <[EMAIL PROTECTED]> wrote: > 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> > > -- James ------- http://radio.weblogs.com/0112098/
