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 IndexIBM MQ Java / JMSHelll...lp!!! How to deploy a JMS class to WebSphere?

Post new topicReply to topic
Helll...lp!!! How to deploy a JMS class to WebSphere? View previous topic :: View next topic
Author Message
pengjuc
PostPosted: Wed Aug 01, 2001 2:51 pm Post subject: Reply with quote

Newbie

Joined: 31 Jul 2001
Posts: 4

Hi All,
I have a standalone class that accesses some EJB's and sends messages to another standalone class. I made them work on VisualAge for Java by importing MQSeries libraries into VAJ's IDE and running JMSAdmin from within the IDE in WebSphere Test Environment. Now I'm trying to move them to WebSphere, but I can not run JMSAdmin on the NT server that hosts the WebSphere even I have set all the jar files in classpath and PATH variable. I got NoClassDefFoundError Exception whenever I tried to run any IVT batch files or JMSAdmin, it seems I need to extract all the jar files. It should not be the case but I can not figure it out. Also, I wish to know what is the suitable way to start this class. It supposed to be started after all EJB's are deployed and will be running forever. If any one has the experience please leave me a note. I'll be deeply appreciative for that.

PC
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Wed Aug 01, 2001 3:16 pm Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Exactly which class are you getting the NoClassDefFoundError exception on? I have experienced problems similar to this in the past where a particular class in the jar file was being referenced and couldn't be found. I can't quite recall the name of the class, but if you tell me the one you are having a problem with maybe it'll jog my memory...


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
pengjuc
PostPosted: Wed Aug 01, 2001 3:33 pm Post subject: Reply with quote

Newbie

Joined: 31 Jul 2001
Posts: 4

Hi Brandon,

I've tried to run JMSAdmin.bat, IVTRun.bat and a few others, I'm quite sure everyone throws this exception and the jar files do contain the class file.(I extract the jar file to make sure it is there) For example, the JMSAdmin.bat calls "java com.ibm.mq.jms.admin.JMSAdmin" and I have comibmmqjmsadminJMSAdmin in my "D:Program FilesMQSeriesJavalibcom.ibm.mq.jar" and I have "D:Program Filesjavalib" in my Path and all jar files in classpath.

The thing is, java does not see any class that is in a jar file even I have the classpath and path set.


Thanks.

PC

Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Wed Aug 01, 2001 3:45 pm Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Correct me if I'm wrong but I'm assuming that you're using "java" from the command line to try and run this stuff. If this is the case, I remember that in addition to the classpath you need to supply a directive with the -d parameter and it must point to the java mq library files. For example:
java -dLD_LIBRARY_PATH=/usr/mqm/java/lib classname
(or whereever your java library files happen to be). This may seem redundant since you are already setting classpath, but as I recall I had a problem running any java mq code, and this fixed the problem. Let me know if this helps...


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
pengjuc
PostPosted: Thu Aug 02, 2001 9:32 am Post subject: Reply with quote

Newbie

Joined: 31 Jul 2001
Posts: 4

Hi Brandon,

You are right that there should be a -d to make the call. But my situation is caused by a stupid thing because I missed one of 7 '.jar' extensions in my classpath. I take a look of the batch files in MQ JMS, they all have a -d after the 'java'.

Thanks a lot.

PC


Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSHelll...lp!!! How to deploy a JMS class to WebSphere?
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.