Saturday, May 22, 2010

A Quick Guide for installing Tomcat on Windows


  • After unzipping the file, navigate to the "bin" directory and start Tomcat by running the startup.bat file.

  • You must have the JDK installed before you can start Tomcat. The JDK contains the Java runtime engine.


  • Another point to consider is that JSP pages must be compiled the very first time someone accesses the JSP page. This compilation process converts the JSP page into a Servlet. This requires access to the Java compiler. Tomcat will not be able to call the Java compiler if the directory path to the Java compiler includes spaces. To avoid the problem, install the JDK in a directory with a name that contains no spaces, such as JDK1.3.

  • After starting Tomcat, open your browser and type the following URL: http://localhost:8080. Tomcat uses port 8080 by default, so make sure that port is not being used by another server, such as Internet Information Server (IIS). If there is a port conflict, you can change Tomcat's default port by modifying the file server.xml in the conf directory. Search for the number 8080 in the file and change it to an unused port number. When Tomcat starts successfully, you will see an introduction page for Apache Tomcat.
REFERENCES:

No comments:

Post a Comment