This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Could not obtain an initial context due to a communication failure? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Could not obtain an initial context due to a communication failure?" Watch "Could not obtain an initial context due to a communication failure?" New topic
Author

Could not obtain an initial context due to a communication failure?

david chan
Ranch Hand

Joined: Jun 10, 2002
Posts: 46
Hi,
I am trying to run the sample code from Willy Farrell's article http://www-106.ibm.com/developerworks/ibm/library/i-ad5mq53/,
I installed the Websphere MQ 5.3 and setup it up as the article said, also had all setup in WSAD 5.1, and run the
QReceiverUI, then put mq/MyQCF in the Connection, it give this error:
Exception: javax.naming.ServiceUnavailableException: Could not obtain an initial context due to a communication failure. Since no provider URL was specified, the default provider URL of "corbaloc:iiop:1.0@99b41p4:2809/NameService" was used. Make sure that any bootstrap address information in the URL is correct and that the target name server is running. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. [Root exception is org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe]
any idea?
Thanks.
David
Roland Barcia
author
Ranch Hand

Joined: Apr 15, 2004
Posts: 181
Make sure you are using Embedded Messaging and not MQJD. This is explained here:
http://www-106.ibm.com/developerworks/websphere/library/techarticles/0310_barcia/barcia.html


Roland Barcia: IBM Distinguished Engineer, CTO Mobile for Lab Services
 
 
subject: Could not obtain an initial context due to a communication failure?
 
Similar Threads
Can't connect to the deployment manager through wsadmin tool
What did I do wront? JMS communication exception
Standalone Java EJB client
JNDI Lookup Error
Problem with WAS 5.1 and application client