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 Initializing Error While Execute JMS Admin Tool

Post new topic  Reply to topic
 JNDI Initializing Error While Execute JMS Admin Tool « View previous topic :: View next topic » 
Author Message
Suja
PostPosted: Wed Nov 08, 2006 9:45 pm    Post subject: JNDI Initializing Error While Execute JMS Admin Tool Reply with quote

Novice

Joined: 07 Nov 2006
Posts: 16

Hi,

I have been getting an error while executing JMS Admin tool.i.e,
JNDI initialization failed , please Check your JNDI Settings and Service.
error: Javax.naming Communication Exception:porais:389...
i have used the default values which were set to Ldap INITIAL_CONTEXT_FACTORY and PROVIDER_URL..
plz tell me..what must be the context factory and provider url to execute JMS ADMIN tool....
_________________
Suja
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 08, 2006 10:08 pm    Post subject: Re: JNDI Initializing Error While Execute JMS Admin Tool Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Suja wrote:
Hi,

I have been getting an error while executing JMS Admin tool.i.e,
JNDI initialization failed , please Check your JNDI Settings and Service.
error: Javax.naming Communication Exception:porais:389...
i have used the default values which were set to Ldap INITIAL_CONTEXT_FACTORY and PROVIDER_URL..
plz tell me..what must be the context factory and provider url to execute JMS ADMIN tool....


As a newbie to this, I suggest you start with a file based JNDI first. Use the sun class provided in the package...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Suja
PostPosted: Thu Nov 09, 2006 1:25 am    Post subject: JNDI Initializing Error While Execute JMS Admin Tool Reply with quote

Novice

Joined: 07 Nov 2006
Posts: 16

HI,
Thank u . But with the provider as u told(i hav uncomented the coresponding values in JMSAdmin.config)..Still its giving me the same error..
JNDI initializing failed, please Check your setting and service.
error: Javax.naming.NameNotFoundException; remaining name 'c:\JNDI-Diretory'..
plz tell me....what might be the problem in settings....?and what could be changes made to run it successfully.
_________________
Suja
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 09, 2006 4:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

As we are all psychics here (we will open a money making hotline in a few days...) and just "know" how you configured your env and JMSAdmin, we will give you a few tips:
  1. make sure all the classes you need are on the classpath. You should not need any jars beyond those provided by IBM in the MQ install
  2. RTFM it's all in the using Java manual
    See the link at the top of this page.
  3. Stop double posting

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
malammik
PostPosted: Thu Nov 09, 2006 12:36 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Here is a sample that works for me.
# ------------------------------------------------------------
# IBM Websphere MQ Support for Java Message Service
# This is the default configuration file for the Websphere MQ Classes for
# Java Message Service Administration Tool.
#
# Licensed Materials - Property of IBM
#
# 5648-C60 5724-B4 5655-F10
#
# (c) Copyright IBM Corp. 2002. All Rights Reserved.
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
# ------------------------------------------------------------
#
# The following line specifies which JNDI service provider is in use.
# It currently indicates an LDAP service provider. If a different
# service provider is used, this line should be commented out and the
# appropriate one should be uncommented.
#
#INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
#INITIAL_CONTEXT_FACTORY=com.ibm.ejs.ns.jndi.CNInitialContextFactory
#INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
#
# The following line specifies the URL of the service provider's initial
# context. It currently refers to an LDAP root context. Examples of a
# file system URL and WebSphere's JNDI namespace are also shown, commented
# out.
#
#PROVIDER_URL=ldap://polaris/o=ibm,c=us
PROVIDER_URL=file:/C:/sunjndi
#PROVIDER_URL=iiop://localhost/
#
# The following line specifies the security authentication model in use,
# and may be 'none' (for anonymous authentication), 'simple', or 'CRAM_MD5'.
#
SECURITY_AUTHENTICATION=none
#
# If you don't have SECURITY_AUTHENTICATION=none, then JMSAdmin will
# prompt you for the User DN and password. If you want to bypass these
# prompts then you can specify one or both of the values here. Since
# the password here is in cleartext this is not normally recommended
# except for testing. You should replace these values with your own.
#
#PROVIDER_USERDN=cn=Manager,o=ibm,c=uk
#PROVIDER_PASSWORD=secret
#
#
# The following line determines whether to use an InitialDirContext, or an
# InitialContext. Takes value of TRUE or FALSE.
#USE_INITIAL_DIR_CONTEXT=TRUE
#
# The following line specifies a prefix to add to names when carrying out operations such
# as lookup/bind.
#NAME_PREFIX=cn=
#
# The following line specifies a marker at which names will be truncated when viewing
# the contents of the Context.
#NAME_READABILITY_MARKER=..
#
# The three standard types of InitialContextFactory have the following defaults;
# Note that these defaults will be set automatically if the flags are not present, but
# will be overrided by including the flags.
#
# LDAP FSCONTEXT WEBSPHERE
# ------------------------------------------------------------------------------------
# USE_INITIAL_DIR_CONTEXT TRUE FALSE FALSE
# NAME_PREFIX cn= omitted omitted
# NAME_READABILITY_MARKER omitted omitted ..
#
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
vennela
PostPosted: Thu Nov 09, 2006 4:43 pm    Post subject: Re: JNDI Initializing Error While Execute JMS Admin Tool Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Suja wrote:
'c:\JNDI-Diretory'..

That directory should exist
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Suja
PostPosted: Fri Nov 10, 2006 12:27 am    Post subject: Re: JNDI Initializing Error While Execute JMS Admin Tool Reply with quote

Novice

Joined: 07 Nov 2006
Posts: 16

how will i get that file.. what should be the content of it....
vennela wrote:
Suja wrote:
'c:\JNDI-Diretory'..

That directory should exist

_________________
Suja
Back to top
View user's profile Send private message
malammik
PostPosted: Fri Nov 10, 2006 6:51 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

If you use the file I posted, just create a directory called C:\sunjndi
JMSAdmin tool will create the file inside of it.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » JNDI Initializing Error While Execute JMS Admin Tool
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.