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 » NoClassDefFoundError while triggering a java program

Post new topic  Reply to topic
 NoClassDefFoundError while triggering a java program « View previous topic :: View next topic » 
Author Message
satyaNamburi
PostPosted: Wed Jun 18, 2008 2:47 am    Post subject: NoClassDefFoundError while triggering a java program Reply with quote

Newbie

Joined: 18 Jun 2008
Posts: 4

Trying to trigger a java program on receiving a message on a queue. we are using the javaTrigger.java we found in the repository .

we are defining the process as below :
DEFINE PROCESS('TEST.PROCESS') REPLACE DESCR('Process to test triggering') APPLICID('java -cp .;c:\mqm\java\lib;c:\mqm\java\lib\com.ibm.mq.jar;c:\mqm\java\lib\connector.jar;c:\mqm\java\lib\jta.jar JavaTrigger')

On receiving a message on the queue we get a NoClassDefFoundError:wromg name <Triggered FilePath> JavaTrigger.class.

Any clues as to why this happens. We tried add the Triggered File path to the class path too.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Jun 18, 2008 7:38 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Set it up to run from a batch file (Windows) or shell script (Unix/Linux) first, then trigger the batch file / shell script from the MQ Process definition.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
satyaNamburi
PostPosted: Wed Jun 18, 2008 7:52 pm    Post subject: Reply with quote

Newbie

Joined: 18 Jun 2008
Posts: 4

Hi,

It worked when I defined the process with the fully qualified name of the javaTrigger.java.

DEFINE PROCESS('TEST.PROCESS') REPLACE DESCR('Process to test triggering') APPLICID('java -cp .;c:\mqm\java\lib;c:\mqm\java\lib\com.ibm.mq.jar;c:\mqm\java\lib\connector.jar;c:\mqm\java\lib\jta.jar com.trigger.JavaTrigger')

any harm if I do not use a batch file? can I continue this way?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Jun 18, 2008 8:06 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

KIS - Keep It Simple.

Sure you can make it complicated but YOU are asking for help - right? Therefore, simple is always easier. Hence, use a batch file or shell script.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » NoClassDefFoundError while triggering a java program
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.