|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
NoClassDefFoundError while triggering a java program |
« View previous topic :: View next topic » |
Author |
Message
|
satyaNamburi |
Posted: Wed Jun 18, 2008 2:47 am Post subject: NoClassDefFoundError while triggering a java program |
|
|
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 |
|
 |
RogerLacroix |
Posted: Wed Jun 18, 2008 7:38 pm Post subject: |
|
|
 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 |
|
 |
satyaNamburi |
Posted: Wed Jun 18, 2008 7:52 pm Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Wed Jun 18, 2008 8:06 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|