How to turn off xml validatin in tomcat ?

J

joes

Hello
I am using tomcat 3.3.1 for an intranet application with other third
party software. Unfortunately I have to remove from the web.xml the
web-app valiadtion, because of the old third party software.
The¨follow up is now that tomcat during every startup is claiming
about that the web.xml is not "well-formed". However I would like to
turn off this validation, but I don't know where it can be configured.
Maybe it can be reached by setting a specific JAXP property? any hints
are welcome.

Thank you best regards.
mark

Here attached the claiming message from the tomcat logs during
startup:

2003-09-08 17:48:02 - Ctx(/livJSP) : Validating web.xml
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Warning
org.xml.sax.SAXParseException: Valid documents must have a <!DOCTYPE
declaration.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 1 /
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "web-app" is not declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 1 /
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "context-param" is not
declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "param-name" is not
declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "param-value" is not
declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/
 
M

Murat G.

Hello
I am using tomcat 3.3.1 for an intranet application with other third
party software. Unfortunately I have to remove from the web.xml the
web-app valiadtion, because of the old third party software.
The¨follow up is now that tomcat during every startup is claiming
about that the web.xml is not "well-formed". However I would like to
turn off this validation, but I don't know where it can be configured.
Maybe it can be reached by setting a specific JAXP property? any hints
are welcome.

Thank you best regards.
mark

Here attached the claiming message from the tomcat logs during
startup:

2003-09-08 17:48:02 - Ctx(/livJSP) : Validating web.xml
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Warning
org.xml.sax.SAXParseException: Valid documents must have a <!DOCTYPE
declaration.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 1 /
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "web-app" is not declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 1 /
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "context-param" is not
declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "param-name" is not
declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/
2003-09-08 17:48:02 - Ctx(/livJSP) : web.xml: Error
org.xml.sax.SAXParseException: Element type "param-value" is not
declared.
2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/
Why do you need to remove DOCTYPE?
 
J

joes

as mentioned before the third party tool (framework CMS vignette) has
old xml parsers and they ara managing the web.xml. So I have to
remove the doctype while I am using the tool. I have to live with that
and could not changing this behaviour.

However I am asking still how to turn off the validation inside
Tomcat?
Where does something know about that ? Is this validation occuring by
Tomcat or a default configuration of the underlying xerxes / crimson
parser ?

thank you
regards
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top