getting prob with web.xml

My web.xml file is this

<?xml version="1.0" encoding="UTF-8"?>

<web-app >

<servlet>

<description>This is the description of my J2EE component</description>

<display-name>This is the display name of my J2EE component</display-name>

<servlet-name>Rating</servlet-name>

<servlet-class>com.Mamatha.Rating</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>Rating</servlet-name>

<url-pattern>/Rating</url-pattern>

</servlet-mapping>

</web-app>

And the error i am getting is

<[BillingSystem.war]: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 6, column 52).>

Please help me out

Thanks

[939 byte] By [shyamamathaa] at [2007-10-2 5:31:01]
# 1

Try using this instead:

<web-app version="2.4"

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

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

Exactly as the error states, your XML is malformed, you don't provide a schema.

linxpdaa at 2007-7-16 1:42:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...