You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by James Strachan <ja...@gmail.com> on 2007/04/02 10:07:37 UTC

Re: spring and activemq

Which version were  you using?

On 3/29/07, Garner, Shawn <sh...@vangent.com> 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/

RE: spring and activemq

Posted by "Garner, Shawn" <sh...@vangent.com>.
No, 4.1 was the best available download when I downloaded it a few days
ago.
I wouldn't think there should be that much difference between a minor
minor version.

I got it working using regular spring bean file instead of the xbean as
the example was.

I don't really have time to redownload 4.1.1 and try it out.


Shawn

-----Original Message-----
From: James Strachan [mailto:james.strachan@gmail.com] 
Sent: Tuesday, April 03, 2007 2:37 AM
To: users@activemq.apache.org
Subject: Re: spring and activemq

You tried 4.1.1?

On 4/2/07, Garner, Shawn <sh...@vangent.com> wrote:
> ActiveMQ 4.1
>
> Shawn
>
> -----Original Message-----
> From: James Strachan [mailto:james.strachan@gmail.com]
> Sent: Monday, April 02, 2007 3:08 AM
> To: users@activemq.apache.org
> Subject: Re: spring and activemq
>
> Which version were  you using?
>
> On 3/29/07, Garner, Shawn <sh...@vangent.com> 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/
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: spring and activemq

Posted by James Strachan <ja...@gmail.com>.
You tried 4.1.1?

On 4/2/07, Garner, Shawn <sh...@vangent.com> wrote:
> ActiveMQ 4.1
>
> Shawn
>
> -----Original Message-----
> From: James Strachan [mailto:james.strachan@gmail.com]
> Sent: Monday, April 02, 2007 3:08 AM
> To: users@activemq.apache.org
> Subject: Re: spring and activemq
>
> Which version were  you using?
>
> On 3/29/07, Garner, Shawn <sh...@vangent.com> 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/
>


-- 

James
-------
http://radio.weblogs.com/0112098/

RE: spring and activemq

Posted by "Garner, Shawn" <sh...@vangent.com>.
ActiveMQ 4.1

Shawn

-----Original Message-----
From: James Strachan [mailto:james.strachan@gmail.com] 
Sent: Monday, April 02, 2007 3:08 AM
To: users@activemq.apache.org
Subject: Re: spring and activemq

Which version were  you using?

On 3/29/07, Garner, Shawn <sh...@vangent.com> 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/