Hi all,
I have been working with a couple different versions and platforms of
Tomcat, and haven't been able to determine conclusively how the DOCTYPE
directive should be interpreted. Until recently, I had always just put
in the standard Sun lines (see below).
This worked fine until a few weeks ago, when java.sun.com was down for a
day or so. My Tomcat installation would hang briefly during
initialization and other bad things would happen.
[digression: did anyone else experience a problem with java.sun.com?]
Figuring that this sort of problem could happen again I went looking for
a way to configure TC to look for the .dtd file locally. I found a nice
summary here:
http://www.ingenio.co.uk/xml/introdtd.html
tried this:
<!DOCTYPE web-app SYSTEM "web-app_2_3.dtd">
and had it work on two somewhat dissimilar systems. So far so good.
Yesterday I tried the SYSTEM approach on another TC (4.1.30) and found
this error in catalina.out:
Resolve entity failednull
file:///usr/local/jakarta/jakarta-tomcat-4.1.30-src/build/web-app_2_3.dt
d
Apparently on this installation TC is looking somewhere other than in my
WEB-INF directory. In all cases (successful or not) I had installed a
local copy of web-app_2_3.dtd in WEB-INF, i.e. in the same directory as
the web-app web.xml.
The 2.3 Servlet spec contradicts all of this somewhat with these words
(SRV.13.2.1):
All valid web application deployment descriptors for version 2.3
of this specification must contain the following DOCTYPE
declaration:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
This seems pretty specific, and I don't find any mention of the SYSTEM
variation in the spec.
So what is the "correct" behavior?
What should I do on a system that may not always have Internet
connectivity?
Is something just built or configured wrong on the misbehaving system?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]