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 » Help with Solaris java Trigger

Post new topic  Reply to topic
 Help with Solaris java Trigger « View previous topic :: View next topic » 
Author Message
Megabyte
PostPosted: Wed Nov 26, 2003 1:56 pm    Post subject: Help with Solaris java Trigger Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 26, 2003 7:01 pm    Post subject: Reply with quote

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
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 » Help with Solaris java Trigger
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.