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 » javax/resource/ResourceException

Post new topic  Reply to topic
 javax/resource/ResourceException « View previous topic :: View next topic » 
Author Message
Jeffrey P
PostPosted: Mon Nov 24, 2003 7:36 am    Post subject: javax/resource/ResourceException Reply with quote

Novice

Joined: 27 Aug 2003
Posts: 20

I had my MQ app running just great until we converted our cis to a new API. Im having problems now and cant figure this one out. I have the same jar file ( com.ibm.mq.jar ) copied where it needs to be and the classpath is set accordingly. The program builds fine and when executing i get an error: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at server.system.CIServiceFactoryBatch.CreateBatch(CIServiceFactoryBatch.java:161)
at server.system.CIServiceFactoryBatch.main(CIServiceFactoryBatch.java:55)
Caused by: java.lang.NoClassDefFoundError: javax/resource/ResourceException
at com.ibm.mq.MQEnvironment.<clinit>(MQEnvironment.java:242)

Below is line 242 where the error is generated.

MQEnvironment.hostname = "srv-emp39.myDomain.com";

Can anyone shed any light on this. It would be deeply appreciated. Thanks.
_________________
Jeff
Back to top
View user's profile Send private message
Intruder1
PostPosted: Mon Nov 24, 2003 7:58 am    Post subject: Reply with quote

Newbie

Joined: 05 Nov 2003
Posts: 6

Try adding connector.jar in the classpath.

Are you using bindings? If so make sure your qmgr is on the same machine and you have the right .so (.dlls) in library path.
Back to top
View user's profile Send private message
Jeffrey P
PostPosted: Mon Nov 24, 2003 8:09 am    Post subject: Reply with quote

Novice

Joined: 27 Aug 2003
Posts: 20

Im not using bindings but adding connector.jar to the classpath worked. I dont understand why though. I never had it in the classpath before and everything worked fine. Happy that it works.....Thanks a bunch.
_________________
Jeff
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 » javax/resource/ResourceException
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.