Running Apache Tomcat as a Windows service (64-bit)

To run Apache Tomcat as a service on a 64-bit computer, you must configure the 64-bit version of Tomcat that ships with the adapter.

Before you begin

You must verify that the service is not installed. If the service is installed, uninstall the service, and then restart the computer. Then, install the new service.

Tip: To avoid problems, do not use spaces in file paths. For example, for the Program Files directory you can use PROGRA~1.

Procedure

  1. Open a command prompt and install the new 64-bit service by changing to the HPInstallDir\server\tomcat\bin directory, and typing this command:
    service.bat install tomcat7
    Important:
    1. On Windows operating systems that have User Account Control (UAC), the command shell must be run as an administrator.
    2. You must set the JAVA_HOME environment variable to the directory that contains the new 64-bit service.
  2. Run the HPInstallDir\server\tomcat\bin\tomcat7w.exe program to configure the service.
  3. Click the Java tab, and clear the Use default check box.
  4. Add the following path to the Java Virtual Machine. You can also click the ellipsis icon to browse for the jvm.dll file.
    HPInstallDir\server\jre\bin\j9vm\jvm.dll
  5. Add the following lines at the end of the Java Options text field
    -Dderby.system.home=HPInstallDir\server
    -XX:MaxPermSize=512M 
    -Xms256m
    -Xmx1024m
    -Djazz.connector.sslProtocol=SSL_TLS
    -Djazz.connector.algorithm=ibmX509
  6. In Maximum memory pool, change the pool size to 1024.
  7. On the Startup and Shutdown tabs, make sure that jvm is selected for the Mode setting.
  8. Click the General tab and change the Startup type to Automatic to start the service automatically when Windows starts.
  9. After the service starts, verify that the server is running by logging on to the server from your browser.

What to do next

Set up properties for the adapter, see Setting up properties for the HP adapter.

Feedback