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 API Support » unable to connect to MQ using JAVA

Post new topic  Reply to topic
 unable to connect to MQ using JAVA « View previous topic :: View next topic » 
Author Message
amigupta1978
PostPosted: Sun Apr 28, 2002 8:41 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi,

I am using MQseries 5.2 on WInNT, with MQseries Java claases at ver ""MQSeries classes for Java V5.2.0" and the JDK version
"java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Server VM (build 2.0fcs-E, mixed mode)"

The problem which I am facing is that when I am issuing a MQEnvironment.hostname I am getting the following error

Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/Resour
ceException
at com.ibm.mq.MQEnvironment.<clinit>(MQEnvironment.java:224)
at WriteQ.main(WriteQ.java:36)

Also if I try to directly connect to my Queuemanager using new QueueManager("Default queuemanager")I am getting the same exception.

Can anyone pls provide me the input on this and how to solve this problem.

Thanks and Regards,
Amit

PS: Code fragment attached

MQEnvironment.hostname = "abhishek";
MQEnvironment.channel = "SYSTEM.ADMIN.SVRCONN";

MQEnvironment.port=portno;
_queueManager = new MQQueueManager(qManager);
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
amigupta1978
PostPosted: Mon Apr 29, 2002 1:24 am    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi,
I am replying to my question. I have resolved the problem The problem was javax package was not in the classpath. It uses javax.Resource.

But I think its never mentioned in any document that u had to have this packagae.

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

MQSeries.net Forum Index » IBM MQ API Support » unable to connect to MQ using JAVA
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.