5 Replies Latest reply on Jan 23, 2016 4:16 AM by mayerw01

    WIldfly 9.0.2 + Activemq 5.13.0 (External) integration

    matt_madhavan

      Hello,

      I have been having hard time integrating activemq (5.13.0) running externally with wildfly 9.0.2.

       

      If any of you guys have done it successfully, could you please share the steps with me?

       

      I appreciate in advance!

       

      Thanks

      Matt

        • 1. Re: WIldfly 9.0.2 + Activemq 5.13.0 (External) integration
          mayerw01
          • 2. Re: WIldfly 9.0.2 + Activemq 5.13.0 (External) integration
            matt.madhavan

            Hi Wolfgang,

            Thanks for the reply and I appreciate it!

             

            I followed the link and everything seem to work up to a point!

            13:15:02,201 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-1) WFLYJCA0007: Registered connection factory java:/activemq/xaConnectionFactory
            13:15:02,203 WARN  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-1) IJ020016: Missing <recovery> element. XA recovery disabled for: java:/activemq/xaConnectionFactory
            13:15:02,205 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-1) WFLYJCA0006: Registered admin object at java:/queue/HELLOWORLDMDBQueue
            13:15:02,208 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-1) WFLYJCA0006: Registered admin object at java:/topic/HELLOWORLDMDBTopic
            13:15:02,213 WARN  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-1) IJ020017: Invalid archive: file:/C:/devtools/jboss/wildfly-9.0.2.Final/standalone/tmp/vfs/temp/tempc4bad6e404e8852a/content-42fc9985de0b442e/contents/
            13:15:02,214 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-1) IJ020002: Deployed: file:/C:/devtools/jboss/wildfly-9.0.2.Final/standalone/tmp/vfs/temp/tempc4bad6e404e8852a/content-42fc9985de0b442e/contents/
            13:15:02,217 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-2) WFLYJCA0002: Bound JCA AdminObject [java:/topic/HELLOWORLDMDBTopic]
            13:15:02,217 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-5) WFLYJCA0002: Bound JCA AdminObject [java:/queue/HELLOWORLDMDBQueue]
            13:15:02,217 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-7) WFLYJCA0002: Bound JCA ConnectionFactory [java:/activemq/xaConnectionFactory]
            

             

            This tells me the ActiveMQ is configured and running OK (external activeMQ).


            But when I get a connection Im getting the following exceptions - Seems like some kinda classloading issues! Any ideas please?

            java.lang.ClassCastException:

            org.apache.activemq.transport.tcp.TcpTransportFactory cannot be cast to

            org.apache.activemq.transport.TransportFactory

             

             

            Caused by: javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [tcp]
                at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
                at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:335)
                at org.apache.activemq.ActiveMQSslConnectionFactory.createTransport(ActiveMQSslConnectionFactory.java:120)
                ... 66 more
            Caused by: java.io.IOException: Transport scheme NOT recognized: [tcp]
                at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
                at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:189)
                at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:68)
                at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:333)
                ... 67 more
            Caused by: java.lang.ClassCastException: org.apache.activemq.transport.tcp.TcpTransportFactory cannot be cast to org.apache.activemq.transport.TransportFactory
                at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:186)
                ... 69 more
            
            

             

            Any ideas please? Been stuck on this issue for couple of months!

             

            Thanks in advance!

            Matt'M

            • 3. Re: WIldfly 9.0.2 + Activemq 5.13.0 (External) integration
              mayerw01

              Did you also make all the changes mentioned in Comparing wildfly:10.x...jmesnil:helloworld-mdb-activemq-ra · wildfly/quickstart · GitHub?

              I get also the 2 warnings above in my environment but the example should be working fine anyway.

              • 4. Re: WIldfly 9.0.2 + Activemq 5.13.0 (External) integration
                matt_madhavan

                HI Wolfgang,

                Yes I have made the changes and I am getting the same errors. My application ( I am creating Camel routes) doesn't work at all.

                 

                Any other ideas please?

                 

                Thanks

                Matt

                • 5. Re: WIldfly 9.0.2 + Activemq 5.13.0 (External) integration
                  mayerw01

                  Did you also check the Camel route configuration camel-activemq | WildFly Camel?