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: javax/transaction/xa/XAExcep

Post new topic  Reply to topic
 java.lang.NoClassDefFoundError: javax/transaction/xa/XAExcep « View previous topic :: View next topic » 
Author Message
martincho
PostPosted: Tue Jul 23, 2002 2:12 am    Post subject: java.lang.NoClassDefFoundError: javax/transaction/xa/XAExcep Reply with quote

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
View user's profile Send private message Send e-mail
kamy
PostPosted: Tue Jul 23, 2002 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Tue Jul 23, 2002 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
amigupta1978
PostPosted: Tue Jul 23, 2002 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
martincho
PostPosted: Tue Jul 23, 2002 11:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Wed Jul 24, 2002 8:33 am    Post subject: Reply with quote

Jedi Knight

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

Try adding \mqseries\java\lib to your classpath.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
amigupta1978
PostPosted: Wed Jul 24, 2002 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
kspranava
PostPosted: Thu Jan 15, 2004 2:29 am    Post subject: Thanks a lot Reply with quote

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
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: javax/transaction/xa/XAExcep
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.