The problem
If you try to deploy the web application into an application container, then you get an exception like this:
org.apache.catalina.startup.ContextConfig applicationWebConfig
SEVERE: Parse error in application web.xml file at jndi:/localhost/XXXXXX/WEB-INF/web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name XXXXXX
The solution
Solving this problem is very easy:
- Open your web.xml file and choose the XML view to see the xml code.
- Cut all <servlet-mapping> tags and put them back after the <servlet> tags.
No comments:
Post a Comment