Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Lukasz Lenart
No problem! Thanks for conformation!

2013/12/16 Yasser Zamani :
> I could not re-produce it with most recent version, 2.3.16. Both DTD
> versions work correctly on an off-line Tomcat :)
>
> I think there is a mis-version-configuration between struts and xwork with
> that non-maven old application. Sorry for the inconvenience!
>
> Thanks!
>
> On 12/15/2013 03:53 PM, Lukasz Lenart wrote:
>>
>> 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
>>
>
> -
> 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



Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Yasser Zamani
I could not re-produce it with most recent version, 2.3.16. Both DTD 
versions work correctly on an off-line Tomcat :)


I think there is a mis-version-configuration between struts and xwork 
with that non-maven old application. Sorry for the inconvenience!


Thanks!

On 12/15/2013 03:53 PM, Lukasz Lenart wrote:

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



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



Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
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 :
> 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:
>
>  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 :
>>>
>>> Hi there,
>>>
>>> We have a Struts2 application with some validation XMLs with following
>>> "DOCTYPE":
>>>
>>> >> 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



Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Yasser Zamani
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:


	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 :

Hi there,

We have a Struts2 application with some validation XMLs with following
"DOCTYPE":

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



Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
2013/12/14 Yasser Zamani :
> Hi there,
>
> We have a Struts2 application with some validation XMLs with following
> "DOCTYPE":
>
>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