Tomcat

 
 
Tomcat is a servlet container and is the reference implementation for the Java Servlet en JaveServer Pages (JSP) technologies. It does not contain an EJB container!

Here below an overview of Tomcat version vs. Servlet/JSP specification.

Tomcat version Servlet/JSP Spec
5.5.4 2.4/2.0
4.1.31 2.3/1.2
3.3.2 2.2/1.1

The latest Tomact version can be downloaded from: http://jakarta.apache.org/tomcat

rss feed

Quick guides






Installing Tomcat 4.1.31



Information
none

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Java 2 Standard Edition (J2SE) SDK, version 1.2 or higher.


Procedure
  1. Download and execute jakarta-tomcat-4.1.31.exe

  2. The installation displays which Java 2 Standard Edition Software Development Kit (J2SE SDK) shall be used.

    Tomcat setup, step 1.

  3. The license agreement is displayed.

    Tomcat license agreement, step2.

  4. Select your installation options.

    Do NOT select "NT service (NT/2k/XP only)".

    If you select this option, you will get the following error message, when shutting down Tomcat:

    "Catalina.stop: java.net.ConnectException: Connection refused: connect"


    Tomcat installation options, step 3.

  5. Select your installation folder.

    Tomcat select installation folder, step 4.

  6. During installation a progress bar is displayed.

    Tomcat installation progress, step 5.

  7. Enter an admin password to access the aministrator page.
    For example: mytomcatsecret

    Tomcat basic settings, step 6.

  8. Press Finish buttton.



  9. Set the CATALINA_HOME system environment variable to the directory where you installed Tomcat. e.g.: CATALINA_HOME=C:\Tools\Tomcat 4.1

  10. To start and stop Tomcat use the startup.bat and shutdown.bat files located in
    ..\Tomcat 41\bin directory.

  11. To verify if Tomcat is installed correctly, startup Tomcat and type:

    http://localhost:8080

    You will see the following page:

    Tomcat welcome page.

    If port 8080 is used by another application, you can change this in file:
    ..\Tomcat 41\conf\server.xml

    See line:
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
       port="8080"
       :
  12. To access the Tomcat Administrator page, type:

    http://127.0.0.1:8080/admin/login.jsp

    You will see the following page:

    Tomcat administration page login.

  13. After you login, you will see the following page:

    Tomcat administration page.

  14. Other interresting URLs are:

    http://localhost:8080/examples/jsp
    http://localhost:8080/examples/servlets
    http://localhost:8080/tomcat-docs
    http://localhost:8080/webdav

  15. Note: If you make changes in your web application (for example changes in the properties file) you need to restart Tomcat. To avoid restarting Tomcat you can use the following URL:

    http://localhost:8080/manager/reload?path=/my_webapp_name