Author |
Message
|
Suja |
Posted: Wed Nov 08, 2006 9:45 pm Post subject: JNDI Initializing Error While Execute JMS Admin Tool |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Nov 08, 2006 10:08 pm Post subject: Re: JNDI Initializing Error While Execute JMS Admin Tool |
|
|
 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 |
|
 |
Suja |
Posted: Thu Nov 09, 2006 1:25 am Post subject: JNDI Initializing Error While Execute JMS Admin Tool |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Nov 09, 2006 4:16 am Post subject: |
|
|
 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:
- 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
- RTFM it's all in the using Java manual
See the link at the top of this page. - Stop double posting
_________________ MQ & Broker admin |
|
Back to top |
|
 |
malammik |
Posted: Thu Nov 09, 2006 12:36 pm Post subject: |
|
|
 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 |
|
 |
vennela |
Posted: Thu Nov 09, 2006 4:43 pm Post subject: Re: JNDI Initializing Error While Execute JMS Admin Tool |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Suja wrote: |
'c:\JNDI-Diretory'.. |
That directory should exist |
|
Back to top |
|
 |
Suja |
Posted: Fri Nov 10, 2006 12:27 am Post subject: Re: JNDI Initializing Error While Execute JMS Admin Tool |
|
|
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 |
|
 |
malammik |
Posted: Fri Nov 10, 2006 6:51 am Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
|