Incorrect URL error when starting JMSAdmin (IBM MQ Client)
Facts - Other software technologies
Thursday, 09 June 2011 20:28

This note is for the IBM Websphere MQ Client version 6.

When trying to start JMSAdmin.bat from C:\Program Files\IBM\WebSphere MQ\Java\bin I got the following error:

C:\Program Files\IBM\WebSphere MQ\Java\bin>JMSAdmin -v -t -cfg JMSAdmin.config
5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights Reserved.
Starting Websphere MQ classes for Java(tm) Message Service Administration

Initializing JNDI Context...
   INITIAL_CONTEXT_FACTORY: com.sun.jndi.ldap.LdapCtxFactory
   PROVIDER_URL: file:/C:/jndibinding
JNDI initialization failed, please check your JNDI settings and service.
For additional information on the cause of this problem run with the -v argument

Error: javax.naming.NamingException: Cannot parse url: file:/C:/jndibinding [Root 
exception is Not an LDAP URL: file:/C:/jndibinding]

First I thought that the parameter PROVIDER_URL=file:/C:/jndibinding in JMSAdmin.config was incorrect. But after some trial and error it turned out that the parameter INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory should be replaced by INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory.

After getting this tool up and running I wondered what the proper way was to quit this application. I tried commands like "quit" and "exit". The command to exit JMSAdmin is "end".