struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: validation xmls in a Struts2 application with no Internet connection
Date Sun, 15 Dec 2013 10:14:55 GMT
2013/12/14 Yasser Zamani <yasser.zamani@live.com>:
> Hi there,
>
> We have a Struts2 application with some validation XMLs with following
> "DOCTYPE":
>
>    <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator
>    1.0.3//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
>
>
> When we run this application on a server which has access to
> "struts.apache.org", there is no problem. But when we run it on a server
> which has no access to "struts.apache.org", Struts can not create default
> validation interceptor with following exception:
>
>    Caught Exception while registering Interceptor class
>    org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor
>    - interceptor -
>
> jar:file:/home/yasser/Applications/apache-tomcat-7.0.29/webapps/TAAM/WEB-INF/lib/struts2-core-2.3.1.1.jar!/struts-default.xml:148:127
>         at
>
> com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:213)
>         at
>
> com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:70)
>         at
>
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1035)

I think it has nothing to do with validators' configuration -
XmlConfigurationProvider is used to parse struts.xml, so please check
if you use the correct DOCTYPE there

https://issues.apache.org/jira/browse/WW-3741


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message