activemq-spring IIRC
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-01-31 Leonardo K. Shikida <[email protected]>:
> now I am getting
>
> SEVERE: Failed to start ActiveMQ
> java.lang.Exception: ActiveMQFactory.createBroker.InvocationTargetException
>     at
> org.apache.openejb.resource.activemq.ActiveMQFactory.createBroker(ActiveMQFactory.java:127)
>     at
> org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.createInternalBroker(ActiveMQResourceAdapter.java:130)
>     at
> org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:120)
>     at
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2172)
>     at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:490)
>     at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:409)
>     at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:148)
>     at org.apache.openejb.OpenEJB.init(OpenEJB.java:296)
>     at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:246)
>     at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:134)
>     at
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:122)
>     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>     at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>     at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>     at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>     at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
>     at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
> Caused by: java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
> org.apache.openejb.resource.activemq.ActiveMQFactory.createBroker(ActiveMQFactory.java:121)
>     ... 22 more
> Caused by: java.io.IOException: Could not load xbean
> factory:java.lang.ClassNotFoundException:
> org.apache.activemq.xbean.XBeanBrokerFactory
>     at
> org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
>     at
> org.apache.activemq.broker.BrokerFactory.createBrokerFactoryHandler(BrokerFactory.java:43)
>     at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:70)
>     at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
>     at
> org.apache.openejb.resource.activemq.ActiveMQ5Factory.createBroker(ActiveMQ5Factory.java:62)
>     ... 27 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.activemq.xbean.XBeanBrokerFactory
>
> I've already added
>
>
>    - 
> spring-beans-2.5.6.jar<http://repo1.maven.org/maven2/org/springframework/spring-beans/2.5.6/spring-beans-2.5.6.jar>
>    - 
> spring-context-2.5.6.jar<http://repo1.maven.org/maven2/org/springframework/spring-context/2.5.6/spring-context-2.5.6.jar>
>    - 
> spring-core-2.5.6.jar<http://repo1.maven.org/maven2/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar>
>    - 
> spring-web-2.5.6.jar<http://repo1.maven.org/maven2/org/springframework/spring-web/2.5.6/spring-web-2.5.6.jar>
>    - 
> xbean-spring-3.9.jar<http://repo1.maven.org/maven2/org/apache/xbean/xbean-spring/3.9/xbean-spring-3.9.jar>
>
> am I missing any other jar?
>
> where does this factory should come from?
>
> best regards
>
>
> Leo
>
>
>
> []
>
> Leo
>
>
> On Fri, Jan 31, 2014 at 11:12 AM, Romain Manni-Bucau
> <[email protected]>wrote:
>
>> in activemq.xml file, if then you want to lookup a tomee datasource it
>> will work but the reference is resolved against the xml file only.
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2014-01-31 Leonardo K. Shikida <[email protected]>:
>> > yes, but activemq let me define a data source for jdbc
>> >
>> > this data source can still be declared in tomee.xml or should I declare
>> it
>> > somewhere else?
>> >
>> > []
>> >
>> > Leo
>> >
>> >
>> > On Fri, Jan 31, 2014 at 6:33 AM, Andy <[email protected]
>> >wrote:
>> >
>> >> On 30.01.2014 22:59, Leonardo K. Shikida wrote:
>> >>
>> >>> is it better with xbeans?
>> >>>
>> >>> []
>> >>>
>> >>> Leo
>> >>>
>> >> The default TomEE ActiveMQ configuration using BrokerXmlConfig =
>> >> broker:(tcp://someHostName:61616) is quite rudimentary, but more than
>> >> adequate for MDB usage.  Using the xbean syntax gives you complete
>> control
>> >> over the ActiveMQ configuration, but it is therefore much more advanced
>> and
>> >> requires a deep understanding of the ActiveMQ options.
>> >>
>> >> BrokerXmlConfig = xbean:file:conf/activemq.xml - Check out here...
>> >>
>> >> http://tomee.apache.org/jms-resources-and-mdb-container.html
>> >> ("Internal ActiveMQ Broker with activemq.xml")
>> >>
>> >> And here...
>> >>
>> >> http://activemq.apache.org/xml-configuration.html
>> >>
>> >> Exposing advanced ActiveMQ configuration directly through the TomEE
>> >> resource adapter would be a costly exercise, and is IMHO a waste of time
>> >> and effort when the xbean:file provides this feature.
>> >>
>> >> Andy.
>> >>
>> >>
>>

Reply via email to