jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFS first exercise 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)
Bookmark "HFS first exercise" Watch "HFS first exercise" New topic

HFS first exercise


Joined: Oct 11, 2004
Posts: 12
I am beginner of J2EE and studying HFS with Tomcat 4, J2EE1.4 and windowsXP. According to first example of web.xml on page 30, the heading should be :
<web-app xmlns="http://java.sun.com.xml/ns/j2ee"
xsi:schemaLocation="http://java.sun.com.xml/ns/j2ee/web-app_2_4.xsd" version="2.4">

but it don't work in my situation with message

Parse Error at line 4 column 85: Document root element "web-app", must m
atch DOCTYPE root "null".

until xml changed to change:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


Could anyone help to explain? Many thanks!

SCJP 1.4 SCWCD 1.4 (preparing)
Al Skylar

Joined: Oct 03, 2004
Posts: 5
>>..and studying HFS with Tomcat 4, J2EE1.4 and windowsXP...
Per your statement above, you are mixing the apples and oranges ;-)...
Tomcat 4 does not support servlet 2.4 standard,
please refer to the http://jakarta.apache.org/tomcat/index.html, it says the following:

Tomcat Versions
For the impatient, current Tomcat production quality releases vs. Servlet/JSP specifications:

Servlet/JSP Spec Tomcat version
2.4/2.0 5.0.28
2.3/1.2 4.1.31
2.2/1.1 3.3.2

So please get Tomcat 5 and enjoy your study ;-).



Joined: Oct 11, 2004
Posts: 12
Yes, you are right. It works after upgrad to Tomcat5.

Thanks alot.
I agree. Here's the link: http://aspose.com/file-tools
subject: HFS first exercise
It's not a secret anymore!