[Solved] JMSInitialContext: Unable to get the internal JNDI context

JMSInitialContext: “Unable to get the internal JNDI context” error occurs when the developer/ config person has incorrectly specified the client properties file.

For Example: A developer might have used the windows syntax for path in a unix system environment. This error can also occurred when the correct path to the app.properties file is not correct.


The developer/config person has to define the path to the config directory properly and defined JNDI should be available.

Stacktrace of Error

java -Djms.properties=%J2EE_HOME%\config\app.properties MyQueueSender MyFIOTQueue

Queue name is MyFIOTQueue

SEVERE JMSInitialContext: Unable to get internal JNDI context because:
javax.naming.CommunicationException: Cannot connect to ORB [Root exception is
org.omg.CORBA.COMM_FAILURE: minor code: 789479689 completed: No]
This error can be rectified by the user setting the class path for the client application correctly.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s