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 error

Post new topic  Reply to topic
 Java error « View previous topic :: View next topic » 
Author Message
qrfc
PostPosted: Tue Jun 25, 2002 10:55 pm    Post subject: Java error Reply with quote

Novice

Joined: 29 May 2002
Posts: 19
Location: Paris, France

Hello all

Here is a sample that I try to run :

=======================
import com.ibm.mq.*;

public class MQSample
{
private String qManager = "PRMBKUV1";
private MQQueueManager qMgr;

public static void main(String args[]) {
new MQSample();
}

public MQSample() {
try
{
qMgr = new MQQueueManager(qManager);
qMgr.disconnect();
}
catch(MQException ex)
{
System.out.println("An MQSeries connection error as occurred !!! : " + ex.completionCode + ex.reasonCode);
}
}
}

=======================

Compil statement is pretty good Ok but ...

When i run java MQSample ==>

Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/xa/XAException
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:327)
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(Compiled Code)
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:15)
at MQSample.main(MQSample.java:9)
....


Do you have any idea ( I presume or I'm sure ) on what kind of error it is ? I'm junior in java development ...

Very thanx ..
Cyril
Back to top
View user's profile Send private message Send e-mail
qrfc
PostPosted: Wed Jun 26, 2002 12:15 am    Post subject: Reply with quote

Novice

Joined: 29 May 2002
Posts: 19
Location: Paris, France

Oups ...

i found my error : damned CLASSPATH without jta.jar

Sorry for disturb ya

Cyril
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Java error
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.