• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

struts validator plug in error

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .....
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic