Saturday, February 2, 2008

Installing Tomcat 6 on Ubuntu

Installing Tomcat 6 on Ubuntu

When editing the .bashrc file in vi and after entering the code indicated in the tutorial, press the ESC key then Shift + :, then type wq after the colon to save the changes and close the file.

To start up Tomcat type:

sudo /usr/local/tomcat/bin/startup.sh

This shows:

Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun

To access the Tomcat Web Application Manager:

1. Edit the tomcat-users.xml and add the following between the <tomcat-users> element tags:

<role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>

sudo vim usr/local/tomcat/conf/tomcat-users.xml

No comments: