Anjuga Selvan

Greenhorn
+ Follow
since Mar 24, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anjuga Selvan

Hi all,
I tried to deploy a web app using Deployment Descriptor for the first time. When starting the server i am getting an error -"org.xml.sax.SAXParseException: Element type "web-app" must be declared."

The following is what i have in my web.xml. I am using Tomcat4.0.1 and jdk1.3. What might be the problem and what is the solution ? Can anyone plz help me in this regard?


<?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_4.dtd">

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
// DD elements go here.

</web-app>

Thanks in advance,
Anju.