You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rout, Biswajit" <bi...@hp.com> on 2012/03/28 17:01:25 UTC

Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

Hi,
I am running Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server. However the validation framework is not working.
Please find the log and the xml file.



Log Information

Mar 28, 2012 3:34:42 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
SEVERE: Caught exception while loading file com/gm/gm3pd/registration/action/RegistrationAction-validation.xml
Tried all: '1' addresses, but could not connect over HTTP to server: 'www.opensymphony.com', port: '80' - Class: weblogic.net.http.HttpClient
File: HttpClient.java
Method: openServer
Line: 321 - weblogic/net/http/HttpClient.java:321:-1


RegistrationAction-validation.xml

<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">

<validators>
<field name="firstname">
<field-validator type="requiredstring">
 <message key="requiredstring"/>
</field-validator>
</field>
<field name="password">
<field-validator type="requiredstring">
 <message key="requiredstring"/>
</field-validator>
</field>
<field name="password">
<field-validator type="stringlength">
<param name="minLength">5</param>
<param name="maxLength">15</param>
<param name="trim">true</param>
<message >Please enter Min %{minLength} character or Max %{maxLength} Character </message>
</field-validator>
</field>
</validators>

Any hints on the above issue.
Thanks in advance.



Best regards,
Biswajit
Planned Vacation : From 2-July-2012 to 6-July-2012


Re: Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

Posted by Eric Lentz <er...@outfastsource.com>.
Did you turn on logging? What is the caught exception?


On Wed, Mar 28, 2012 at 11:01 AM, Rout, Biswajit <bi...@hp.com>wrote:

> Hi,
> I am running Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4
> server. However the validation framework is not working.
> Please find the log and the xml file.
>
>
>
> Log Information
>
> Mar 28, 2012 3:34:42 PM
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
> SEVERE: Caught exception while loading file
> com/gm/gm3pd/registration/action/RegistrationAction-validation.xml
> Tried all: '1' addresses, but could not connect over HTTP to server: '
> www.opensymphony.com', port: '80' - Class: weblogic.net.http.HttpClient
> File: HttpClient.java
> Method: openServer
> Line: 321 - weblogic/net/http/HttpClient.java:321:-1
>
>
> RegistrationAction-validation.xml
>
> <!DOCTYPE validators PUBLIC
> "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
>
> <validators>
> <field name="firstname">
> <field-validator type="requiredstring">
>  <message key="requiredstring"/>
> </field-validator>
> </field>
> <field name="password">
> <field-validator type="requiredstring">
>  <message key="requiredstring"/>
> </field-validator>
> </field>
> <field name="password">
> <field-validator type="stringlength">
> <param name="minLength">5</param>
> <param name="maxLength">15</param>
> <param name="trim">true</param>
> <message >Please enter Min %{minLength} character or Max %{maxLength}
> Character </message>
> </field-validator>
> </field>
> </validators>
>
> Any hints on the above issue.
> Thanks in advance.
>
>
>
> Best regards,
> Biswajit
> Planned Vacation : From 2-July-2012 to 6-July-2012
>
>

Re: Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/3/28 Rout, Biswajit <bi...@hp.com>:
> <!DOCTYPE validators PUBLIC
> "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">

You're using the wrong DOCTYPE, check this out
https://cwiki.apache.org/confluence/display/WW/Validation


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

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