Wildfly 10 integration with activeMq
nimmi Apr 4, 2016 10:33 AMHi All,
I am trying to migrate our application which is running fine on Wildfly 8 to wildfly 10.0 using ActiveMQ as the messaging layer.
We have activemq-rar.rar included in the deployments directory. On deployment we see the error -
Caused by: java.lang.NoClassDefFoundError: javax/jms/JMSException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.jboss.wsf.stack.cxf.configuration.BusHolder.newInstance(BusHolder.java:313)
at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:211)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.ClassNotFoundException: javax.jms.JMSException from [Module "deployment.App.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 17 more
I've tried including the activemq RA as a jboss module as given in How to Use Out of Process ActiveMQ with WildFly but still see the same issue.
This is one more link that I consulted - Wildfly 9 NoClassDefFoundError javax.jms
I've just been reading up on Wildfly 10 and see that we have now activemq included with Wildfly 10 so I assume the intergration would be different compared to wildlfy8 or 9.
So far we have been using the standalone.xml but in Wildfly 10 I see that the messaging-activemq subsystem is available only in standalone-full.xml.
So I assume I need to use the standalone-full.xml. We are using out-of-process ActiveMQ.
Can anybody point to any more documentation on activemq+ wildfly integration. Any help would be good.