ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » JNDI initialisation failed, please check your JNDI settings

Post new topic  Reply to topic
 JNDI initialisation failed, please check your JNDI settings « View previous topic :: View next topic » 
Author Message
nick_alan
PostPosted: Thu Aug 22, 2002 10:56 am    Post subject: JNDI initialisation failed, please check your JNDI settings Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Thu Aug 22, 2002 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
nick_alan
PostPosted: Thu Aug 22, 2002 1:58 pm    Post subject: com.sun.jndi.fscontext.RefFSContextFactory Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Thu Aug 22, 2002 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Mon Aug 26, 2002 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
max
PostPosted: Thu Oct 24, 2002 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » JNDI initialisation failed, please check your JNDI settings
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.