Errors starting WebSphere Commerce Technote
(troubleshooting)Problem(Abstract) You see the following symptoms when you start your WebSphere Commerce server:
[timestamp] 0000000a WebGroup A SRVE0169I: Loading Web Module: CommerceAccelerator.
...
[timestamp] 0000000a ServletWrappe E Uncaught init() exception thrown by servlet Commerce Accelerator Request Servlet
[timestamp] 0000000a WebExtensionP E Error occured while preparing theservlet for initialization. Check the error logs for details.
[timestamp] 0000000a WebExtensionP E SRVE0026E: [Servlet Error]-[javax.servlet.ServletException
at com.ibm.commerce.struts.ECActionServlet.init(ECActionServlet.java:118)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.cache.servlet.ServletWrapper.init(ServletWrapper.java:222)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:275)
...
---- Begin backtrace for Nested Throwables
java.lang.NullPointerException
at com.ibm.commerce.server.WebApp.initWebApp(WebApp.java:103)
at com.ibm.commerce.server.WebApp.init(WebApp.java:381)
...
[timestamp] 0000000a CommerceSrvr I ComponentManager initComponent CMN0009S: Component Tools is enabled.
[timestamp] 0000000a CommerceSrvr W ToolsConfiguration findFiles CMN7002E: The system could not find the "devtools/flow/resources/resources.xml" file from the "tools:tools/devtools:WEB-INF/xml/tools:WEB-INF" path. Ensure that you have specified the appropriate path and file name.
[timestamp] 0000000a CommerceSrvr E ComponentManager initComponent CMN0112E: The following error has been detected while initializing "Tools": com.ibm.commerce.exception.ECSystemException: The system could not find the "devtools/flow/resources/resources.xml" file from the "tools:tools/devtools:WEB-INF/xml/tools:WEB-INF" path. Ensure that you have specified the appropriate path and file name..
Correlation Identity: 08187540-f377-11db-89fb-89ae462fcd3a
Additional Data:
null
Current exception:
Message:
_ERR_FILE_NOT_FOUND
Stack trace:
com.ibm.commerce.exception.ECSystemException: The system could not find the "devtools/flow/resources/resources.xml" file from the "tools:tools/devtools:WEB-INF/xml/tools:WEB-INF" path. Ensure that you have specified the appropriate path and file name.
at com.ibm.commerce.tools.common.ToolsConfiguration.findFiles(ToolsConfiguration.java:119)
at com.ibm.commerce.tools.common.ToolsConfiguration.loadConfiguration(ToolsConfiguration.java:365)Cause These errors are caused by 2 problems:
- The startup order of the modules is incorrect. When Configuration Manager creates a WebSphere Commerce instance, it configures the EJB modules to start first, then the InitializationServlet web module, followed by the other web modules.
You will get the java.lang.NullPointerException listed above if the InitizlizationServlet is NOT started before the other web modules.
- The classloader settings are incorrect. WebSphere Commerce requires that the WAR classloader policy be set to SINGLE. This allows all modules in the WebSphere Commerce enterprise application to share a single classpath. If you do not have this set correctly, you will see the error message:
The system could not find the "devtools/flow/resources/resources.xml" file from the "tools:tools/devtools:WEB-INF/xml/tools:WEB-INF" path. Ensure that you have specified the appropriate path and file name.
Resolving the problem
- Run the SetEARProperties Ant Target to correct the startup order and classloader settings.
- Restart the WebSphere Commerce Enterprise Application.
Related information WebSphere Commerce Ant Targets
The SetEARProperties Ant Target
Cross Reference information
Segment Product Component Platform Version Edition Commerce WebSphere Commerce - Express Configuration i5/OS, Linux, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Commerce WebSphere Commerce Professional Edition Configuration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Professional Edition
Document Information Current web document: http://www.ibm.com/support/docview.wss?uid=swg21260401