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 » Problems with JMSAdmin

Post new topic  Reply to topic
 Problems with JMSAdmin « View previous topic :: View next topic » 
Author Message
jleong
PostPosted: Thu May 30, 2002 7:36 pm    Post subject: Problems with JMSAdmin Reply with quote

Novice

Joined: 03 Mar 2002
Posts: 13

Hi there!

I am trying to run JMSAdmin, but seemed to have the following errors:

5648-C60 (c) Copyright IBM Corp. 2002. All Rights Reserved.
Starting MQSeries classes for Java(tm) Message Service Administration

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/ORB
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.ibm.ejs.ras.TraceEvent.<init>(TraceEvent.java:612)
at com.ibm.ejs.ras.TraceEvent.<init>(TraceEvent.java:548)
at com.ibm.ejs.ras.TraceEventGeneratorImpl.fireTraceEvent(Tr.java:1345)
at com.ibm.ejs.ras.Tr.warning(Tr.java:1082)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.postDeprecationWarning(CN
InitialContextFactory.java:77)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.<init>(CNInitialContextFa
ctory.java:5
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.ibm.mq.jms.admin.AdminService.initJNDI(AdminService.java:188)
at com.ibm.mq.jms.admin.JMSAdmin.<init>(JMSAdmin.java:145)
at com.ibm.mq.jms.admin.JMSAdmin.main(JMSAdmin.java:1602)

I have successfully installed DB2 7.1 FP2A and WAS4.0.

Would appreciate if anyone helps me solve this.

Thank you.

Regards,
Joanne
Back to top
View user's profile Send private message
kolban
PostPosted: Fri May 31, 2002 3:33 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

What does your current CLASSPATH contain when you run JMSAdmin? What is the contents of your JMSAdmin.config file?
Back to top
View user's profile Send private message
Nisa
PostPosted: Fri May 31, 2002 9:30 am    Post subject: Reply with quote

Novice

Joined: 11 Apr 2002
Posts: 19

include ibmorb.jar in your CLASSPATH.
I hope this solves the error...
Back to top
View user's profile Send private message Send e-mail
jleong
PostPosted: Sun Jun 02, 2002 5:12 pm    Post subject: Reply with quote

Novice

Joined: 03 Mar 2002
Posts: 13

Nisa,

I've included the ibmorb.jar in the classpath. Currently, it does solve the error message that I've got. Thanks!

I have another problem now. Whenever I run JMSAdmin, it will give me the error message "JNDI initialisation failed, please check your JNDI settings and service". Where else did I go wrong now ?

My system's classpath:
Classpath=C:\WebSphere\AppServer\lib\ns.jar;C:\Program Files\IBM\MQSeries\Java\lib;C:\Program Files\IBM\MQSeries\Java\lib\com.ibm.mq.jar;C:\Program Files\IBM\MQSeries\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\MQSeries\Java\lib\jms.jar;C:\Program Files\IBM\MQSeries\Java\lib\ldap.jar;C:\Program Files\IBM\MQSeries\Java\lib\fscontext.jar;C:\Program Files\IBM\MQSeries\Java\lib\providerutil.jar;C:\Program Files\IBM\MQSeries\Java\lib\connector.jar;C:\Program Files\SQLLIB\java11\db2java.zip;C:\WebSphere\AppServer\lib\ejs.jar;C:\jdk1.3\bin;.;C:\Program Files\IBM\MQSeries\Java\Samples\Base;C:\Program Files\SQLLIB\java\runtime.zip;C:\Program Files\SQLLIB\java\sqlj.zip;C:\Program Files\SQLLIB\bin;C:\WebSphere\AppServer\java\jre\lib\ext\ibmorb.jar

The JMSAdmin.config file:
#
# This is the default configuration file for the MQSeries Classes for
# Java Message Service Administration Tool.
#
# 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:/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

Thanks for any help in advance.
Back to top
View user's profile Send private message
jlamond
PostPosted: Fri Jun 14, 2002 6:48 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

Some hints. First, if you use WebSphere 3.5.x ou 4.x, you should not include all of what you have in your current classpath.

This is what I use for WebSphere 4.x :

First, you jmsadmin.config should look like this :


INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
#
PROVIDER_URL=iiop://localhost/

It work fine with the latest ma88 package for windows.

Here is a copy of my batch file to run jmsadmin.

@echo off

rem set MQJMS_TRACE_LEVEL=on
rem set MQJMS_TRACE_LEVEL=base
rem set MQJMS_TRACE_LEVEL=off

set MQJMS_TRACE_LEVEL=off

set bkpath=%path%

set path=C:\Produits\IBM\MQSeries\bin
set path=%path%;C:\Produits\IBM\java\bin
set path=%path%;C:\Produits\IBM\java\lib
set path=%path%;C:\Produits\IBM\WebSphere\AppServer\bin
set path=%path%;C:\Produits\IBM\WebSphere\AppServer\bin
set path=%path%;C:\Produits\IBM\WebSphere\AppServer\java\jre\bin

set bkclasspath=%classpath%

set classpath=C:\Produits\IBM\MQSeries\java\lib\com.ibm.mq.jar
set classpath=%classpath%;C:\Produits\IBM\MQSeries\java\lib\com.ibm.mq.jar
set classpath=%classpath%;C:\Produits\IBM\MQSeries\java\lib\com.ibm.mqjms.jar
set classpath=%classpath%;C:\Produits\IBM\MQSeries\java\lib\connector.jar
set classpath=%classpath%;C:\Produits\IBM\WebSphere\AppServer\lib\ns.jar
set classpath=%classpath%;C:\Produits\IBM\WebSphere\AppServer\lib\j2ee.jar

java -DMQJMS_LOG_DIR="%MQ_JAVA_INSTALL_PATH%\log" -DMQJMS_TRACE_DIR="%MQ_JAVA_INSTALL_PATH%\trace" -DMQ_JAVA_INSTALL_PATH="%MQ_JAVA_INSTALL_PATH%" com.ibm.mq.jms.admin.JMSAdmin %1 %2 %3 %4 %5

set path=%bkpath%
set classpath=%bkclasspath%

I hope this may help you
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Problems with JMSAdmin
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.