tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Tomcat 3.2.3 WAR files and 4.0
Date Tue, 25 Sep 2001 19:21:17 GMT

On Tue, 25 Sep 2001, Neeraj Vora wrote:

> Date: Tue, 25 Sep 2001 09:13:08 -0700
> From: Neeraj Vora <>
> Reply-To:
> To:
> Subject: Tomcat 3.2.3 WAR files and 4.0
> Are the Tomcat-3.2.3 Web-applications supposed to run as-is on Tomcat-4.0? I
> have one that doesn't. Thanks..

As long as your web apps are spec-compliant to the servlet 2.2 and JSP 1.1
specs, and don't rely on bugs or other non-spec behavior in 3.2.3, they
should indeed work.  Failure to do so is a bug in Tomcat 4.

The most likely causes for problems:

* Your web.xml has elements not in the order required by the
  DTD.  Tomcat 3.2.3 accepted them anyway (even though it allowed
  non-portable apps).  Tomcat 4.0 uses a validating XML parser,
  so your web.xml elements MUST match the required order.

* Assumptions about the current working directory when running
  Tomcat.  This is never portable, and you should design your
  applications not to rely on it.

* Differences in the global class loading architectures.
  You'll need to be more explicit about what your WAR file
  does, and how it fails, to see if this is your issue.


View raw message