File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts validator plug in error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts validator plug in error" Watch "struts validator plug in error" New topic

struts validator plug in error

vanaja konda

Joined: Jul 28, 2005
Posts: 10

I get the following error in my log file when I include the validator plug-in in my struts-config.xml.

Validator plug-in

Error in the log file

Before including the validator plugin the application worked fine. After I include it I am not able to view the JSP pages.

Does any one help me out as to why I am getting the following error?
Thanks in advance,
Subha Murthy

Joined: Aug 16, 2005
Posts: 15
Are you sure you have the file that it specifies @ the specified location? Is validator plugin xml there in WEB-INF/
Vicky Mohan
Ranch Hand

Joined: Oct 14, 2004
Posts: 130
exceptionjavax.servlet.UnavailableException: Cannot load a validator resource from '/web/WEB-INF/validator-rules.xml,/web/WEB-INF/validation.xml'at org.apache.struts.validator.ValidatorPlugIn.init( org.apache.struts.action.ActionServlet.initModulePlugIns(

Your application seems to be looking for the validator xml files under \web\WEB-INF , but your struts-config file shows that the validation xml files are under \WEB-INF ....

Just wondering if they need to point to the same location, as i am not sure about your project structure .....
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
"vanaja k",

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
Consider Paul's rocket mass heater.
subject: struts validator plug in error
jQuery in Action, 3rd edition