File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "MQJMS2005: failed to create MQQueueManager for Watch "MQJMS2005: failed to create MQQueueManager for New topic
Author

MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'

rajesh nag
Greenhorn

Joined: Dec 07, 2005
Posts: 2
Hi,
I have had problems trying to get a JMS client to send a message to a configured Q. I have done everything right but I get this message :
MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'

I have checked my etc/hosts file and I have local host mentioned in there with the loopback address. I have also restarted my machine to prevent any port usage issue. I have also turned my windows firewall off.
I am running this on WSAD 5.0 on windows XP pro machine.

I am using this article's code and steps.

http://www-128.ibm.com/developerworks/websphere/library/techarticles/0307_wilkinson/wilkinson1.html

Can anyone help me ?

-Raj
Rinat Matityahu
Greenhorn

Joined: Jul 05, 2006
Posts: 4
If this indeed has to do with name resolving, try defining a fixed IP for you machine and add it to your hosts file with the fully qualified domain name?
rajesh nag
Greenhorn

Joined: Dec 07, 2005
Posts: 2
Hi,
I am trying this from my home machine. So I can do that for now But I cannot keep that because the IP expires periodically and is renewed. How would I go about doing this in any case ?

Right now my hosts file says:
127.0.0.1localhost

would i change this like this ?
my.ip.add.resslocalhost

Also to avoid any confusion I have attached the trace of the error msg.
WSCL0014I: Invoking the Application Client class PointToPoint
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:451)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:618)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:451)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:158)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:98)
Rinat Matityahu
Greenhorn

Joined: Jul 05, 2006
Posts: 4
Hi.
I am really new to WebSphere and Java, and much better with networking So don't think I can really help you with the log but can sure try with the networking:

If you are using a router at home (I assume it is not dial up?) just configure it to use NAT (Network Address Translation) and configure your machine for a permanent IP (i.e 192.168.1.10)

Which
Open command prompt and run "hostname" (or right click "my computer" and select properties, then "computer name") and check for the name (even better if you have "Full Computer Name" configured.

Then edit your host file (no need to remove loopback line):
my.ip.add.ress COMPUTER_NAME

Good luck!
KrishnaPrasad raghavan
Ranch Hand

Joined: Oct 28, 2008
Posts: 46
Hi, Did you find a solution to this problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'