|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JNDI initialisation failed, please check your JNDI settings |
« View previous topic :: View next topic » |
Author |
Message
|
nick_alan |
Posted: Thu Aug 22, 2002 10:56 am Post subject: JNDI initialisation failed, please check your JNDI settings |
|
|
Newbie
Joined: 01 Aug 2002 Posts: 7
|
I installed MA88 supportpac on the same machine on
which MQseries 5.2.1 is installed. When trying to Run
IVTSetup, it gives me an error message,
"JNDI initialisation failed, please check your JNDI
settings and service"
I could not find the installation instructions. Please
let me know what things I have to do after installing
the supportpac MA88 and also why is the error showing
up. Do I have to also have application server
installed on the same machine ?
TIA |
|
Back to top |
|
 |
clindsey |
Posted: Thu Aug 22, 2002 1:42 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
The default jndi configuration is set up to use ldap. Try changing it to use simple file based jndi. Edit <mqdir>\java\bin\JMSAdmin.config and comment out the ldap line and uncomment the fscontext line.
#INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
Also set the provider url to use file and set the file path to a valid path for your system, e.g
#PROVIDER_URL=ldap://polaris/o=ibm,c=us
PROVIDER_URL=file:/C:/mqm/java/bin
Save the changes and try again.
Charlie |
|
Back to top |
|
 |
nick_alan |
Posted: Thu Aug 22, 2002 1:58 pm Post subject: com.sun.jndi.fscontext.RefFSContextFactory |
|
|
Newbie
Joined: 01 Aug 2002 Posts: 7
|
I can't seem to find "com.sun.jndi.fscontext.RefFSContextFactory" jar on my machine. How do I get it?
Also what should be the location for PROVIDER_URL ? |
|
Back to top |
|
 |
clindsey |
Posted: Thu Aug 22, 2002 6:25 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Well, I don't have this jar either so apparently you don't need it.
With just this list in my classpath, I can execute JMSAdmin using
file system jndi:
<mqdir>\Java\lib
<mqdir>\Java\lib\com.ibm.mq.jar
<mqdir>\Java\lib\com.ibm.mqjms.jar
<mqdir>\Java\lib\fscontext.jar
<mqdir>\Java\lib\connector.jar
<mqdir>\Java\lib\jta.jar
<mqdir>\Java\lib\jms.jar
<mqdir>\Java\lib\ldap.jar
<mqdir>\Java\lib\providerutil.jar
PROVIDER_URL is just a repository location. It can be any valid directory in your file system, for example, on my WIN/2000 box it is
PROVIDER_URL=file:/C:/mqm/java/bin. After you successfully run IVTSetup.bat, you will find a .bindings file in this path. That is the file system jndi repository.
Charlie |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 26, 2002 10:49 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I thought the file system context was in the fscontext.jar which is in java\lib subdirectory. |
|
Back to top |
|
 |
max |
Posted: Thu Oct 24, 2002 3:11 pm Post subject: |
|
|
Newbie
Joined: 17 Aug 2001 Posts: 2 Location: Boca Raton, FL
|
The directory specified in PROVIDER_URL must exists in advance.
JMSAdmin will not create this directory for you if it doesn't exist, but
will fail with the mentioned JNDI Initialisation error.
JMSAdmin will then create .bindings repository file. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|