Hi friends,

I am Venkataramana . I am doing one small structs application with Validation . as usual in XML file i wrote validations but when i am deploying in server it is showing error as

SEVERE: Parse Error at line 2 column 17: Document is invalid: no grammar found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.createSAXParseException(ErrorHandlerWrap per.java:236)
and

Jan 11, 2010 11:57:53 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 2 column 17: Document root element "form-validation", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "form-validation", must match DOCTYPE root "null".


Kindly find the validation.xml file for your reference.

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

<form-validation>
<formset>
<form name="regFormForm">
<field property="username"
depends="required">
<arg0 key="uname"/>
</field>
<field property="password"
depends="required">
<arg0 key="password"/>
</field>
</form>
</formset>
</form-validation>


Please can any one help on this?