7 Replies Latest reply on Jun 4, 2013 10:01 PM by Clebert Suconic

    HortnetQ with Jboss (Connection Factory Not Found)

    R J Newbie

      Hi,

       

      I have an Error . I have configured the hornerq with Jboss 4.3 EAP . but I am getting the following error . your help would be appreciated .

       

       

      java.lang.RuntimeException : ConnectionFactory not bound

                at b.util.accessibility.jms.JmsSender.createConnection(JmsSender.java:68)

                at b.util.accessibility.jms.JmsSender.<init>(JmsSender.java:36)

                at com.le.jmsSender.ActionQueueSender.<clinit>(ActionQueueSender.java:22)

                at b.core.ejb.actionAlias.ActionAliasBean.<clinit>(ActionAliasBean.java:57)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

                at java.lang.Class.newInstance0(Class.java:374)

                at java.lang.Class.newInstance(Class.java:327)

                at org.jboss.ejb.Container.createBeanClassInstance(Container.java:630)

        .....

       

      What is your idea. In hornet Configuration Files . Should I change anything ??

        • 1. Re: HortnetQ with Jboss (Connection Factory Not Found)
          Clebert Suconic Master

          Missing libraries. Add the jboss-all-client.jar and you should be fine.

          1 of 1 people found this helpful
          • 2. Re: HortnetQ with Jboss (Connection Factory Not Found)
            R J Newbie

            Clebert,

             

            Thanks for the response . When I tried by putting the above Jar I am getting the same problem .

            I searched in forums and I added some other JARS (java.jms,jnp-client,and hornet-jms-client) . Are these JARS required ??

             

            But when I added the other three JARS .. I getting someother  problem on my console . Please let me know .

             

            Thanks,

            RJ

             

            Below is the LOG of my console..

             

             

                    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:161)

                    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:108)

                    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

                    ... 162 more

            15:42:15,310 ERROR [MainDeployer] DeploymentException while trying to deploy a package with a new deployer

            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameNotFoundException: comp not bound)

                    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)

                    at org.jboss.web.WebModule.startModule(WebModule.java:83)

                    at org.jboss.web.WebModule.startService(WebModule.java:61)

                    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:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$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:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$Proxy44.start(Unknown Source)

                    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

                    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

                    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

                    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

                    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

                    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 com.sun.proxy.$Proxy45.start(Unknown Source)

                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                    at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:368)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$Proxy43.addDeployer(Unknown Source)

                    at org.jboss.web.tomcat.service.JBossWeb.startService(JBossWeb.java:517)

                    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:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

                    at org.jboss.deployment.SubDeployerInterceptor.invokeNext(SubDeployerInterceptor.java:124)

                    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:109)

                    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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                    at com.sun.proxy.$Proxy0.start(Unknown Source)

                    at org.jboss.system.ServiceController.start(ServiceController.java:417)

                    at org.jboss.system.ServiceController.start(ServiceController.java:435)

                    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$Proxy4.start(Unknown Source)

                    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

                    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.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$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:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$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:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$Proxy4.start(Unknown Source)

                    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

                    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:57)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:601)

                    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 com.sun.proxy.$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:513)

                    at java.lang.Thread.run(Thread.java:722)

            Caused by: javax.naming.NameNotFoundException: comp not bound

                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)

                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)

                    at org.jnp.server.NamingServer.getObject(NamingServer.java:595)

                    at org.jnp.server.NamingServer.lookup(NamingServer.java:342)

                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)

                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

                    at javax.naming.InitialContext.lookup(InitialContext.java:411)

                    at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:475)

                    at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)

                    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:161)

                    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:108)

                    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

                    ... 162 more

            15:42:21,262 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-eap-4.3/server/node/deploy/jmx-console.war/

            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameNotFoundException: comp not bound)

                    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)

                    at org.jboss.web.WebModule.startModule(WebModule.java:83)

                    at org.jboss.web.WebModule.startService(WebModule.java:61)

                    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

            • 3. Re: HortnetQ with Jboss (Connection Factory Not Found)
              Clebert Suconic Master

              jboss-eap-4.3.. that's not even a HornetQ question...

               

               

              And anyways... there's no way to know what mess you are doing there. just throwing a stack trace like this won't help anyone to figure out.

               

               

              Anyway.. since you're using jboss-eap, I would rather use the support forum and provide them a bit more information so someone could help you.

              • 4. Re: HortnetQ with Jboss (Connection Factory Not Found)
                R J Newbie

                Sorry,

                 

                I integrated HornetQ with JBOSS 4.3 . The Issue is I had : ConnectionFactory not bound initially but when I added some more JARS I got some probs which I mentioned . I am doing this for the first time. If I start JBOSS EAP its working fine and everything deploys . The problem is when I integrated the JBOSS with HORNETQ .  Now I am getting (javax.naming.NameNotFoundException: comp not bound) .

                 

                 

                Thanks,

                RJ

                1 of 1 people found this helpful
                • 5. Re: HortnetQ with Jboss (Connection Factory Not Found)
                  Clebert Suconic Master

                  Well, we don't really support HOrnetQ into JBoss 4.3, especially on EAP 4.3. You could have clients connecting into a remote server if you configured the RA properly.. but it's something hard for us to maintain.

                   

                   

                  Since you are on EAP,  you should be able to easily migrate to EAP 5, where there's support to replace HOrnetQ there. JBoss 4 (or EAP4) is a bit hard, since you start to patch and patch it until it becomes a franken-server (JBoss 4 mixed with libraries from JBoss5, 6 and maybe 7 )

                  • 6. Re: HortnetQ with Jboss (Connection Factory Not Found)
                    R J Newbie

                    Thanks .. as of now I have work on EAP 4 . Probably in future we might migrate to EAP 5 . Though I am getting ConnectionFactory Problem .. As you told If I add some JARS I am getting this issue . So .. I am sending you comple log of my console . If you have any idea . please let me know .

                     

                    Thanks,

                    RJ

                    • 7. Re: HortnetQ with Jboss (Connection Factory Not Found)
                      Clebert Suconic Master

                      That's pretty much a consulting job on making the integration to work on EAP 4. We have no official support for that... you just have to make sure you have the right libraries.. and that's not something someone can just look into logs.