A
Alexandr Molochnikov
Is there any way to deploy a servlet in Tomcat with web.xml file NOT having
DOCTYPE tag? If I do not specify it, the servlet starts, but Tomcat
generated the following error:
Aug 27, 2003 6:13:08 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 10 column 10: Document root element "web-app",
must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "web-app", must match
DOCTYPE root "null".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
....
However, if I do specify DOCTYPE, it wants me to put in a valid URL to the
DTD file - which I do not have/need. So, I am looking for a way to set
DOCTYPE to a dummy file just to keep the parser happy... with no success so
far.
Can it be done? Or am I on a wrong track altogether, and a valid DTD must be
in place, whether I like it or not?
Thanks for any help.
Alex Molochnikov
Gestalt Corporation
DOCTYPE tag? If I do not specify it, the servlet starts, but Tomcat
generated the following error:
Aug 27, 2003 6:13:08 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 10 column 10: Document root element "web-app",
must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "web-app", must match
DOCTYPE root "null".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
....
However, if I do specify DOCTYPE, it wants me to put in a valid URL to the
DTD file - which I do not have/need. So, I am looking for a way to set
DOCTYPE to a dummy file just to keep the parser happy... with no success so
far.
Can it be done? Or am I on a wrong track altogether, and a valid DTD must be
in place, whether I like it or not?
Thanks for any help.
Alex Molochnikov
Gestalt Corporation