users@glassfish.java.net

Re: Glassfish 3.1 fails to add instance to cluster on Debian

From: <forums_at_java.net>
Date: Tue, 24 May 2011 11:11:49 -0500 (CDT)

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