/*
 * JOnAS: Java(TM) Open Application Server
 * Copyright (C) 1999 Bull S.A.
 * Contact: jonas-team@objectweb.org
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * --------------------------------------------------------------------------
 * $Id$
 * --------------------------------------------------------------------------
 */

The web container which use Tomcat 4.0.x is not anymore in the binary release
of JOnAS.
This is now the Tomcat 4.1.x web container which is provided.
You can build/run Tomcat 4.0.x as web container by reading the following rules.


Build JOnAS with Tomcat 4.0.x web container.
--------------------------------------------

If you want to use this deprecated web_container service (Tomcat 4.0.x), you
must customize the build process by editing the objectweb/jonas/build.xml file.

Find the target "all"
Change tomcat4.1 into tomcat4.0 in the line 
   depends="jonas_jars,tomcat3.3,tomcat4.1,jetty,jadmin,textfiles,scripts">

The target "all" must be after your changes :
  <target name="all"
	  description="build all JOnAS stuff"
	  depends="jonas_jars,tomcat3.3,tomcat4.0,jetty,jadmin,textfiles,scripts">
  </target>

$CATALINA_HOME must be set to a Tomcat 4.0.x release.

run the command line :ant install.


Run JOnAS with Tomcat 4.0.x web container.
------------------------------------------

In the jonas.properties file, you have to change the jonas.service.web.class

replace 
    org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl
by
    org.objectweb.jonas.web.catalina40.CatalinaJWebContainerServiceImpl

Don't forget to have $CATALINA_HOME which is a Tomcat 4.0.x release.

You can launch jonas with the command line :jonas start