You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Raghul Nandagopal <nr...@gmail.com> on 2006/11/18 12:25:19 UTC

AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Hi,

I followed instructions from
http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html 
to integrate AMQ with JBoss.
If i have Spring 1.2.4, the integration works fine. If i add Spring 2.0, i
get exception
"Could not find valid implementation for: 2.0" - stack trace added below.
How to get the broker-config.xml going for Spring 2.0

I have to make this going as i have to integrate ServiceMix also in to the
same JBoss Container - ServiceMix being Spring 2.0 compliant.

Please help me with a solution for the integration.

16:27:06,296 WARN  [ServiceController] Problem starting service
jboss.jca:service=RARDeployment,name='activemq-rar-4.2-incubator-SNAPSHOT.rar'
javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
embedded broker: xbean:broker-config.xml, due to:
java.lang.IllegalStateException:
Could not find valid implementation for: 2.0
        at
org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:83)
        at
org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at
org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
        at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at
org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy39.start(Unknown Source)
        at
org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345)
        at
org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
        at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy8.deploy(Unknown Source)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at
org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:464)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalStateException: Could not find valid
implementation for: 2.0
        at
org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170)
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
        at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
        at
org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:80)
        ... 88 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at
org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:46)
        ... 96 more
Caused by: java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V
        at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:58)
        ... 101 more
-- 
View this message in context: http://www.nabble.com/AMQ-4.2-%2B-JBoss-4.0.4-%2B-Spring-2.0-integration-tf2659208.html#a7417277
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Hiram Chirino <hi...@hiramchirino.com>.
You might want to start out with writing small unit tests that load
ActiveMQ using xbean under jboss without all the RA stuff.  It might
be something to so with the classpath.

On 11/20/06, Raghul Nandagopal <nr...@gmail.com> wrote:
>
> Hi,
> Can Someone Help Please :)
>
>
> Raghul Nandagopal wrote:
> >
> > Guillaume,
> > I did try that option too...
> > I am attaching the config files... please let me know what's going
> > wrong...
> >  http://www.nabble.com/file/4219/broker-config.xml broker-config.xml
> >  http://www.nabble.com/file/4220/ra.xml ra.xml
> >
> > when i do this, the exception i get is
> >
> > 00:28:19,937 WARN  [ServiceController] Problem starting service
> > jboss.jca:service=RARDeployment,name='activemq-rar-4.2-incubator-SNAPSHOT.rar'
> > javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
> > embedded broker: xbean:broker-config.xml, due to:
> > java.lang.IllegalStateException:
> > Could not find valid implementation for: 2.0
> >         at
> > org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:83)
> >         at
> > org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
> >         at
> > org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
> >         at
> > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
> >         at
> > org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
> >         at
> > org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> >         at
> > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
> >         at $Proxy0.start(Unknown Source)
> >         at
> > org.jboss.system.ServiceController.start(ServiceController.java:417)
> >         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> >         at
> > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> >         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> >         at $Proxy39.start(Unknown Source)
> >         at
> > org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345)
> >         at
> > org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
> >         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
> >         at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> >         at
> > org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> >         at
> > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> >         at
> > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> >         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> >         at $Proxy8.deploy(Unknown Source)
> >         at
> > org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
> >         at
> > org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
> >         at
> > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
> >         at
> > org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
> >         at
> > org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
> >         at
> > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
> >         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> >         at
> > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> >         at
> > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
> >         at $Proxy0.start(Unknown Source)
> >         at
> > org.jboss.system.ServiceController.start(ServiceController.java:417)
> >         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> >         at
> > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> >         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> >         at $Proxy4.start(Unknown Source)
> >         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
> >         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> >         at
> > org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> >         at
> > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> >         at
> > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> >         at
> > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> >         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> >         at $Proxy5.deploy(Unknown Source)
> >         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
> >         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
> >         at org.jboss.Main.boot(Main.java:200)
> >         at org.jboss.Main$1.run(Main.java:464)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.IllegalStateException: Could not find valid
> > implementation for: 2.0
> >         at
> > org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48)
> >         at
> > org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170)
> >         at
> > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
> >         at
> > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
> >         at
> > org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
> >         at
> > org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
> >         at
> > org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)
> >         at
> > org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
> >         at
> > org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:80)
> >         ... 88 more
> > Caused by: java.lang.reflect.InvocationTargetException
> >         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >         at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> >         at
> > org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:46)
> >         ... 96 more
> > Caused by: java.lang.NoSuchMethodError:
> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V
> >         at
> > org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:58)
> >         ... 101 more
> >
> >
> > gnodet wrote:
> >>
> >> This is a small incompatibility.
> >> The <beans> tag needs to be in the default ("") namespace
> >> or in a spring namespace. You can not write anymore:
> >>   <beans xmlns="http://activemq.org/config/1.0">
> >>     <broker> ...
> >>
> >> but you need to write:
> >>    <beans>
> >>      <broker xmlns="http://activemq..."
> >>
> >> or
> >>    <beans xmlns:amq="http://activemq.org/config/1.0>
> >>      <amq:broker ...
> >>
> >>
> >>
> >> On 11/18/06, Bruce Snyder <br...@gmail.com> wrote:
> >>> On 11/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
> >>> > You need to upgrade your ActiveMQ to use xbean 2.7.
> >>> > Jars are available on public repositories.
> >>>
> >>> I just replaced the spring-1.2.6.jar with the spring-2.0.jar and the
> >>> xbean-spring-2.2.jar with the xbean-spring-2.7.jar and now I'm getting
> >>> the following error:
> >>>
> >>> ClassNotFoundException: No ClassLoaders found for: beans
> >>>
> >>> I know I've seen this before and fixed it, but ATM I can't recall why
> >>> this is happening and what I did to fix it. Guillaume is the XBean
> >>> guru, hopefully he can shed some light on the situation. I don't think
> >>> I need to compile ActiveMQ against XBean 2.7, but I can't recall now.
> >>>
> >>> Guillaume, any suggestions?
> >>>
> >>> Bruce
> >>> --
> >>> perl -e 'print
> >>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >>> );'
> >>>
> >>> Apache Geronimo - http://geronimo.apache.org/
> >>> Apache ActiveMQ - http://activemq.org/
> >>> Apache ServiceMix - http://servicemix.org/
> >>> Castor - http://castor.org/
> >>>
> >>
> >>
> >> --
> >> Cheers,
> >> Guillaume Nodet
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/AMQ-4.2-%2B-JBoss-4.0.4-%2B-Spring-2.0-integration-tf2659208.html#a7465412
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Bruce Snyder <br...@gmail.com>.
On 11/20/06, Raghul Nandagopal <nr...@gmail.com> wrote:
>
> Hi,
> Can Someone Help Please :)

My apologies for the delay, Raghul. I've updated the article by
attaching tarballs for two examples now - one for Spring 1.x and the
other for Spring 2.x. These are available at the bottom of the
article. The page hasn't been exported from the wiki to the DevZone
yet, so just view it on the wiki:

http://goopen.org/confluence/display/LBDev/Integrating+Apache+ActiveMQ+with+JBoss

I've tested them both so I know they work correctly. Please let me
know if you need any further assistance.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Raghul Nandagopal <nr...@gmail.com>.
Hi,
Can Someone Help Please :)


Raghul Nandagopal wrote:
> 
> Guillaume,
> I did try that option too...
> I am attaching the config files... please let me know what's going
> wrong...
>  http://www.nabble.com/file/4219/broker-config.xml broker-config.xml 
>  http://www.nabble.com/file/4220/ra.xml ra.xml 
> 
> when i do this, the exception i get is 
> 
> 00:28:19,937 WARN  [ServiceController] Problem starting service
> jboss.jca:service=RARDeployment,name='activemq-rar-4.2-incubator-SNAPSHOT.rar'
> javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
> embedded broker: xbean:broker-config.xml, due to:
> java.lang.IllegalStateException:
> Could not find valid implementation for: 2.0
>         at
> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:83)
>         at
> org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>         at
> org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
>         at
> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>         at $Proxy0.start(Unknown Source)
>         at
> org.jboss.system.ServiceController.start(ServiceController.java:417)
>         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy39.start(Unknown Source)
>         at
> org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345)
>         at
> org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
>         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
>         at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at
> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy8.deploy(Unknown Source)
>         at
> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
>         at
> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
>         at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
>         at
> org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>         at $Proxy0.start(Unknown Source)
>         at
> org.jboss.system.ServiceController.start(ServiceController.java:417)
>         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy4.start(Unknown Source)
>         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
>         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at
> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy5.deploy(Unknown Source)
>         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
>         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
>         at org.jboss.Main.boot(Main.java:200)
>         at org.jboss.Main$1.run(Main.java:464)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.IllegalStateException: Could not find valid
> implementation for: 2.0
>         at
> org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
>         at
> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:80)
>         ... 88 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>         at
> org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:46)
>         ... 96 more
> Caused by: java.lang.NoSuchMethodError:
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V
>         at
> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:58)
>         ... 101 more
> 
> 
> gnodet wrote:
>> 
>> This is a small incompatibility.
>> The <beans> tag needs to be in the default ("") namespace
>> or in a spring namespace. You can not write anymore:
>>   <beans xmlns="http://activemq.org/config/1.0">
>>     <broker> ...
>> 
>> but you need to write:
>>    <beans>
>>      <broker xmlns="http://activemq..."
>> 
>> or
>>    <beans xmlns:amq="http://activemq.org/config/1.0>
>>      <amq:broker ...
>> 
>> 
>> 
>> On 11/18/06, Bruce Snyder <br...@gmail.com> wrote:
>>> On 11/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
>>> > You need to upgrade your ActiveMQ to use xbean 2.7.
>>> > Jars are available on public repositories.
>>>
>>> I just replaced the spring-1.2.6.jar with the spring-2.0.jar and the
>>> xbean-spring-2.2.jar with the xbean-spring-2.7.jar and now I'm getting
>>> the following error:
>>>
>>> ClassNotFoundException: No ClassLoaders found for: beans
>>>
>>> I know I've seen this before and fixed it, but ATM I can't recall why
>>> this is happening and what I did to fix it. Guillaume is the XBean
>>> guru, hopefully he can shed some light on the situation. I don't think
>>> I need to compile ActiveMQ against XBean 2.7, but I can't recall now.
>>>
>>> Guillaume, any suggestions?
>>>
>>> Bruce
>>> --
>>> perl -e 'print
>>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>> );'
>>>
>>> Apache Geronimo - http://geronimo.apache.org/
>>> Apache ActiveMQ - http://activemq.org/
>>> Apache ServiceMix - http://servicemix.org/
>>> Castor - http://castor.org/
>>>
>> 
>> 
>> -- 
>> Cheers,
>> Guillaume Nodet
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AMQ-4.2-%2B-JBoss-4.0.4-%2B-Spring-2.0-integration-tf2659208.html#a7465412
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Raghul Nandagopal <nr...@gmail.com>.
Guillaume,
I did try that option too...
I am attaching the config files... please let me know what's going wrong...

when i do this, the exception i get is 

00:28:19,937 WARN  [ServiceController] Problem starting service
jboss.jca:service=RARDeployment,name='activemq-rar-4.2-incubator-SNAPSHOT.rar'
javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
embedded broker: xbean:broker-config.xml, due to:
java.lang.IllegalStateException:
Could not find valid implementation for: 2.0
        at
org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:83)
        at
org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at
org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
        at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at
org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy39.start(Unknown Source)
        at
org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345)
        at
org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
        at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy8.deploy(Unknown Source)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at
org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:464)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalStateException: Could not find valid
implementation for: 2.0
        at
org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170)
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
        at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
        at
org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:80)
        ... 88 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at
org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:46)
        ... 96 more
Caused by: java.lang.NoSuchMethodError:
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V
        at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:58)
        ... 101 more http://www.nabble.com/file/4219/broker-config.xml
broker-config.xml  http://www.nabble.com/file/4220/ra.xml ra.xml 


gnodet wrote:
> 
> This is a small incompatibility.
> The <beans> tag needs to be in the default ("") namespace
> or in a spring namespace. You can not write anymore:
>   <beans xmlns="http://activemq.org/config/1.0">
>     <broker> ...
> 
> but you need to write:
>    <beans>
>      <broker xmlns="http://activemq..."
> 
> or
>    <beans xmlns:amq="http://activemq.org/config/1.0>
>      <amq:broker ...
> 
> 
> 
> On 11/18/06, Bruce Snyder <br...@gmail.com> wrote:
>> On 11/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
>> > You need to upgrade your ActiveMQ to use xbean 2.7.
>> > Jars are available on public repositories.
>>
>> I just replaced the spring-1.2.6.jar with the spring-2.0.jar and the
>> xbean-spring-2.2.jar with the xbean-spring-2.7.jar and now I'm getting
>> the following error:
>>
>> ClassNotFoundException: No ClassLoaders found for: beans
>>
>> I know I've seen this before and fixed it, but ATM I can't recall why
>> this is happening and what I did to fix it. Guillaume is the XBean
>> guru, hopefully he can shed some light on the situation. I don't think
>> I need to compile ActiveMQ against XBean 2.7, but I can't recall now.
>>
>> Guillaume, any suggestions?
>>
>> Bruce
>> --
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache Geronimo - http://geronimo.apache.org/
>> Apache ActiveMQ - http://activemq.org/
>> Apache ServiceMix - http://servicemix.org/
>> Castor - http://castor.org/
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/AMQ-4.2-%2B-JBoss-4.0.4-%2B-Spring-2.0-integration-tf2659208.html#a7422401
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Guillaume Nodet <gn...@gmail.com>.
This is a small incompatibility.
The <beans> tag needs to be in the default ("") namespace
or in a spring namespace. You can not write anymore:
  <beans xmlns="http://activemq.org/config/1.0">
    <broker> ...

but you need to write:
   <beans>
     <broker xmlns="http://activemq..."

or
   <beans xmlns:amq="http://activemq.org/config/1.0>
     <amq:broker ...



On 11/18/06, Bruce Snyder <br...@gmail.com> wrote:
> On 11/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > You need to upgrade your ActiveMQ to use xbean 2.7.
> > Jars are available on public repositories.
>
> I just replaced the spring-1.2.6.jar with the spring-2.0.jar and the
> xbean-spring-2.2.jar with the xbean-spring-2.7.jar and now I'm getting
> the following error:
>
> ClassNotFoundException: No ClassLoaders found for: beans
>
> I know I've seen this before and fixed it, but ATM I can't recall why
> this is happening and what I did to fix it. Guillaume is the XBean
> guru, hopefully he can shed some light on the situation. I don't think
> I need to compile ActiveMQ against XBean 2.7, but I can't recall now.
>
> Guillaume, any suggestions?
>
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>


-- 
Cheers,
Guillaume Nodet

Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Raghul Nandagopal <nr...@gmail.com>.
Hi,

I did the same thing and got the same error :)
do we need to change the ra.xml and broker-config.xml?


bsnyder wrote:
> 
> On 11/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
>> You need to upgrade your ActiveMQ to use xbean 2.7.
>> Jars are available on public repositories.
> 
> I just replaced the spring-1.2.6.jar with the spring-2.0.jar and the
> xbean-spring-2.2.jar with the xbean-spring-2.7.jar and now I'm getting
> the following error:
> 
> ClassNotFoundException: No ClassLoaders found for: beans
> 
> I know I've seen this before and fixed it, but ATM I can't recall why
> this is happening and what I did to fix it. Guillaume is the XBean
> guru, hopefully he can shed some light on the situation. I don't think
> I need to compile ActiveMQ against XBean 2.7, but I can't recall now.
> 
> Guillaume, any suggestions?
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/AMQ-4.2-%2B-JBoss-4.0.4-%2B-Spring-2.0-integration-tf2659208.html#a7421201
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Bruce Snyder <br...@gmail.com>.
On 11/18/06, Guillaume Nodet <gn...@gmail.com> wrote:
> You need to upgrade your ActiveMQ to use xbean 2.7.
> Jars are available on public repositories.

I just replaced the spring-1.2.6.jar with the spring-2.0.jar and the
xbean-spring-2.2.jar with the xbean-spring-2.7.jar and now I'm getting
the following error:

ClassNotFoundException: No ClassLoaders found for: beans

I know I've seen this before and fixed it, but ATM I can't recall why
this is happening and what I did to fix it. Guillaume is the XBean
guru, hopefully he can shed some light on the situation. I don't think
I need to compile ActiveMQ against XBean 2.7, but I can't recall now.

Guillaume, any suggestions?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: AMQ 4.2 + JBoss 4.0.4 + Spring 2.0 integration

Posted by Guillaume Nodet <gn...@gmail.com>.
You need to upgrade your ActiveMQ to use xbean 2.7.
Jars are available on public repositories.

On 11/18/06, Raghul Nandagopal <nr...@gmail.com> wrote:
>
> Hi,
>
> I followed instructions from
> http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html
> to integrate AMQ with JBoss.
> If i have Spring 1.2.4, the integration works fine. If i add Spring 2.0, i
> get exception
> "Could not find valid implementation for: 2.0" - stack trace added below.
> How to get the broker-config.xml going for Spring 2.0
>
> I have to make this going as i have to integrate ServiceMix also in to the
> same JBoss Container - ServiceMix being Spring 2.0 compliant.
>
> Please help me with a solution for the integration.
>
> 16:27:06,296 WARN  [ServiceController] Problem starting service
> jboss.jca:service=RARDeployment,name='activemq-rar-4.2-incubator-SNAPSHOT.rar'
> javax.resource.spi.ResourceAdapterInternalException: Failed to startup an
> embedded broker: xbean:broker-config.xml, due to:
> java.lang.IllegalStateException:
> Could not find valid implementation for: 2.0
>         at
> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:83)
>         at
> org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>         at
> org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
>         at
> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>         at $Proxy0.start(Unknown Source)
>         at
> org.jboss.system.ServiceController.start(ServiceController.java:417)
>         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy39.start(Unknown Source)
>         at
> org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:345)
>         at
> org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
>         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
>         at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at
> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy8.deploy(Unknown Source)
>         at
> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
>         at
> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
>         at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
>         at
> org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>         at
> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>         at $Proxy0.start(Unknown Source)
>         at
> org.jboss.system.ServiceController.start(ServiceController.java:417)
>         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy4.start(Unknown Source)
>         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
>         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
>         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>         at
> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>         at $Proxy5.deploy(Unknown Source)
>         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
>         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
>         at org.jboss.Main.boot(Main.java:200)
>         at org.jboss.Main$1.run(Main.java:464)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.IllegalStateException: Could not find valid
> implementation for: 2.0
>         at
> org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:48)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanDefinitions(ClassPathXmlApplicationContext.java:170)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:41)
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:57)
>         at
> org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:80)
>         ... 88 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>         at
> org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionReader(XBeanHelper.java:46)
>         ... 96 more
> Caused by: java.lang.NoSuchMethodError:
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setValidationMode(I)V
>         at
> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.<init>(XBeanXmlBeanDefinitionReader.java:58)
>         ... 101 more
> --
> View this message in context: http://www.nabble.com/AMQ-4.2-%2B-JBoss-4.0.4-%2B-Spring-2.0-integration-tf2659208.html#a7417277
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet