|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS Admin Tool Error ! |
« View previous topic :: View next topic » |
Author |
Message
|
Deepak2003 |
Posted: Mon Aug 25, 2003 5:26 am Post subject: JMS Admin Tool Error ! |
|
|
Novice
Joined: 22 Aug 2003 Posts: 12
|
Hi Friends
I am getting error while running JMS Admin command on Windows NT using MQ 5.2 ver.
The error code dump is :
============================================
Command given as JMSAdmin -t -v the following is the error thrown :
Initialising JNDI Context...
INITIAL_CONTEXT_FACTORY: com.ibm.ejs.ns.jndi.CNInitialContextFactory
PROVIDER_URL: iiop://localhost/
06:36:35 [1061816795312] [main] com.ibm.mq.jms.admin.AdminService@64dc11 ==>
initJNDI() entry
06:36:35 [1061816795312] [main] com.ibm.mq.jms.admin.AdminService@64dc11 =
=> setICFProperties() entry
06:36:35 [1061816795312] [main] com.ibm.mq.jms.admin.AdminService@64dc11 <
== setICFProperties() exit
06:36:35 [1061816795328] [main] com.ibm.mq.jms.services.psk.MessageCatalog
ue@ac1fe4 ==> getMessage(0)() entry
06:36:35 [1061816795328] [main] com.ibm.mq.jms.services.psk.MessageCatalog
ue@ac1fe4 <== getMessage(0)() exit
JNDI initialisation failed, please check your JNDI settings and service
06:36:35 [1061816795328] [main] com.ibm.mq.jms.admin.AdminService@64dc11 T
hrowing javax.naming.NoInitialContextException: Cannot instantiate class: com.ib
m.ejs.ns.jndi.CNInitialContextFactory [Root exception is java.lang.ClassNotFound
Exception: com.ibm.ejs.ns.jndi.CNInitialContextFactory]
06:36:35 [1061816795343] [main] com.ibm.mq.jms.admin.AdminService@64dc11 <==
initJNDI() exit
06:36:35 [1061816795343] [main] com.ibm.mq.jms.admin.JMSAdmin@ee3914 constr
uctor() javax.naming.NoInitialContextException exception caught: Cannot instanti
ate class: com.ibm.ejs.ns.jndi.CNInitialContextFactory
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.ejs.ns
.jndi.CNInitialContextFactory. Root exception is java.lang.ClassNotFoundExcepti
on: com.ibm.ejs.ns.jndi.CNInitialContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
49)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.ibm.mq.jms.admin.AdminService.initJNDI(AdminService.java:188)
at com.ibm.mq.jms.admin.JMSAdmin.<init>(JMSAdmin.java:229)
at com.ibm.mq.jms.admin.JMSAdmin.main(JMSAdmin.java:1818)
06:36:35 [1061816795375] [main] com.ibm.mq.jms.admin.JMSAdmin@ee3914 Unable
to initialise JNDI. Calling System.exit()
========================================
My JMSAdmin.cfg file setting is
#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
#
# 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:/JNDI-Directory
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
=====================================
I am not able to proceed further if u guys can help me i will really appreciate for that.
Regards
Deepak |
|
Back to top |
|
 |
vennela |
Posted: Mon Aug 25, 2003 6:18 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Deepak:
Create a directory (lets say you have created JNDIDir in your C drive)
In your JMSAdmin.config file make these changes
Uncomment file system context ICF
#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
#
# 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:/JNDIDir
#PROVIDER_URL=iiop://localhost/
#
That should help you get going. |
|
Back to top |
|
 |
Deepak2003 |
Posted: Mon Aug 25, 2003 7:02 am Post subject: |
|
|
Novice
Joined: 22 Aug 2003 Posts: 12
|
Thanks Venny , i really appreciate for ur quick help.
Regards
Deepak |
|
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
|
|
|
|