473,395 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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.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/
Jul 17 '05 #1
3 7406
jo**@bluewin.ch (joes) wrote in message news:<26*************************@posting.google.c om>...
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?
Jul 17 '05 #2
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
mg******@yahoo.ca (Murat G.) wrote in message news:<50**************************@posting.google. com>...
jo**@bluewin.ch (joes) wrote in message news:<26*************************@posting.google.c om>...
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?

Jul 17 '05 #3
Look for the token WebXmlReader in Server.xml config in tomcat documentation

HTH

jo**@bluewin.ch (joes) wrote in message news:<26**************************@posting.google. com>...
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
mg******@yahoo.ca (Murat G.) wrote in message news:<50**************************@posting.google. com>...
jo**@bluewin.ch (joes) wrote in message news:<26*************************@posting.google.c om>...
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?

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: SamMan | last post by:
We are getting new computers at work and I got the word today that pc-lan (network admins) do not want IIS installed on ANY machine. We are primarily a Java development house, so they will not balk...
5
by: nmac | last post by:
Hi all, hopefully someone can offer some sagely advice regarding Production use of Jakarta's Tomcat. First, some brief background. My company have a servlet application that connects to a MySQL...
2
by: kimbuba | last post by:
Hi all, i'm writing cause i'm not able to find any good resources about this topic. I'm programming on tomcat and i have my browser open to see changes i made. The problem is that i'd like to see...
5
by: D E | last post by:
When using my web application manager (http://localhost:8080/admin) I forgot my password. Is there an XML file i can look at to remember/obtain (possibly even set). Thanks
10
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate,...
3
by: danish | last post by:
hi everyone..sorry everyone if ive posted on the wrong group but i really needed help.... i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the sheel scripts...i normally use the...
4
by: Edward V. Berard | last post by:
People, I am having problems developing Java applications on a Mac using Eclipse, MyEclipse, and Tomcat 5.5+. My current configuration: Mac OS X (10.4.5) Eclipse (3.1+) MyEclipse (4.0+)
1
by: ashok2006 | last post by:
Hi everybody, Here is my problem:- When I start tomcat the command prompt for tomcat openes but closes within seconds. I've following environment varibles set:- CATALINA_HOME ...
0
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.