Sunday, September 18, 2011

How to install Apache Tomcat server on Ubuntu

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process.

Prior to installing tomcat make sure that your have installed java.

Then Follow the following steps to install the tomcat servlet container.

  1. Download Apache tomcat from the Apache web site
  2. Unzip (extract) the downloaded zip file using the 'unzip' command
  3. Open the terminal and go to the bin folder of the tomcat directory
  4. Then run this command './startup.sh'
  5. You will see something similar to  following in the terminal

achala@achala-HP-Pavilion-dv6-Notebook-PC:~/tomcat/apache-tomcat-7.0.21/bin$ ./startup.sh
Using CATALINA_BASE:   /home/achala/tomcat/apache-tomcat-7.0.21
Using CATALINA_HOME:   /home/achala/tomcat/apache-tomcat-7.0.21
Using CATALINA_TMPDIR: /home/achala/tomcat/apache-tomcat-7.0.21/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /home/achala/tomcat/apache-tomcat-7.0.21/bin/bootstrap.jar:/home/achala/tomcat/apache-tomcat-7.0.21/bin/tomcat-juli.jar
achala@achala-HP-Pavilion-dv6-Notebook-PC:~/tomcat/apache-tomcat-7.0.21/bin$ 



Open your web browser and type http://localhost:8080/ 
 
Next you can try a jsp

Go to apache-tomcat-7.0.21/webapps/ROOT and place your .jsp file there.
Then open your web browser and type  
http://localhost:8080/yourfilename.jsp


No comments:

Post a Comment

Using Zotero for academic writing