aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error while loading validator files" Watch "error while loading validator files" New topic
Author

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"/>
</plug-in>

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(ValidatorPlugIn.java:174)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
at com.gs.fw.sox404.rae.servlet.ActionServlet.init(ActionServlet.java:36)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
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: http://aspose.com/file-tools
 
subject: error while loading validator files
 
Similar Threads
Problem with configuring Struta application
Loading validatorPlugin fail ...
struts validator plug in error
Problems with Struts 1.3.8
Cannot load a validator resource