Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
Hi,

Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Dani

Lukasz Lenart escribió:

Hi,

Try to comment such entry for Validator plugin and check again, do you
have any logs from your container? Maybe the problem is elsewhere?


Regards
  


The validator-rules.xml  validations.xml are located under the correct 
path /WEB-INF/, as specified in the struts-config.xml file:

 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames
   value=/WEB-INF/validator-rules.xml,/WEB-INF/validations.xml/
/plug-in 

This is the error log at Catalina:

2008-07-15 13:17:34 StandardContext[/gentaiw]El Servlet /gentaiw lanzó 
excepción de load()
javax.servlet.UnavailableException: Cannot load a validator resource 
from '/WEB-INF/validator-rules.xml,/WEB-INF/validations.xml' -- *** 
ERROR ??? ***
   at 
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:172)
   at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)

   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)

   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
Check this

http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312

Maybe either you have duplicated commons-validator.jar or in wrong version?


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Dani

Lukasz Lenart escribió:

Check this

http://issues.apache.org/struts/browse/STR-2862?focusedCommentId=37312#action_37312

Maybe either you have duplicated commons-validator.jar or in wrong version?


Regards
  
I have updated commons-validator.jar to latest version 1.3.1 replacing 
the jar file in /WEB-INF/lib

Now I get the following error on loading Tomcat:

15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError
GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.

Should I update the depencies of commons-validator 1.3.1. as shown in 
this link?

http://mvnrepository.com/artifact/commons-validator/commons-validator/1.3.1

I´ve been googling around but didn´t see any clues.
Regards,


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Dave Newton
--- On Tue, 7/15/08, Dani [EMAIL PROTECTED] wrote:
 Should I update the depencies of commons-validator 1.3.1.
 as shown in this link?

Well yes; you can't just update a library and assume that it will work without 
its dependencies.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
 15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError
 GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
 org.xml.sax.SAXParseException: Premature end of file.

You should also change dtd headers for validator-rules.xml and
validations.xml to reflect new common-validator.jar


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread danipruebas

Hi again,
After updating all the dependencies and changing the DTD for the 
validation.xml and validation-rules.xml:

!DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD
Commons Validator Rules Configuration 1.3.0//EN
http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd;;
I get the following warning:

file cannot be validated as the host jakarta.apache.org is currently 
unreachable
I suposed I can specify a path in local to the DTD, but I wouldn´t like to 
do it.
As a possible clue, I haven´t got Internet connection in the laptop i´m 
developing the project (only at home).


Any suggestions? Thx

- Original Message - 
From: Lukasz Lenart [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, July 15, 2008 3:36 PM
Subject: Re: Validator plugin error



15-jul-2008 15:06:33 org.apache.commons.digester.Digester fatalError
GRAVE: Parse Fatal Error at line -1 column -1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.


You should also change dtd headers for validator-rules.xml and
validations.xml to reflect new common-validator.jar


Regards
--
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Email procesado por MailFoundry




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread Lukasz Lenart
As I remember, there is a bug with this, out dtd to WEB-INF and add
reference to it
http://www.developerdotstar.com/community/node/472


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator plugin error

2008-07-15 Thread danipruebas

OMG, this is an EPIC FAIL : )
Yes, i have saved and referenced it in WEB-INF.
Best regards,

- Original Message - 
From: Lukasz Lenart [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, July 15, 2008 7:23 PM
Subject: Re: Validator plugin error



As I remember, there is a bug with this, out dtd to WEB-INF and add
reference to it
http://www.developerdotstar.com/community/node/472


Regards
--
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Email procesado por MailFoundry



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator plugin error

2008-07-14 Thread danipruebas
Hi, 

I´m trying to use Struts 1.2 Validator plugin. I guess something in 
struts-config.xml is missing or wrong. If I add the necessary code to use the 
plugin validator:

plug-in classname=org.apache.struts.validator.ValidatorPlugIn
  set-property 
property=pathnames 
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/
/plug-in

After redeploying my webapp, I get a 404 error Servlet action not available. 
Validation and validation-rules are configured. Any suggestions? Thanks in 
advance.