See if you can reference an external file url: <config-property-value>xbean:file:///...full path to broker-config.xml</config-property-value>
to validate it is just a resource loading issue. On 17 June 2010 13:50, astlm <monica.astudi...@tic.alten.es> wrote: > > > > Gary Tully wrote: > > > > looks like a classpath/classloader issue, all of the activemq classes > > should > > be in the RAR. > > > > It looks like the classloader that is loading the XBeanBrokerFactory > > cannot > > see the RAR classloader which would indicate that it is not being loaded > > from the RAR. > > > > Is the activemq-core jar some where on the claspath of oc4j? If it is, > > remove it. > > > > All jar are in rar. And activemq-core.jar isn´t on the claspath of oc4j. > > Any idea? > > > > On 17 June 2010 12:47, astlm <monica.astudi...@tic.alten.es> wrote: > > > >> > >> Hello: > >> > >> I´m working with activemq 5.3.2 and a JCA-Conector activemq-rar-5.3.2 > >> for > >> oc4j. > >> Whe I try to deploy the conector activemq-rar-5.3.2, I get following > >> Exception > >> ADVERTENCIA: Could not start up embeded ActiveMQ Broker > >> 'xbean:broker-config.xml': IOException parsing XML document from class > >> path > >> resource [broker-config.xml]; nested exception is > >> java.io.FileNotFoundException: class path resource [broker-config.xml] > >> cannot be opened because it does not exist > >> > >> The broker-config.xml is in root directory of activemq-rar-5.3.2.rar. > >> I > >> add xmls tag. It´s like this > >> > >> <?xml version="1.0" encoding="UTF-8"?> > >> <beans xmlns="http://activemq.apache.org/schema/core"> > >> > >> <!-- shutdown hook is disabled as RAR classloader may be gone at > >> shutdown > >> --> > >> <broker xmlns="http://activemq.apache.org/schema/core" useJmx="true" > >> useShutdownHook="false" id="broker"> > >> ....... > >> </broker> > >> </beans> > >> > >> And the ra.xml contains > >> > >> <config-property> > >> <config-property-name>BrokerXmlConfig</config-property-name> > >> <config-property-type>java.lang.String</config-property-type> > >> > >> <config-property-value>xbean:broker-config.xml</config-property-value> > >> </config-property> > >> > >> > >> I read this bug https://issues.apache.org/activemq/browse/AMQ-2212 but > >> the > >> solution isn´t Ok. > >> > >> How can I solved this error? > >> > >> Thank you, very mutch. > >> > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Could-not-start-up-embeded-ActiveMQ-Broker-%27xbean%3Abroker-config.xml%27-tp28913361p28913361.html > >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > > http://blog.garytully.com > > > > Open Source Integration > > http://fusesource.com > > > > > > -- > View this message in context: > http://old.nabble.com/Could-not-start-up-embeded-ActiveMQ-Broker-%27xbean%3Abroker-config.xml%27-tp28913361p28913918.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com