GeeCON Prague 2014*
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


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: 14688
    
  16

Closing this duplicate.


[My Blog]
All roads lead to JavaRanch
 
GeeCON Prague 2014
 
subject: Document root element "web-app" must match DOCTYPE root "null".