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 » Error Trying to publish a MQ message

Post new topic  Reply to topic
 Error Trying to publish a MQ message « View previous topic :: View next topic » 
Author Message
stacey
PostPosted: Sun Apr 20, 2008 9:56 pm    Post subject: Error Trying to publish a MQ message Reply with quote

Newbie

Joined: 20 Apr 2008
Posts: 2

Hi,
We have a seperate team that sets up the MQ server.I have the hostdetails and all revelant info from the team.
I have written a Java code to publish a simple message on the Queue.
I however get the below error.

Note : Im trying to get the revelant jars from the net but my connection keeps breaking .We use MQ version 6 .I have a few jars but the version may be out of sync.Also i dont have connector.jar.
Please help me by sending the necessary jars

See the error

Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/Resour
ceException
at com.ibm.mq.MQEnvironment.<clinit>(MQEnvironment.java:242)
at MQPublisher.init(MQPublisher.java:33)
at MQPublisher.main(MQPublisher.java:90)


My classpath

D:\mqseries_examples>echo %CLASSPATH%
%CLASSPATH%;D:\mqseries_examples\mqseries\com.ibm.mq.jar;D:\mqseries_examples\mq
series\com.ibm.mqbind.jar;D:\mqseries_examples\mqseries\com.ibm.mqjms.jar;.;;D:\
mqseries_examples\Junit\junit.jar;;D:\mqseries_examples\log4j\log4j-1.2.5.jar;;D
:\mqseries_examples\jms\jms.jar;

Thanks
Stacey
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Apr 21, 2008 12:37 am    Post subject: Re: Error Trying to publish a MQ message Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

stacey wrote:
We have a seperate team that sets up the MQ server.I have the hostdetails and all revelant info from the team.

...


Note : Im trying to get the revelant jars from the net but my connection keeps breaking .We use MQ version 6 .I have a few jars but the version may be out of sync.Also i dont have connector.jar.
Please help me by sending the necessary jars


FWIW I always recommend a client installation rather than just putting the jars in the path; you will find a number of discussions on the forum on the pros and cons of these two methods.

Tell the separate team you need an MQ Client installation or the jar files - they'll have the relevent files bundled with their MQServer install and you can source them locally.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
stacey
PostPosted: Mon Apr 21, 2008 7:38 pm    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2008
Posts: 2

Thanks.I downloaded the client and it came with the set of jars which now works ... thanks once again
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 » Error Trying to publish a MQ message
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.