ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Getting: javax.naming.NameNotFoundException: wsmq not bound

Post new topic  Reply to topic
 Getting: javax.naming.NameNotFoundException: wsmq not bound « View previous topic :: View next topic » 
Author Message
pandeg
PostPosted: Thu Dec 04, 2014 10:05 am    Post subject: Getting: javax.naming.NameNotFoundException: wsmq not bound Reply with quote

Disciple

Joined: 21 Oct 2014
Posts: 195

Hi I am getting below error when I am trying to connect to MQ using JNDI in Jboss server

ERROR [STDERR] javax.naming.NameNotFoundException: wsmq not bound
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:249)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 04, 2014 10:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I'd say there's an error in your configuration or your code. As you've not seen fit to describe either, it's hard to say what.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
pandeg
PostPosted: Thu Dec 04, 2014 3:04 pm    Post subject: Reply with quote

Disciple

Joined: 21 Oct 2014
Posts: 195

Thanks for the reply...Please find below what i am seeing in my server log.

ERROR [STDERR] javax.naming.NameNotFoundException: WSMQQueueConnectionFactory not bound
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1221)
ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Dec 05, 2014 5:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

And still you don't say one word about your configuration or your code.

Or even some kind of explaination why you've posted 2 subtly different errors.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
pandeg
PostPosted: Fri Dec 05, 2014 11:36 am    Post subject: Reply with quote

Disciple

Joined: 21 Oct 2014
Posts: 195

Sorry to provide you less information on this. Here, the application program is doing JNDI lookup for MQ connection factory in jboss-service.xml where all MQ objects has been registered.


name="JndiName">WSMQQueueConnectionFactory</attribute>
<attribute name="JMSStyle">Queue</attribute>
<attribute name="IsXA">false</attribute>
<attribute name="QueueManagerName">QM1</attribute>
<attribute name="HostName">xx.xx.xx.xxx</attribute>
<attribute name="Port">xxxx</attribute>
<attribute name="Channel">CONN1</attribute>
<attribute name>
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Dec 05, 2014 11:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Please list *every* step you have taken to configure the JNDI destination you're trying to look up.

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q031630_.htm?lang=en
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Dec 06, 2014 3:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

pandeg wrote:
Sorry to provide you less information on this. Here, the application program is doing JNDI lookup for MQ connection factory in jboss-service.xml where all MQ objects has been registered.


Code:
<attribute name="JndiName">WSMQQueueConnectionFactory</attribute>
  <attribute name="JMSStyle">Queue</attribute>
  <attribute name="IsXA">false</attribute>
  <attribute name="QueueManagerName">QM1</attribute>
  <attribute name="HostName">xx.xx.xx.xxx</attribute>
  <attribute name="Port">xxxx</attribute>
  <attribute name="Channel">CONN1</attribute>
  <attribute name>

Please don't use this particular initial context factory. It is suitable for demonstration purposes only and should never be used in a production type environment. The preferred initial context factory to be used is the file based context factory.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Getting: javax.naming.NameNotFoundException: wsmq not bound
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.