Child pages
  • Install WAR on Tomcat (old)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The eHour WAR distribution is intended for deployment into an existing Tomcat application server.

1. Install Java

The Java runtime environment is not bundled with eHour. When Java is not installed, download and install the latest JRE from Oracle's site

2. Download eHour

If you haven't done so already, download the WAR distribution of eHour from http://ehour.nl/download/download.phtml

Extract it and remember the path, the location where you unpacked the zip file is the eHour home directory

2. Apache Tomcat installation

Apache Tomcat is the container server which hosts the application. If you don't have Apache Tomcat installed, download it from http://tomcat.apache.org/download-70.cgi and follow their instructions.

3. Install the database

MySQL instructions

(warning) Skip this step when you're performing an upgrade.

Follow the MySQL installation guide (LinuxSetup MySQL on Windows) to install and setup your database.

 

PostgreSQL

(warning) Skip this step when you're performing an upgrade.

Follow the PostgreSQL install guide to install and setup your database.

4. Configure Apache Tomcat

Before you deploy eHour in Tomcat you have to configure the database connection (make sure that Tomcat isn't running).

...

Info
titleWindows

On Windows, use forward slashes in the path. For example, rather than c:\ehour type c:/ehour

 

4.1.Set the location of the web archive

The first line contains:

Code Block
languagehtml/xml
<Context path="/ehour" reloadable="false" cookies="true" docBase="/opt/ehour/app/ehour-1.x.war">

Replace the path /opt/ehour/app/ehour-1.x.war with the path to your WAR file. It's in the eHour Home directory's app folder.

4.2.Set the location of the eHour Home directory

The second line reads:

Code Block
languagehtml/xml
<Parameter name="EHOUR_HOME" value="/opt/ehour" override="true" />

Replace /opt/ehour with the path to the eHour Home directory

4.3.Have Tomcat connect to your database

Replace the following fields:

...

Note

Make sure you rename the file to ehour.xml


5. Start Apache Tomcat

Make sure you have started your database first.

...