|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Help with Solaris java Trigger |
« View previous topic :: View next topic » |
Author |
Message
|
Megabyte |
Posted: Wed Nov 26, 2003 1:56 pm Post subject: Help with Solaris java Trigger |
|
|
Newbie
Joined: 07 Nov 2003 Posts: 2
|
I have a trigger that work correctly on NT but when i run the same trigger on Solaris sends this message :
Exception in thread "main" java.lang.NoClassDefFoundError Trigger
I think the trigger don´t found the CLASSPATH, I put the code "java Trigger" on a shell but don´t find the class, can any one help me? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 26, 2003 7:01 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
When a triggered process runs, it runs in the same "user space" as the trigger monitor. That is, if your trigger monitor is running as user "mqm", then your triggered process will have the same PATH and CLASSPATH variables set as the user "mqm" does.
Try creating a shell program that sets the CLASSPATH and PATH variables to what you want, instead of running your program directly.
So, for instance, if your default shell for the user 'mqm' is a csh shell, create a shell file that contians
Code: |
setenv CLASSPATH=<<your classpath needed to run your java process>>
setenv PATH =<<your path needed to run your java process>>
java <<full path to your java program>> |
Then set the process definition in your queue manager to run the shell program, not your program directly. You will have to make sure that your shell program has the executable flag set, using chmod. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|