Monday, August 20, 2012

IllegalArgumentException cause by Serlvet mapping

Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name board

This error is a real shock when I was first look at it. That's why I put it at the top most in this post. I get error during the start up of Tomcat server. I was using Maven build, initially I though it was cause by this code in pom.xml file:

But in fact it is not. Look closer on the error, it mention servlet name board. Then I though was this code cause the error in web.xml.

Something was flashing in my mind. Then only I realize that I was actually missing this code:

Guess what? Problem fixed. :o)

No comments: