wood burning stoves
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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(ValidatorPlugIn.java:174)at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: struts validator plug in error
It's not a secret anymore!