• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Struts ValidatorServlet

 
RJ Herbst
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this code in the web.xml file:

<servlet>
<servlet-name>validation</servlet-name>
<servlet-class>org.apache.struts.validator.ValidatorServlet</servlet-class>
<init-param>
<param-name>config-rules</param-name>
<param-value>/WEB-INF/validator-rules.xml</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/validation.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
which gives me these exceptions in the localhost-log of Tomcat:
java.lang.ClassNotFoundException: org.apache.struts.validator.ValidatorServlet
javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.struts.validator.ValidatorServlet or a class it depends on


is it my servlet tag in web.xml that is causing these errors?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic