|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer |
« View previous topic :: View next topic » |
Author |
Message
|
newuser |
Posted: Wed Dec 10, 2003 3:59 am Post subject: java.lang.NoClassDefFoundError at com.ibm.mq.MQSESSIONServer |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Dec 10, 2003 6:02 am Post subject: |
|
|
 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 |
|
 |
newuser |
Posted: Wed Dec 10, 2003 6:42 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|