File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes error while loading validator files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error while loading validator files" Watch "error while loading validator files" New topic

error while loading validator files

Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
I am getting following error when I start my tomcat (version =4_1_24) server after I configured validator plug-in. Any ideas? struts version is 1.2.4.

here is how plug-in looks in struts-config:
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/>
<set-property property="stopOnFirstError" value="false"/>

javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml'
at org.apache.struts.validator.ValidatorPlugIn.init(
at org.apache.struts.action.ActionServlet.initModulePlugIns(
at org.apache.struts.action.ActionServlet.init(
at javax.servlet.GenericServlet.init(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.core.StandardHostDeployer.install(
at org.apache.catalina.core.StandardHost.install(
at org.apache.catalina.startup.HostConfig.deployWARs(
at org.apache.catalina.startup.HostConfig.deployApps(
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
never mind guys. my bad. i had wrong dtds.
I agree. Here's the link:
subject: error while loading validator files
It's not a secret anymore!