1 2 3 Previous Next 32 Replies Latest reply on Jul 16, 2013 3:34 AM by hoedic Go to original post
      • 15. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
        clebert.suconic

        will do it on monday.

        • 16. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
          clebert.suconic

          Actually I just realized you've sent it...

           

           

          I will take a quick shot on it..

          • 17. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
            clebert.suconic

            Why did you include jboss-mq objects at your config (ds.xml?).. It doesn't seem right:

             

             

              <!-- The server session pool for Message Driven Beans -->

              <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"

                 name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool">

                <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>

                <attribute name="PoolName">StdJMSPool</attribute>

                <attribute name="PoolFactoryClass">

                  org.jboss.jms.asf.StdServerSessionPoolFactory

                </attribute>

              </mbean>

             

             
              <!-- The server session pool for Message Driven Beans -->
              <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
                 name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool">
                <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
                <attribute name="PoolName">StdJMSPool</attribute>
                <attribute name="PoolFactoryClass">
                  org.jboss.jms.asf.StdServerSessionPoolFactory
                </attribute>
              </mbean>
             

            • 18. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
              jmihalich1

                The default jboss invoker-proxy-binding requires that StdJMSPool JNDI entry.  It's pointing to a org.jboss.jms class which ships with jboss.  i don't think the service name matters.  If you take that out, the MDB fails to deploy because the binding can't find it.

               

                 Btw, here's a good test to try: remove the ConfigurationManager topic definition from hornetq-jms.xml.  You'll see the MDB fail to deploy after restarting jboss...proof that it's looking at the destination-jndi-name tag on the MDB.  Jboss is trying really hard to bind to hornetq...something is just messed up, and there's no exceptions when everything is deployed.

               

                 Thanks,

                 Joe

              • 19. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                jmihalich1

                  To be honest, Step 5 in my readme worries me.  The JIRA comments say it's harmless to comment them out, but the warning is scarey that you get in the jboss console on startup.  Don't know if this has anything to do with it or not.

                 

                  Joe

                • 20. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                  clebert.suconic

                  I will have to talk to Andy Taylor on monday to see if he has any idea.

                   

                   

                  I could do this allright with JBoss 5 and 6, as it's not as highly coupled with the ResourceManager as it used to be.

                   

                   

                  Anyway, this is more a JBoss issue than a HornetQ issue. The issue is right at the jboss instance. I will come back on it on monday after I have talked to Andy... I'm not sure what I could do now about this though.

                  • 21. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                    jmihalich1

                      Ok, let me know what you find out.

                     

                      Jboss doesn't have a good reputation of answering jboss 4.2.3 questions these days.

                     

                      Thanks,

                      Joe

                    • 22. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                      clebert.suconic

                      We weren't going to support JBoss 4.2 at first, then an user came out with a patch we accepted it.

                       

                      If you could read/find the doc on how to integrate WebSphere MQ on JBoss 4.2 and follow a similar procedure.

                       

                      Since that container is tightly coupled with the RA on 4.2 you will have to look at that procedure (if you're using EJB 2)

                       

                      The EJB3 is not using all that stuff, that's why it's a bit cleaner.

                       

                       

                      (Or maybe you could migrate to JBoss 5?)

                      • 23. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                        jmihalich1

                           Hmmm.  I'll look into the websphere-mq integration docs and see what it says.  We actually had an internal project at one point that integrated webspere mq into jboss, but that was for jboss 3.x.

                         

                           Jboss 5 is a whole separate nightmare (Thanks for bringing it up lol).  I first started this whole process trying to get our existing stuff to run in the latest jboss 5.  That migration process was too much work in the end for our release cycle, and we might as well wait for JBoss 6.x at this point since it will have hornetq by default, since 6 will be out relatively soon.

                         

                           This is what you get when you're hands are tied behind your back for so long.  You get too far behind.

                         

                           This hornetq thing is unfortunate.  We are so close, there's like one link missing somewhere.  We're using jboss messaging right now, which has been great up till now.  But we're scaling up, and using JMS heavily, with thousands of messages getting dumped on topics at a time sometimes, and jboss messaging almost grinds to a halt when it's bogged down like that...database bottlenecks.

                         

                           The goal here was to load test hornetq with jboss 4.2.3 so we could compare performance.

                         

                           Thanks,

                           Joe

                        • 24. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                          ataylor

                          The first thing i would  check is to see if HornetQresourceAdapter:endpointActivation is called and with what properties, if this this isnt being called then it something in JBoss thats the problem, if it is then its a HornetQ problem and we can take a look.

                          • 25. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                            jmihalich1

                              OK, so I turned on TRACE level logging for org.hornetq, and I did NOT see this line in the log4j log from the source:

                             

                            log.trace((new StringBuilder()).append("endpointActivation(").append(endpointFactory).append(", ").append(spec).append(")").toString());

                             

                              This is the contents of my log file, during startup:

                             

                            2010-10-04 09:33:31,028 [                main] INFO               org.jboss.deployment.EARDeployer : Init J2EE application: file:/D:/java/jboss-4.2.3.GA/server/default-with-hornetq/deploy/hornetq-test.ear
                            2010-10-04 09:33:31,199 [                main] INFO                        org.jboss.ejb.EjbModule : Deploying ejb/ConfigurationManagerMdb
                            2010-10-04 09:33:31,390 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,436 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,436 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,436 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,447 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,447 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,447 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,462 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,462 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,462 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,462 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,462 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,462 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,463 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,463 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,463 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,464 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,464 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,464 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,464 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,464 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,464 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,465 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,465 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,465 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,465 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,466 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,466 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,466 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,466 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,466 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,467 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,467 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,467 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,468 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,468 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,468 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,469 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,469 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,469 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,469 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,469 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,469 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,470 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,470 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,470 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,471 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=36
                            2010-10-04 09:33:31,471 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,471 [464641770-983687898)] TRACE                    org.hornetq.utils.UTF8Util : Reading string with utfSize=11
                            2010-10-04 09:33:31,481 [                main] INFO                      org.jboss.ejb.EJBDeployer : Deployed: file:/D:/java/jboss-4.2.3.GA/server/default-with-hornetq/tmp/deploy/tmp5760011512014419869hornetq-test.ear-contents/hornetq-test.jar
                            2010-10-04 09:33:31,509 [                main] INFO               org.jboss.deployment.EARDeployer : Started J2EE application: file:/D:/java/jboss-4.2.3.GA/server/default-with-hornetq/deploy/hornetq-test.ear

                             

                               Joe

                            • 26. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                              jmihalich1

                              Also, can you guys please confirm that this is a harmless warning...this is caused due to this issue:

                               

                              https://jira.jboss.org/browse/HORNETQ-456

                               

                               

                               

                              2010-10-04 09:33:30,027 [                main] TRACE         org.hornetq.ra.HornetQResourceAdapter : constructor()
                              2010-10-04 09:33:30,029 [                main] TRACE            org.hornetq.ra.HornetQRAProperties : constructor()
                              2010-10-04 09:33:30,033 [                main] TRACE         org.hornetq.ra.HornetQResourceAdapter : setTransportType(org.hornetq.core.remoting.impl.netty.NettyConnectorFactory)
                              2010-10-04 09:33:30,033 [                main] TRACE         org.hornetq.ra.HornetQResourceAdapter : start(org.jboss.resource.deployment.RARDeployment@54d13e2e)
                              2010-10-04 09:33:30,036 [                main] DEBUG                           org.hornetq.ra.Util :
                              java.lang.reflect.InvocationTargetException
                                  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:597)
                                  at org.hornetq.ra.Util.locateTM(Util.java:215)
                                  at org.hornetq.ra.HornetQResourceAdapter.locateTM(HornetQResourceAdapter.java:1433)
                                  at org.hornetq.ra.HornetQResourceAdapter.start(HornetQResourceAdapter.java:203)
                                  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:597)
                                  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 $Proxy49.start(Unknown Source)
                                  at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:356)
                                  at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                                  at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  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 $Proxy9.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.GeneratedMethodAccessor3.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  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:597)
                                  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:304)
                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                                  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:597)
                                  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:508)
                                  at java.lang.Thread.run(Thread.java:619)
                              Caused by: java.lang.NoSuchMethodError: org.jboss.tm.TransactionManagerLocator.locateTransactionManager()Ljavax/transaction/TransactionManager;
                                  at org.hornetq.integration.jboss.tm.JBoss5TransactionManagerLocator.getTm(JBoss5TransactionManagerLocator.java:26)
                                  ... 95 more
                              2010-10-04 09:33:30,039 [                main] DEBUG                           org.hornetq.ra.Util : org.hornetq.integration.jboss.tm.JBoss4TransactionManagerLocator.getTM()
                              java.lang.NoSuchMethodException: org.hornetq.integration.jboss.tm.JBoss4TransactionManagerLocator.getTM()
                                  at java.lang.Class.getMethod(Class.java:1605)
                                  at org.hornetq.ra.Util.locateTM(Util.java:214)
                                  at org.hornetq.ra.HornetQResourceAdapter.locateTM(HornetQResourceAdapter.java:1433)
                                  at org.hornetq.ra.HornetQResourceAdapter.start(HornetQResourceAdapter.java:203)
                                  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:597)
                                  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 $Proxy49.start(Unknown Source)
                                  at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:356)
                                  at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                                  at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  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 $Proxy9.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.GeneratedMethodAccessor3.invoke(Unknown Source)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  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:597)
                                  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:304)
                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                                  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:597)
                                  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:508)
                                  at java.lang.Thread.run(Thread.java:619)
                              2010-10-04 09:33:30,040 [                main] WARN          org.hornetq.ra.HornetQResourceAdapter : It wasn't possible to lookup for a Transaction Manager through the configured properties TransactionManagerLocatorClass and TransactionManagerLocatorMethod
                              2010-10-04 09:33:30,040 [                main] WARN          org.hornetq.ra.HornetQResourceAdapter : HornetQ Resource Adapter won't be able to set and verify transaction timeouts in certain cases.
                              2010-10-04 09:33:30,041 [                main] INFO          org.hornetq.ra.HornetQResourceAdapter : HornetQ resource adaptor started

                              • 27. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                                jmihalich1

                                  Guys, apparently this issued was already addressed by another user a couple of months ago.  I managed to hit the right google search and found these:

                                 

                                http://community.jboss.org/message/556329

                                https://community.jboss.org/wiki/IntegratingHornetQ211andJBossAS4withJMSbridge

                                 

                                Step 6 in the Wiki article is what I was missing.

                                 

                                I recommend adding step 6 to the jboss as4 documentation in the quickstart and/or user manual since two of us ran into this, and nothing will work without it.

                                 

                                Thanks for the help.  I'm working now lol.

                                 

                                Joe

                                • 28. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                                  timfox

                                  The wiki is out of date.

                                   

                                  There is a chapter in the user manual that is supposed to be current, but sadly, this is missing important information too.

                                   

                                  We have had a JIRA to correct this for *ages*. I have been harping on at Andy to do this for months now.....

                                   

                                  It would only take a couple of hours to bring the chapter up to date.

                                  • 29. Re: MDB to durable topic not receiving messages with HornetQ 2.1.2 & Jboss 4.2.3
                                    ataylor

                                    It looks to me as if jboss isnt deploying the MDB at all, clebert, maybe one of the ejb guys could explain why this isnt happening, maybe we need to do something different for EJB2