Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat 7: Invalid mapping (java.lang.IllegalArgumentException)
    text
    copied!<p>I am migrating an existing project from Tomcat 6 to 7. Upon startup I am encountering this logged error message:</p> <pre><code>Jul 02, 2013 2:38:39 PM org.apache.catalina.startup.ContextConfig parseWebXml SEVERE: Parse error in application web.xml file at jndi:/localhost/padd/WEB-INF/web.xml org.xml.sax.SAXParseException; systemId: jndi:/localhost/padd/WEB-INF/web.xml; lineNumber: 309; columnNumber: 21; Error at (309, 21) : The servlets named [ArtefactServlet] and [saveArtefactServlet] are both mapped to the url-pattern [/saveRestoration] which is not permitted at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687) ... at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: The servlets named [ArtefactServlet] and [saveArtefactServlet] are both mapped to the url-pattern [/saveRestoration] which is not permitted </code></pre> <p>Here the <strong>WEB-INF/web.xml</strong> line 309fff:</p> <pre><code> &lt;servlet-mapping&gt; &lt;servlet-name&gt;saveArtefactServlet&lt;/servlet-name&gt; &lt;url-pattern&gt;/saveRestoration&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>EDIT:</p> <pre><code> &lt;servlet-mapping&gt; &lt;servlet-name&gt;ArtefactServlet&lt;/servlet-name&gt; &lt;url-pattern&gt;/saveRestoration&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>Here <strong>tomcat's web.xml</strong>:</p> <pre><code>&lt;servlet-mapping&gt; &lt;servlet-name&gt;default&lt;/servlet-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;!-- The mappings for the JSP servlet --&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;jsp&lt;/servlet-name&gt; &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt; &lt;url-pattern&gt;*.jspx&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>I tried to play around with the mapping, but couldn't make any progress. Hope you can help!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload