Hmm... so it must be some small bug, a typo somewhere. Can you
register an issue with the stacktrace and explanation that it works
with 1.0.2?


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

2013/12/15 Yasser Zamani <yasser.zam...@live.com>:
> I reviewed Struts internally and discovered that in all places it uses
> "1.0.2" instead of "1.0.3". So, I guessed if I rewrite my DOCTYPE to:
>
>         <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator
> 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";>
>
> it may work. I tried and yeah, it works!
>
> (However, it's some was confusing that "xwork-validator-1.0.3.dtd" is
> present in "xwork.jar" but we cannot use it "*offline*" until Struts also
> use it internally)
>
> Sorry for the inconvenience!
>
> Thanks for your reply.
>
> Sincerely Yours,
> Yasser.
>
> On 12/15/2013 01:44 PM, Lukasz Lenart wrote:
>>
>> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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

Reply via email to