wood burning stoves 2.0*
The moose likes Struts and the fly likes Problem with Struts ValidatorServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Struts ValidatorServlet" Watch "Problem with Struts ValidatorServlet" New topic
Author

Problem with Struts ValidatorServlet

RJ Herbst
Greenhorn

Joined: Nov 11, 2004
Posts: 2
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?
 
wood burning stoves
 
subject: Problem with Struts ValidatorServlet