Patrick McFarlane wrote:

>  I've been using tomcat 3.2 and would like to upgrade to 4.0 for it's
> support of XML compliant JSP (i.e. <jsp:scriptlet>) but am having trouble
> finding docs. What I would like to do is startup up Tomcat similarly to the
> way I've been starting it in 3.2 which is org.apache.tomcat.startup.Tomcat ,
> but things seem to have changed drastically. Could someone point me in the
> right direction on how to start Tomcat in 4.0?
>

If you are using the standard startup scripts, simply use "catalina.bat" or
"catalina.sh" instead of "tomcat.bat" or "tomcat.sh".

    cd {where-you-installed-tomcat-4.0}/bin
    ./catalina.sh start

or

    cd {where-you-installed-tomcat-4.0}
    ./bin/catalina.sh start

or

    export CATALINA_HOME {where-you-installed-tomcat-4.0}
    $CATALINA_HOME/bin/catalina.sh start

For all of the above cases, the file "conf/server.xml" is still used to
configure Tomcat.  Many of the details are different, but the basic mechanism
for defining your own webapps with a <Context> entry are the same.  Tomcat 4.0
also automatically recognizes apps under the "webapps" directory, just as Tomcat
3.2 did.

If you are trying to invoke the startup class yourself, you will want to invoke
org.apache.catalina.startup.Bootstrap -- but you will need to note the way that
the startup scripts set up the system classpath for this all to work correctly.
More details depend on what exactly you are doing now.

There is more information about the way class loaders are set up in Tomcat 4.0
in the documents directory (catalina/docs/dev/classloaders.html) of the Tomcat
4.0 source distribution.

>
> Thanks in advance,
>
> patrick mcfarlane
> sr. java engineer
> lendx
> [EMAIL PROTECTED]

Craig McClanahan


Reply via email to