Author |
Message
|
paton |
Posted: Fri Jun 21, 2002 7:55 am Post subject: JMSAdmin / CNInitialContextFactory / WAS 4.0.3 |
|
|
Newbie
Joined: 21 Jun 2002 Posts: 6
|
Hi
I've seen other posts refering to the error message:
"JNDI initialisation failed, please check your JNDI settings and service"
when running the JMSAdmin tool.
Has anyone had this using the com.ibm.ejs.ns.jndi.CNInitialContextFactory with WAS 4.0.3 (and found a solution)?
I have seen the posts / tutorials refering to the Persistent Name Server in VAJ, but want to know if the JMSAdmin tool can use WAS 4.0.3 was the name service.
Thanks
Paul |
|
Back to top |
|
 |
jlamond |
Posted: Fri Jun 21, 2002 8:01 am Post subject: |
|
|
Voyager
Joined: 28 May 2002 Posts: 94 Location: Paris
|
With WebSphere 4.x you should use : com.ibm.websphere.naming.WsnInitialContextFactory as your context factory. I have to admit that the documentation is not great but it does work fine. _________________ Jean-Marc |
|
Back to top |
|
 |
paton |
Posted: Fri Jun 21, 2002 8:17 am Post subject: WsnInitialContextFactory |
|
|
Newbie
Joined: 21 Jun 2002 Posts: 6
|
Hi Jean-Marc
thanks for the quick reply.
I have tried using
com.ibm.websphere.naming.WsnInitialContextFactory
but then the JMSAdmin tool gives me a
javax.jms.JMSException: Unsupported JNDI service provider.
Thanks
Paul |
|
Back to top |
|
 |
jlamond |
Posted: Fri Jun 21, 2002 8:40 am Post subject: |
|
|
Voyager
Joined: 28 May 2002 Posts: 94 Location: Paris
|
Hi Paul,
Can you provide me with a summary of your jmsadmin.config (only revelant part) as well as what you are currently using as classpath.
Regards,
JM _________________ Jean-Marc |
|
Back to top |
|
 |
jlamond |
Posted: Fri Jun 21, 2002 8:44 am Post subject: |
|
|
Voyager
Joined: 28 May 2002 Posts: 94 Location: Paris
|
Here my setting :
INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
PROVIDER_URL=iiop://localhost/
And my system classpath :
C:\MQSeries\Java\Lib;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;C:\SQLLIB\bin;c:\MQSeries\java\lib\com.ibm.mq.jar;c:\MQSeries\java\lib\com.ibm.mqjms.jar;c:\MQSeries\java\lib\connector.jar;c:\was4\lib\ns.jar;c:\was4\lib\j2ee.jar
Don't forget that your WAS admin server must be running in order to access the WAS NameSpace
Regards,
JM _________________ Jean-Marc |
|
Back to top |
|
 |
paton |
Posted: Fri Jun 21, 2002 9:00 am Post subject: JMSAdmin / WsnInitialContextFactory |
|
|
Newbie
Joined: 21 Jun 2002 Posts: 6
|
Hi.
My config is the same (below), and I still get:
javax.jms.JMSException: Unsupported JNDI service provider: com.ibm.websphere.naming.WsnInitialContextFactory
It could be that the version of ma88 which is installed is an older one than you have. The setup.ini file reads:
MsiVersion=1.10.1029.1
Thanks
Paul
************
config:
PROVIDER_URL=iiop://localhost/
INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
CLASSPATH: I included all the .jars you mentioned, and in the same order, but took the liberty of not looking for the SQLLIB entries:
set LIB=C:\MQSeries\Java\lib\
set CP=%CP%;%LIB%com.ibm.mq.jar
set CP=%CP%;%LIB%com.ibm.mqjms.jar
set CP=%CP%;%LIB%connector.jar
set CP=%CP%;%LIB%ns.jar
set CP=%CP%;%LIB%j2ee.jar |
|
Back to top |
|
 |
jlamond |
Posted: Fri Jun 21, 2002 9:16 am Post subject: |
|
|
Voyager
Joined: 28 May 2002 Posts: 94 Location: Paris
|
I'm using the exact same version as you do and I just (yesterday) to WAS 4.0.3. and everything is working, and the process was much easier that the one from WAS 3.5.4. By shure to also have mqseries\java\lib as part of your execution path "PATH" as well as the websphere\appserver\jre\bin.
here's my complete jmsadmin.bat file :
@echo off
rem ----------------------------------------------
rem IBM MQSeries JMS Admin Tool Execution Script
rem for Windows NT
rem
rem Note that the properties passed to the java
rem program are defaults, and should be edited
rem to suit your installation if necessary
rem ----------------------------------------------
cls
java -DMQJMS_LOG_DIR="%MQ_JAVA_INSTALL_PATH%\log" -DMQJMS_TRACE_DIR="%MQ_JAVA_INSTALL_PATH%\trace" -DMQJMS_INSTALL_PATH="%MQ_JAVA_INSTALL_PATH%" com.ibm.mq.jms.admin.JMSAdmin %1 %2 %3 %4 %5 _________________ Jean-Marc |
|
Back to top |
|
 |
jlamond |
Posted: Fri Jun 21, 2002 9:22 am Post subject: |
|
|
Voyager
Joined: 28 May 2002 Posts: 94 Location: Paris
|
Also, don't forget (i'm referring to your classpath), that the ns.jar and j2ee.jar must come from the WAS 4.x directory and not the MQSeries\java directory. _________________ Jean-Marc |
|
Back to top |
|
 |
|