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 Java / JMS » java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer

Post new topic  Reply to topic
 java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer « View previous topic :: View next topic » 
Author Message
newuser
PostPosted: Wed Dec 10, 2003 3:59 am    Post subject: java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer Reply with quote

Newbie

Joined: 10 Dec 2003
Posts: 3

I am using Bindings Mode to Connect to a Queue Manager in Java. I have two java programs one on the Web side and one on the EJB side. The Web program is working fine but the EJB Program is giving the following error
java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
I have set LD_LIBRARY_PATH variable so that the .so files are accessible.
I have also included the jars in the classpath.
Any help in pointing out where I am going wrong will be appreciated.
Thanks
Jinx
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Dec 10, 2003 6:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Since you mentioned an EJB, I'm assuming that you are doing something inside an App Server? If this is the case, I'd look inside the App Server configuration for a way to set its environment. I'm guessing that it is probably ignorning your LD_LIBRARY_PATH.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
newuser
PostPosted: Wed Dec 10, 2003 6:42 am    Post subject: Reply with quote

Newbie

Joined: 10 Dec 2003
Posts: 3

When I do echo $LD_LIBRARY_PATH I am getting the values which I had set.
1. I have included com.ibm.mq.jar, com.ibm.mqbind.jar,connector.jar, jta.jar, com.ibm.mqjms.jar. Are these jars enough or should I include any more jars.
2. Is there any othe workaround for setting environment variable.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer
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.