0 Replies Latest reply on Sep 14, 2011 12:32 AM by joe_boy12

    javax.naming.NameNotFoundException: queue/MyOrderQueue

    joe_boy12

      Hello folks

       

      I am getting following exception when I try to access JMS Queue from a Servlet on JBoss SOA 5.1. I can see the queue is bound in jmx-console. I am able to look up the XAConnectionFactory but not able to lookup queues. Any help would be appreciated.

       

      Caused by: javax.naming.NameNotFoundException: queue/MyOrderQueue

              at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:242)

              at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)

              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.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:209)

              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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

              at sun.rmi.transport.Transport$1.run(Transport.java:153)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.rmi.transport.Transport.serviceCall(Transport.java:149)

              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)

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

              at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)

              at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)

              at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)

              at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)

              at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:225)

              at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:327)

              at $Proxy0.lookup(Unknown Source)

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

              at com.xyz.esb.client.order.MessageBrowser.run(MessageBrowser.java:53)