File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Document root element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply locked New topic
Author

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

Ashu Jain
Ranch Hand

Joined: Feb 24, 2008
Posts: 73
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

Joined: Feb 24, 2008
Posts: 73
It is resolved. It was container issue.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Closing this duplicate.


[My Blog]
All roads lead to JavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Document root element "web-app" must match DOCTYPE root "null".
 
Similar Threads
jstl problem in Spring MVC
problem with this cookie program, getting a blank output
Tomcat Set
jsp-config query
EL Configuration Problem