The environment can be different when run via an interactive session (when
you log into the node) versus a non-interactive session (executing a remote
command via SSH like GlassFish is doing). Shells, like bash, may source
different environment files depending on the session type. For example
I think bash does not source '.bash_profile' when a command is run via a
non-interactive ssh. Try running something like this (from your local machine
to the remote machine):
ssh user_at_nodehost.foo.com 'echo $PATH'
and see if PATH is set as you expect. You can also do this to check
$JAVA_HOME. Note that the single quotes are important!
If you are using bash you may need to set your environment in the remote
user's .bashrc file (instead of just .bash_profile).
--
[Message sent by forum member 'jfdipol']
View Post: http://forums.java.net/node/805455