-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.0.CR5
-
None
-
HPUX
-
Release Notes
-
-
Not Required
The script jboss_init_hpux makes it possible to start a matrix of EAP instances at system startup, or at any other time. Similar features apply to shutting down the instances.
The base command is in /sbin/init.d/jboss and can take the following paranmeters:
- start - start a set of EAP instances
- stop - stop the set of EAP instances
- restart - stop and then start the set of EAP instances
The set of instances is configured in the file /etc/rc.config.d/jboss.
After folowing the configuration steps in the documentation contained in the jboss_init_hpux.sh file, I get the following error:
-bash-3.1# /sbin/init.d/jboss start
ERROR: The user "rachmatowicz" does not have $JAVA_HOME defined; either define $JAVA_HOME for this user or ensure that a path to "java" exists.
ERROR: The user "rachmatowicz" does not have $JAVA_HOME defined; either define $JAVA_HOME for this user or ensure that a path to "java" exists.
This is despite the fact that in my .bash_profile file, I have the following lines:
echo Calling .bash_profile
export JAVA_HOME=/qa/tools/opt/hpux_pa/java6
and I can confirm that the environment variable is set when creating a subshell:
-bash-3.1$ sh echoJAVAHOME.sh
JAVA_HOME = /qa/tools/opt/hpux_pa/java6
The configuration I am using looks as follows:
-bash-3.1$ more /etc/rc.config.d/jboss
JBOSS_HOME[0]=/tmp/fred/jboss-eap-5.0/jboss-as
JBOSS_USER[0]=rachmatowicz
SERVER_NAME[0]=default
JBOSS_START[0]=1
JBOSS_CONSOLE[0]=/tmp/jboss2.log
JBOSS_BIND_ADDR[0]=10.16.94.188
JBOSS_HOME[1]=/tmp/fred/jboss-eap-5.0/jboss-as
JBOSS_USER[1]=rachmatowicz
SERVER_NAME[1]=all
JBOSS_START[1]=1
JBOSS_CONSOLE[1]=/tmp/jboss1.log
JBOSS_BIND_ADDR[1]=10.16.94.189
- is related to
-
JBPAPP-2306 Adding -b ${JBOSS_BIND_ADDR[i] in the HP-UX init script (jboss_init_hpux.sh)
-
- Closed
-