Troubleshooting: Gathering additional trace information from WebSphere Commerce Configuration Manager
If you're having problems with WebSphere Commerce Configuration Manager, use the troubleshooting tips in this topic to gather additional trace information to help you solve the problem.
Scenario 1
The configuration logs and the console outputs do not reveal enough information
Assuming the problem is not starting the Configuration Manager server
or client, follow these steps to enable tracing of the Configuration Manager:
- Open Configuration Manager.
- Select .
- Specify log file name.
- Change the Log Level to Debug (or Error).
- Manually adjust the output in the WCSconfig.log file:
- Edit the WC_installdir/instances/CM_log.xml file to add
the highlighted section
below:
<config> <LogSystem name="Log System"> <messageLog display="false" fileSize="40" messageFile="../instances/WCSconfig.log" notification="false" notificationClassName="com.ibm.commerce.messaging.ras.ErrorNotificationHandler"> <logSeverity type="STATUS" /> <logSeverity type="ERROR" /> <logSeverity type="DEBUG" /> <logSeverity type="INFO" /> </messageLog> </LogSystem> </config>
- Edit the WC_installdir/instances/wcs_instances file to
change
logLevel=NORMAL
tologLevel=DEBUG
- Edit the WC_installdir/instances/CM_log.xml file to add
the highlighted section
below:
- Both the config_server and config_client utilities, as well the config_ant utility, are enhanced
to use the Java logging API. The Java logging configuration is defined in the following properties
file:
- WC_installdir/config/deployment/properties/config.properties.
The output of the Java logging goes to the following file:- WC_installdir/logs/config.log
By default the logging level is set to INFO, which captures very little information in the log. To capture additional output edit the properties file that controls the logging.
- Append the following lines to the
WC_installdir/config/deployment/properties/config.properties
file:
com.ibm.commerce.config.level = ALL com.ibm.commerce.config.client.level = ALL com.ibm.commerce.config.server.level = ALL com.ibm.commerce.config.components.level = ALL com.ibm.commerce.config.ant.server.level = ALL com.ibm.commerce.config.ant.tasks.level = ALL com.ibm.commerce.config.internal.ant.level = ALL com.ibm.commerce.config.internal.ant.tasks.level = ALL com.ibm.commerce.config.internal.util.level = ALL
- Save the file.
- WC_installdir/logs/WCSconfig.log
- WC_installdir/logs/config.log
- WC_installdir/instances/instance_name/*log
Note: Enabling detailed logging information for the WebSphere Commerce Configuration
Manager can lead to hanging issues when you try to install interim fixes. Disable Configuration
Manager logging when detailed information is not needed.
Scenario 2
You want to enable tracing for the WebSphere Application Server if instance creation fails while you are configuring WebSphere Application Server for WebSphere Commerce
To enable additional tracing, first back up the following file:
- config_server.sh
- config_server.bat
-Dwas.trace.spec="com.ibm.*=all=enabled" \
-Dwas.trace.file="/tmp/wastrace_log.txt" \
was.trace.file
.