Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts validator plug in error

 
vanaja konda
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic