Application for creating a user friendly web interface for R scripts


Instructions for installing Tomcat

Install Java

Installing Tomcat

Installing your webapp

Your own web applications can be deployed by copying the .war file to TOMCAT_HOME/webapps
For example if you have a web application myapp.war, copy this file to TOMCAT_HOME/webapps and myapp can then be accessed at http://localhost:8080/myapp
To access myapp over the internet your machine will need an internet name or IP address, in which case the URL will be as above but with 'localhost' replaced by the machine's internet name or IP address.


There are 3 things that may go wrong during a stand-alone Tomcat install:
  1. Another web server or process may have already claimed port 8080, the default HTTP port that Tomcat attempts to bind to at startup. To change this, edit file: $TOMCAT_HOME/conf/server.xml
    Search for '8080' and change it to a port that isn't in use, and is greater than 1024 (because ports less than or equal to 1024 require superuser access to bind under UNIX). Then restart Tomcat and if, for example, you changed the port to 1977, the URL to access applications will now be http://localhost:1977/.
  2. "Out of environment space" error when running the batch files in Windows 95, 98, or ME operating systems. Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on "Properties", then on the "Memory" tab. For the "Initial environment" field, enter in something like 4096. After you click apply, Windows will create shortcuts which you can use to start and stop the container.
  3. 'localhost' machine isn't found. This could happen if you're behind a proxy. If that's the case, make sure the proxy configuration for your browser knows that you shouldn't be going through the proxy to access the "localhost". In Netscape, this is under Edit/Preferences -> Advanced/Proxies, and in Internet Explorer, Tools -> Internet Options -> Connections -> LAN Settings.

Further information

Hopefully this article will contain all the information you need to get Tomcat up and running, but if not then the Tomcat website contains full documentation and useful FAQs. One issue that may arise is the need to provide access to your Apache Tomcat server using port 8080, through an Apache HTTP server using port 80, which may be the only port to the exterior permitted by your network's firewall. Information on how to do this with the Apache Tomcat Connector can be found at the Tomcat website site.