Author |
Message
|
martincho |
Posted: Tue Jul 23, 2002 2:12 am Post subject: java.lang.NoClassDefFoundError: javax/transaction/xa/XAExcep |
|
|
Newbie
Joined: 15 Jul 2002 Posts: 5 Location: Bulgaria
|
Hi!
I am using MQSeries Server 5.2.1 and WebSphere Studio Application Developer.I added MA88 and tried to run simple application from "Using Java" tutorial of IBM.Exception that became is:
java.lang.NoClassDefFoundError: javax/transaction/xa/XAException
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:329)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:149)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:139)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:157)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:666)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:615)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:392)
at MQSample.<init>(MQSample.java:42)
at MQSample.main(MQSample.java:36)
I imported in my project com.ibm.mq.jar , com.ibm.mqjms.jar and connector.jar |
|
Back to top |
|
 |
kamy |
Posted: Tue Jul 23, 2002 5:47 am Post subject: |
|
|
Novice
Joined: 26 Oct 2001 Posts: 21
|
I think the default jvm with websphere test environment is the java sdk...
which doe'nt contain the javax.* packages classe...
Maybe including j2ee.jar which comes in as part of the plugins..
would resolve the error.
- Kamy |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Jul 23, 2002 10:08 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Try adding either jta.jar or connector.jar to your classpath. One of them will prevent this error, but I can't remember which. The other one prevents a similar error..... |
|
Back to top |
|
 |
amigupta1978 |
Posted: Tue Jul 23, 2002 8:56 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
hi,
Its under jta.jar which defines all the transaction stuff...
regards,
amit |
|
Back to top |
|
 |
martincho |
Posted: Tue Jul 23, 2002 11:55 pm Post subject: |
|
|
Newbie
Joined: 15 Jul 2002 Posts: 5 Location: Bulgaria
|
Thanks a lot!!It's working ok now ,but I have one other problem that I cannot solve ...I am connecting in Binding mode,but in Client mode I became this exception...
Unable to load message catalog - mqji
caught javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:QM1'
linked exception: com.ibm.mq.MQException: Message catalog not found |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jul 24, 2002 8:33 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Try adding \mqseries\java\lib to your classpath. |
|
Back to top |
|
 |
amigupta1978 |
Posted: Wed Jul 24, 2002 7:50 pm Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
HI,
I think u r creating the XASession. XASession can only be created in the MQBinding mode. U cant create the XA session in client binding mode.
Regards,
Amit |
|
Back to top |
|
 |
kspranava |
Posted: Thu Jan 15, 2004 2:29 am Post subject: Thanks a lot |
|
|
 Centurion
Joined: 27 Apr 2003 Posts: 124
|
Hi guys,
I was struggling today to run a PCF java program and but struck at NoDefFound error. Thanks a lot for the suggestions.
Pranava. |
|
Back to top |
|
 |
|