Re: tomcat 3.x vs. tomcat 4.x

2000-10-22 Thread Craig R. McClanahan

Charles Sabourdin wrote:

> will the developpement under tomcat 3.x be exportable
> for 4.x ?
>  I suppose your are gonna says off course but I still
> need confirmation.
> ;-)
>

The following notes on compatibility should help reassure you :-)

Applications developed to run under Tomcat 3.x (that is, based on the
servlet 2.2 and JSP 1.1 specifications) should run under Tomcat 4.x
(based on servlet 2.3 and JSP 1.2) unmodified, unless they rely on:
* Bugs in the current implementation.
* Rely on behavior of Tomcat 3.x that was not specified in 2.2/1.1
  but has been clarified under 2.3/1.2 (a few small issues).
* Use a web.xml file that does not conform to the DTD (Tomcat 3.x
  did not check this unless you were using tag libraries; Tomcat 4.0
  uses a validating XML parser to read this file).
Thus, courtesy of the backwards compatibility of the new spec versions,
you should be able to run essentially all existing web apps under Tomcat
4.x.  As an example of this, I've had no problem running Struts
applications under 4.0, without even recompiling.  (NOTE:  2.3
containers are *required* to accept web.xml descriptors in the 2.2
syntax).

Server configuration for Tomcat 4.x (in server.xml) is very similar to
3.x, but will require small tweaks.  In addition, Tomcat 4.0 restores
the ability to provide global defaults for all web apps in conf/web.xml
(the same way this was done in 3.1).

Web connector configuration will be different (and dramatically
simplified) in Tomcat 4.x, because the connectors are being built to be
web-app aware.  Thus, you will not have to configure things twice --
once in web.xml and once in your Apache config, for example -- when they
fall outside the bounds of the default configuration files that Tomcat
creates when it starts.

System components, on the other hand (i.e. things implemented as
RequestInterceptors or ContextInterceptors under 3.2) will need to be
re-implemented for Tomcat 4.x.  The internal architecture is
substantially different.

Craig McClanahan


See you at ApacheCon Europe !
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
Applications to Tomcat





Re: tomcat 3.x vs. tomcat 4.x

2000-10-22 Thread Charles Sabourdin

will the developpement under tomcat 3.x be exportable
for 4.x ?
 I suppose your are gonna says off course but I still
need confirmation.
;-)

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



Re: tomcat 3.x vs. tomcat 4.x

2000-10-22 Thread Craig R. McClanahan

uoft none wrote:

> What is the history of split between tomcat 3.x and
> tomcat 4.x? I think 4.x is not an evolution of 3.x.
> Are these two code streams going to be developed
> independently? What is the Catalina angle and where
> does it come from?
>

The "Catalina" code (which comprises the servlet container portion of
Tomcat 4.0 -- Jasper is the JSP portion) is based on code that was going
to become Apache JServ 2.0, prior to the announcement by Sun that Tomcat
was being contributed to the Apache Software Foundation.  As such, it
has essentially zero code in common with the servlet container portion
of Tomcat 3.2 -- you can consider it a complete rewrite based on lessons
learned from both Apache JServ and Tomcat 3.x.

In addition, Tomcat 4.0 already supports nearly all of the features of
the current draft version of the Servlet 2.3 spec, and most of the
features of the JSP 1.2 draft spec.

>
> Thanks
> u!
>

Craig McClanahan


See you at ApacheCon Europe !
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
Applications to Tomcat