File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes What's wrong with my deployment descriptor? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What Watch "What New topic

What's wrong with my deployment descriptor?

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Hi to all,
I've recently started experimenting with the web.xml file of my J2EE app. The problem is that it has an error and I can't locate it. The server (JBOSS) says that there is some kind of a XMLParse error. Could you please tell me what I'm doing wrong.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

<display-name>Student Feedback System</display-name>
Welcome to the Student Feedback system

<!-- Define and initialise the Login Servlet-->
This servlet is used for user login


<!-- Define and initialise the event dispatcher Servlet-->
This servlet is used for intercepting user requests and then forwarding the
user to the appropriate View (Java Server Page). This servlet is the
Controller in this context.

<!-- Servlet Mapping -->



<!-- The Usual Welcome File List -->

[ May 24, 2003: Message edited by: ernest fakudze ]

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
JBoss should give the line and column where the XML parse error occurs, you should also make careful note of exactly what the error is.
"some kind of XMLParse error" is not all that helpful.
I agree. Here's the link:
subject: What's wrong with my deployment descriptor?
It's not a secret anymore!