473,394 Members | 1,759 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,394 software developers and data experts.

org.xml.sax.SAXParseException : Element type "web-app" must be declared

org.xml.sax.SAXParseException : Element type "web-app" must be declared

this problem occurs when i start the tomcat 4.0.1
how do i solve this problem?

thanks.
Aug 23 '07 #1
1 8562
Nepomuk
3,112 Expert 2GB
A quick search with Google gives this answer:

Answer
The XML DOCTYPE headers are missing from your web.xml file.

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

Or...Is WEB-INF all capital case (sorry if I ask you this question, but this could be one cause of the problem).

[Note that this error would not cause a problem in some older servlet engines. Specifically, I'm pretty sure Tomcat 3 was not so strict. This is a "gotcha" when upgrading from Tomcat 3 to Tomcat 4.
Or here's a more thorough explanation.
So one tip: If you have an exact error message, ask big wise Google! ^^
Aug 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: asj | last post by:
from the borg lady: http://www.freeroller.net/page/Sayaka/20030819#walmart_deadline_shows_java_cashing ------------------------------------------------- I/We read with interest Walmart's new...
0
by: Archana | last post by:
I am looking for a web based drawing control but have had no luck findin one. I want something that is similar to Visio where there is a palette o objects that get dragged to a drawing surface or...
8
by: Doug Laidlaw | last post by:
I tried to grab an image from a Web page the other day. It turned out that the page was made up of three horizontal bands, and part of the image was in each. One band was a JPEG, another was a...
1
by: Alex Maghen | last post by:
I'm not sure if the question belongs in one of the Visual Studio boards or here but it's like this In Visual Studio.NET, if I want to create a Web Application, I seem to have to create it UNDER...
0
by: NotGiven | last post by:
I want to add some shopping pages to my site. I'd lilke to use the easiest things possible, thought I am a PHP developer. What's the easiest way to add a "web store" using Amazon web services or...
0
by: kplkumar | last post by:
Hi I am new to this. I am trying to create a setup project to package our stuff and create an installer. This is what I want to do, I have a directory sructure in which we have our...
13
by: Kobee | last post by:
Hi, I'm having a few issues adapting to new 2.0 "website" project vs. the old 1.1 "web application". One of the major issues I'm having is with the notion of namespaces. Using the old way, I...
2
by: Lucky | last post by:
hi guys, few days back i've posted a question regarding how can i get the list of the websites form the IIS, at this location: ...
0
by: tibor | last post by:
Hi, I need to call a CGI script which should be a web service from .NET environment. I got an example in perl but I'm unable to trasform it into .NET (C#). Can anybody help me with this? use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.