2013/12/14 Yasser Zamani <yasser.zam...@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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org