How to turn off xml validatin in tomcat ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • joes

    How to turn off xml validatin in tomcat ?

    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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: Element type "param-value" is not
    declared.
    2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/
  • Murat G.

    #2
    Re: How to turn off xml validatin in tomcat ?

    joes@bluewin.ch (joes) wrote in message news:<26760a3e. 0309130602.70c3 981@posting.goo gle.com>...[color=blue]
    > 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: Element type "param-value" is not
    > declared.
    > 2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/[/color]
    Why do you need to remove DOCTYPE?

    Comment

    • joes

      #3
      Re: How to turn off xml validatin in tomcat ?

      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


      mgungora@yahoo. ca (Murat G.) wrote in message news:<508f8f02. 0309151213.7790 4cf7@posting.go ogle.com>...[color=blue]
      > joes@bluewin.ch (joes) wrote in message news:<26760a3e. 0309130602.70c3 981@posting.goo gle.com>...[color=green]
      > > 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: Element type "param-value" is not
      > > declared.
      > > 2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/[/color]
      > Why do you need to remove DOCTYPE?[/color]

      Comment

      • Murat G.

        #4
        Re: How to turn off xml validatin in tomcat ?

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

        HTH

        joes@bluewin.ch (joes) wrote in message news:<26760a3e. 0309161138.2423 7f88@posting.go ogle.com>...[color=blue]
        > 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
        >
        >
        > mgungora@yahoo. ca (Murat G.) wrote in message news:<508f8f02. 0309151213.7790 4cf7@posting.go ogle.com>...[color=green]
        > > joes@bluewin.ch (joes) wrote in message news:<26760a3e. 0309130602.70c3 981@posting.goo gle.com>...[color=darkred]
        > > > 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: 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.SAX ParseException: Element type "param-value" is not
        > > > declared.
        > > > 2003-09-08 17:48:02 - Ctx(/livJSP) : Line 3 /web-app/context-param/[/color]
        > > Why do you need to remove DOCTYPE?[/color][/color]

        Comment

        Working...