• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

HFS first exercise

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
:
</web-app>

Could anyone help to explain? Many thanks!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>>..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 ;-).

Thanks,

Al
 
Sharon
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you are right. It works after upgrad to Tomcat5.

Thanks alot.
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic