This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

Document root element "web-app" must match DOCTYPE root "null".

 
Ashu Jain
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I am preparing for SCWCD 1.5. For that i am doing practice programs on Tomcat 4.1.37( jdk 1.4.2).

I am getting this error:
Document root element "web-app" must match DOCTYPE root "null".

my web.xml is

<?xml version="1.0" encoding="ISO-8859-1"?>
<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" >

<display-name></display-name>
<description></description>
<servlet>
<servlet-name>Tester</servlet-name>
<jsp-file>/Tester.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>JSPTester</servlet-name>
<jsp-file>/Tester.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>Tester</servlet-name>
<url-pattern>/Tester.ddo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JSPTester</servlet-name>
<url-pattern>/Tester.jsp</url-pattern>
</servlet-mapping>
</web-app>
 
Ashu Jain
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Report post to moderator
It is resolved. It was container issue.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this duplicate.
 
    Bookmark Topic Watch Topic
  • New Topic