• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1'

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Did you find a solution to this problem
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic