HP-UX Workload Manager Toolkits A.01.06 Release Notes for HP-UX 11.0, HP-UX 11i V1.0 and HP-UX 11i V2.0

HP-UX WLM Toolkits (WLMTK) Release Notes
Known problems and workarounds
Chapter 1 15
Workaround Provide a setting for both JAVA_HOME and WL_HOME when using WLS 8.1.
There are two ways for settings these variables, as explained below.
Use a custom shell file
You can provide custom environment variables in a new file specified
when you invoke wlmwlsdc:
% /opt/wlm/toolkits/weblogic/bin/wlmwlsdc \
/home/wladmin/wlm/myinstA.props \
my_custom_env_settings.sh
The file my_custom_env_settings.sh contains the lines:
JAVA_HOME=/opt/java1.4
WL_HOME=/opt/bea/weblogic81
To invoke wlmwlsdc with this file inside a WLM configuration file, your
coll_argv statement would be as follows:
coll_argv = {
wlmrcvdc
/opt/wlm/toolkits/weblogic/bin/wlmwlsdc
/home/wladmin/wlm/myinstA.props
my_custom_env_settings.sh
}
Use an existing setEnv.sh file
You can provide the custom environment variables using an existing
setEnv.sh file, which you specify when invoking wlmwlsdc as follows:
% /opt/wlm/toolkits/weblogic/bin/wlmwlsdc \
/home/wladmin/wlm/myinstA.props \
/opt/bea/user_projects/domains/mydomain/setEnv.sh
The /opt/bea/user_projects/domains/mydomain/setEnv.sh file is
produced when the instance is created with the WebLogic tools.
To invoke wlmwlsdc with the setEnv.sh file inside a WLM configuration
file, your coll_argv statement would be as follows:
coll_argv = {
wlmrcvdc
/opt/wlm/toolkits/weblogic/bin/wlmwlsdc
/home/wladmin/wlm/myinstA.props
/opt/bea/user_projects/domains/mydomain/setEnv.sh
}
For more information on the possible settings and security considerations
for this shell file, see the white paper Using HP-UX Workload Manager with
BEA WebLogic Server, section “12.1.4 wlmwlsdc POSIX environment