struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dani <daniprue...@adw.es>
Subject Re: Validator plugin error
Date Tue, 15 Jul 2008 11:33:38 GMT
Lukasz Lenart escribió:
> Hi,
>
> Try to comment such entry for Validator plugin and check again, do you
> have any logs from your container? Maybe the problem is elsewhere?
>
>
> Regards
>   

The validator-rules.xml & validations.xml are located under the correct 
path /WEB-INF/, as specified in the struts-config.xml file:
< plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames"
        value="/WEB-INF/validator-rules.xml,/WEB-INF/validations.xml"/>
 </plug-in >

This is the error log at Catalina:

2008-07-15 13:17:34 StandardContext[/gentaiw]El Servlet /gentaiw lanzó 
excepción de load()
javax.servlet.UnavailableException: Cannot load a validator resource 
from '/WEB-INF/validator-rules.xml,/WEB-INF/validations.xml' ------> *** 
ERROR ??? ***
    at 
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:172)
    at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
    at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
    at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
    at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
    at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
    at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
    at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message