Thursday, 28 July 2011

Trace & troubleshoot struts in WebSphere Commerce

Enable WebSphere application server tracing using the string below:
com.ibm.websphere.commerce.WC_SERVER=all:org.apache.struts.*=all

The output can viewed in trace.log which is under <WC_INSTALLATION_FOLDER>\wasprofile\logs\server1

For more information on how to interpret the trace, please check the following link:

Add view ACL policy using command acpload

When executing the command acpload, make sure to copy the policy XML file to folder C:\IBM\WCDE_ENT70\xml\policies\xml and when command completes, don't forget to check the content of the log file acpload.log to make sure command completed successfully. Here is how the log file looks like when you don't have any errors:

Running XMLTransform...
Running Id Resolver...
Running MassLoader...

One final remark, the WebSphere commerce will not detect changes you do if it is already running. So don't forget to restart server so your changes takes effect.