title: ActionServlet cannot access struts-config.xml if deployed in ear file
body: <p><br></p>
  
  <p>I'm in the middle of migrating a JavaEE project from Sun Application Server 9.1 to Glassfish 3.1.2. The project has the following structure:</p>
  
  <p>ear<br>
  | - /lib/someProject.jar (used by confictEJB and EJB)<br>
  | - confictEJB.jar<br>
  | - EJB.jar<br>
  | - webProj.war<br></p>
  
  <p>The jars and the ear is build with maven. The thing is, this deploys without errors in SAS 9.1 and in Glassfish 2.1. But in Glassfish 3.2.1 I get this error:</p>
  
  <pre><code>#|2012-04-23T13:44:29.562+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=34;_ThreadName=Thread-2;|WebModule[/ArchiveTool]PWC1396: Servlet /ArchiveTool threw load() exception
  javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
  at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
  at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
  at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
  </code></pre>
  
  <p>It looks like the ActionServlet cannot parse/find the struts-config.xml in GF3.2.1. What I did so far:<br></p>
  
  <ul>
  <li>referenced to the local DTD in the DOCTYPE of the struts-config.xml </li>
  <li>general syntax validation of struts-config.xml -> no errors</li>
  <li>validate the struts-config.xml against DTD -> no errors</li>
  <li>deployed the webProj.war standalone to Glassfish -> deploys without errors</li>
  </ul>
  
  <p>The structure of the war project:<br></p>
  
  <p>webProj.war<br>
  | - some stuff (images, css, js, etc)<br>
  | - META-INF<br>
  | - WEB-INF<br>
  &nbsp;&nbsp;&nbsp;&nbsp;| - lib<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| - struts.jar (an others)<br>
  &nbsp;&nbsp;&nbsp;&nbsp;| - struts-config.xml<br>
  &nbsp;&nbsp;&nbsp;&nbsp;| - struts-config_1_2.dtd<br>
  &nbsp;&nbsp;&nbsp;&nbsp;| - glassfish-web.xml<br>
  &nbsp;&nbsp;&nbsp;&nbsp;| - web.xml<br></p>
  
  <p>Does anyone have a clue what is missing or where I can check any further configuration?
  Any help is greatly appreciated!
  Thank you!</p>