How to turn off xml validatin in tomcat ?

Discussion in 'Java' started by joes, Sep 13, 2003.

  1. joes

    joes Guest

    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/
    joes, Sep 13, 2003
    #1
    1. Advertising

  2. joes

    Murat G. Guest

    (joes) wrote in message news:<>...
    > 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?
    Murat G., Sep 15, 2003
    #2
    1. Advertising

  3. joes

    joes Guest

    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


    (Murat G.) wrote in message news:<>...
    > (joes) wrote in message news:<>...
    > > 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?
    joes, Sep 16, 2003
    #3
  4. joes

    Murat G. Guest

    Look for the token WebXmlReader in Server.xml config in tomcat documentation

    HTH

    (joes) wrote in message news:<>...
    > 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
    >
    >
    > (Murat G.) wrote in message news:<>...
    > > (joes) wrote in message news:<>...
    > > > 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?
    Murat G., Sep 20, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Spencer
    Replies:
    2
    Views:
    444
    Cheung, Jeffrey Jing-Yen
    Jul 8, 2003
  2. Andy Crawford

    How to turn Strict "off"?

    Andy Crawford, Jul 10, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    516
    Cowboy \(Gregory A. Beamer\)
    Jul 11, 2003
  3. Mark McKay
    Replies:
    0
    Views:
    1,098
    Mark McKay
    Sep 22, 2004
  4. Replies:
    1
    Views:
    447
    Tor Iver Wilhelmsen
    Mar 1, 2005
  5. robert112
    Replies:
    1
    Views:
    429
    Juan T. Llibre
    Apr 26, 2007
Loading...

Share This Page