Troubleshooting
Problem
When an IBM® WebSphere® Application Server image is installed onto a shareable disk, which is mounted as read-only on many systems, the []manageprofiles[] command fails when it attempts to write to the []$WAS_HOME/configuration[
] directory. This directory is a read-only directory in this configuration.
Resolving The Problem
To resolve this problem, complete the following steps:
- Change the value of the OSGI_CFG variable in the app_server_root/bin/setupCmdLine.sh or app_server_root/bin/setupCmdLine.bat file to reference an existing location with write permission.
For example in the setupCmdLine.sh file:
OSGI_CFG="-Dosgi.configuration.area=/writeableWorkspace/configuration"
For example, in the setupCmdLine.bat file:
SET OSGI_CFG=-Dosgi.configuration.area=d:\writeableWorkspace\configuration
- Add following line of code to the app_server_root/bin/manageprofiles.sh or app_server_root/bin/manageprofiles.bat file:
"$OSGI_INSTALL" "$OSGI_CFG" \
- In the manageprofiles.sh file, the line of code must be added after the following line:
$JVM_EXTRA_CMD_ARGS \
The updated manageprofiles.sh file then contains the following code:
- In the manageprofiles.bat file, the line of code must be added after the following parameter:
"-Dwas.install.root=%WAS_HOME%"
${JAVA_EXE} \
$JVM_EXTRA_CMD_ARGS \
"$OSGI_INSTALL" "$OSGI_CFG" \
-DWAS_HOME=${WAS_HOME} \
-Dwas.install.root=${WAS_HOME} \
-classpath ${WAS_CLASSPATH} \
-Dws.ext.dirs=${WAS_EXT_DIRS} \
com.ibm.wsspi.bootstrap.WSPreLauncher \
-debug -nosplash -application \
com.ibm.ws.bootstrap.WSLauncher \
com.ibm.ws.runtime.WsProfile \"$@"
The updated manageprofiles.bat file then contains the following code on one continuous line:
"-Dwas.install.root=%WAS_HOME%" %OSGI_CFG% %OSGI_INSTALL% -classpath "%WAS_CLASSPATH%" "-Dws.ext.dirs=%WAS_EXT_DIRS%" com.ibm.wsspi.bootstrap.WSPreLauncher -nosplash -application com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsProfile %* |
[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Install","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Install","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21321273