I’ll be conducting an online user study in a couple of weeks. I will essentially have participants play around with a Java web applicaton and so naturally, I need to deploy the web app onto our laboratory production server –mufasa. Problem is, I do not have root access to mufasa, however, a system-wide tomcat instance is already installed and so all I had to do was install a private instance in my home directory. Here’s how I did it.
For the record, just so we are clear, I am working with the following specs. Other than that, I am not actually running these commands the production server –I am basically replicating the steps I took to set up the private instance on mufasa using my laptop.
phiri@PHRLIG001:~/Sandbox$ sh /usr/share/tomcat6/bin/version.sh Using CATALINA_BASE: /usr/share/tomcat6 Using CATALINA_HOME: /usr/share/tomcat6 Using CATALINA_TMPDIR: /usr/share/tomcat6/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar Server version: Apache Tomcat/6.0.35 Server built: Apr 11 2012 10:57:49 Server number: 6.0.35.0 OS Name: Linux OS Version: 3.2.0-24-generic-pae Architecture: i386 JVM Version: 1.6.0_30-b12 JVM Vendor: Sun Microsystems Inc.
Install tomcat6-user package
phiri@PHRLIG001:~$ sudo apt-get install tomcat6-user
Create pricate tomcat instance
phiri@PHRLIG001:~/Sandbox$ tomcat6-instance-create -p 8180 -c 8105 new-tomcat-instance
Start/Shutdown
phiri@PHRLIG001:~/Sandbox$ cd new-tomcat-instance ./bin/startup.sh [to startup tomcat private instance] ./bin/shutdown.sh [to shutdown tomcat private instance]
References
[1] https://help.ubuntu.com/12.04/serverguide/tomcat.html