473,549 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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/
Jul 17 '05 #1
3 7420
jo**@bluewin.ch (joes) wrote in message news:<26******* *************** ***@posting.goo gle.com>...
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/

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.go ogle.com>...
jo**@bluewin.ch (joes) wrote in message news:<26******* *************** ***@posting.goo gle.com>...
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/

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.go ogle.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.go ogle.com>...
jo**@bluewin.ch (joes) wrote in message news:<26******* *************** ***@posting.goo gle.com>...
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/

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
7397
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 about me installing Tomcat. Can I run PHP from Tomcat the same (or close to) as IIS? Thanks. --
5
4019
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 database. The servlet is deployed on two seperate win2k servers (Access to the tomcat servers is via DNS round robin load balancing). The database...
2
9498
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 changes immediatly, is there a way to do this, but using start-stop-reload from tomcato manager admin? I tried to add this to server.xml ...
5
37986
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
1937
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, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed...
3
2832
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 shell scripts from the command line to start and stop the tomcat server..... i found out that php gives this incredible facility where i can execute...
4
13588
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
2926
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 C:\jakarta-tomcat-4.1.31 JAVA_HOME C:\j2sdk1.4.2 Path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL...
0
4173
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 2 running on the server used by other application. Once after installation of the product(HP SIP), I tried to restart the Tomcat 5.0.19 process using...
0
7524
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7960
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7475
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6048
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5089
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
766
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.