Error parsing tiles-defs.xml when starting test server after store migration
After migrating your store assets project, you get an error when starting your test server.
Problem
An
exception similar to the following
example occurs:
[12/22/09 13:13:11:859 PST] 00000012 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key WC_default_host/webapp/wcs/stores
[12/22/09 13:13:13:953 PST] 00000012 ValidatorPlug I org.apache.struts.validator.ValidatorPlugIn initResources Loading validation rules file from '/WEB-INF/validator-rules.xml'
[12/22/09 13:13:35:265 PST] 00000012 TilesPlugin E org.apache.struts.tiles.TilesPlugin initDefinitionsFactory Can't create Tiles definition factory for module ''.
[12/22/09 13:13:35:265 PST] 00000012 ActionServlet E org.apache.struts.action.ActionServlet init Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. Connection timed out:
Solution
Your tiles-defs.xml file has the
wrong DTD version in its
<!DOCTYPE>
element. Your
element may look similar to the following sample:<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
Change
this element as shown in the following sample:<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
Note: After
making this change, restart your test server.