You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonidas Papadakis <it...@creteonline.gr> on 2007/08/30 17:03:57 UTC
strange validation error : org.xml.sax.SAXParseException: Document
is invalid: no grammar found.
Greetings to all,
i am trying to upgrade to struts2.09 but i am getting this error when an
action has validation :
2007-08-30 17:55:23,062 [ERROR] util.DomHelper - Document is invalid: no
grammar found. at (null:1:12)
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
My validation xml starts with :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
.........................
</validators>
I appreciate your replies
Leonidas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: strange validation error : org.xml.sax.SAXParseException: Document
is invalid: no grammar found.
Posted by Leonidas Papadakis <it...@creteonline.gr>.
I know that i am replying to myself ;) but the solution is to add :
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
Config 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd">
to the top of validators.xml file.
Leonidas
Leonidas Papadakis wrote:
> Greetings to all,
>
> i am trying to upgrade to struts2.09 but i am getting this error when
> an action has validation :
>
> 2007-08-30 17:55:23,062 [ERROR] util.DomHelper - Document is invalid:
> no grammar found. at (null:1:12)
> org.xml.sax.SAXParseException: Document is invalid: no grammar found.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>
> My validation xml starts with :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
> 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
> <validators>
> .........................
> </validators>
>
>
> I appreciate your replies
>
> Leonidas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org