By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/server/MQSESSION

P: n/a
Can anybody help me on this? I am getting the below error but have not
got a clue why. The file in my classpath eing used has the class that
it says is not defined. Any ideas? I am running java version 1.4.0 and
WMQ Series version 5.3 with CSD04.

Exception in thread "main" java.lang.NoClassDefFoundError:
com/ibm/mq/server/MQSESSION
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONS erver.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:241 )
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManaged ConnectionJ11.java:
148)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._ createManagedConnec
tion(MQBindingsManagedConnectionFactoryJ11.java:13 6)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.c reateManagedConnect
ion(MQBindingsManagedConnectionFactoryJ11.java:154 )
at com.ibm.mq.StoredManagedConnection.<init>(StoredMa nagedConnection.jav
a:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConne ction(MQSimpleConne
ctionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager (MQQueueManager.jav
a:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager .java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.ja va:375)

Thanks to anybody who can help.
Andy
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
an**************@uk.ibm.com (Andy Howells) wrote in message news:<bd**************************@posting.google. com>...
Can anybody help me on this? I am getting the below error but have not
got a clue why. The file in my classpath eing used has the class that
it says is not defined. Any ideas? I am running java version 1.4.0 and
WMQ Series version 5.3 with CSD04.

Exception in thread "main" java.lang.NoClassDefFoundError:
com/ibm/mq/server/MQSESSION
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONS erver.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:241 )
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManaged ConnectionJ11.java:
148)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._ createManagedConnec
tion(MQBindingsManagedConnectionFactoryJ11.java:13 6)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.c reateManagedConnect
ion(MQBindingsManagedConnectionFactoryJ11.java:154 )
at com.ibm.mq.StoredManagedConnection.<init>(StoredMa nagedConnection.jav
a:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConne ction(MQSimpleConne
ctionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager (MQQueueManager.jav
a:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager .java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.ja va:375)

Thanks to anybody who can help.
Andy

Classpath for packaged classes can have intricate issues. I recommend
you to read J2SE standard doc /tooldocs/solaris/classpath.html,
especially the last part of the doc.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.