Hi there have been various issues with xbean, actually I don't know the current status, I reverted having a separate activemq configuration file... Did you search for xbean here?
my last point was: http://www.nabble.com/Xbean-not-working-with-activemq-4.1-tf2819881.html#a7870648 Cheers Francesco jfd wrote: > > Hello All, > > I am just start to use ActiveMq and tried to configure it using Spring 2.0 > and here are some of the issues I have encounted while I am using 4.1.0 > with m2 > <p> > 1). the xsd file for the spring 2.0 beanconfiguration is not included in > the jar file > <p> > 2) the spring.schemas point the xsd to a local file system which apparent > is wrong and not tested. right now is like this <br> > > http\://activemq.org/config/1.0=file:/Users/chirino/sandbox/activemq-4.1/activemq-core/target/activemq.xsd > <p> > because of these configuration mistakes, you cannot use the activeMQ if > the newtwork is not available. > <p> > 3) I have managed to make it work anyway, but some how this year, all my > test cases failed on activeMQ now becasue they complain about the > following configuration: > <p> > <pre> > <SPAN class="code-tag"><amq:broker useJmx=<SPAN > class="code-quote">"false"</SPAN> persistent=<SPAN > class="code-quote">"false"</SPAN>></SPAN> > <SPAN class="code-tag"><amq:transportConnectors></SPAN> > <SPAN class="code-tag"><amq:transportConnector uri=<SPAN > class="code-quote">"tcp://localhost:0"</SPAN> /></SPAN> > <SPAN class="code-tag"></amq:transportConnectors></SPAN> > <SPAN class="code-tag"></amq:broker></SPAN> > </pre> > <p> > The reason looks to me is that the file > http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd > got updated and some new elements/attributes need for the configuration. > and the error msg is > > <pre> > org.springframework.beans.factory.BeanDefinitionStoreException: Line 28 in > XML document from file > [d:\webapp\src\main\java\..\webapp\WEB-INF\applicationContext-activemq-core.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. > </pre> > > Several questions on this update: > <p> > 1)why they update that file since there is an 4.2.0 snapshot going on > <p>2)should they provide a place for the xsd that is not change this > often? > <p>3) if they update this, could they provide some guidances on how to > configure? > > <p> > thanks a lot. > <p> > jfd > -- View this message in context: http://www.nabble.com/Issues-configuring-ActiveMQ-in-spring-context-file-tf2947555.html#a8254375 Sent from the ActiveMQ - User mailing list archive at Nabble.com.