Page tree
Skip to end of metadata
Go to start of metadata

Tomcat and IIS: Install & Setup

 http://tomcat.apache.org/connectors-doc/webserver_howto/printer/iis.html
 http://onjava.com/pub/a/onjava/2002/12/18/tomcat.html
 http://www.prasannatech.net/2008/07/integrating-iis-with-tomcat.html

Troubleshooting tomcat errors that prevent DBSync to run as a Service


This section mainly deals with issues pertaining Apache Tomcat Server not being able add or start as a Windows Service. Since DBSync also incorporates Tomcat server (Version 7), it is seen to affect DBSync installation as well when trying to run / set DBSync as a Windows Service. This behavior is more often than not seen with Windows Server Operating Systems and issues encountered are mainly centered around configuration of DBSync application to run as a Windows service or unable to start the DBSync service. The following are some of the troubleshooting steps that can be followed to solve these issues.

Common Errors:

  • Window Title: Services
    Error: Windows could not start the Apache Tomcat on Local Computer. For more information, review the System Event log.  If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 0
  • Error in System Event log - The Apache Tomcat service terminated with service-specific error 0 (0x0).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
  • The JAVA_HOME or JRE_HOME environment variable is not defined correctly or not found.

Solution Steps:

  • Check for your installed version of Java JDK as previous versions of DBSync use tomcat 6.x and dbsync versions from 2.99 use tomcat 7.x. Tomcat 6.0 requires Java 1.5 (or higher) and tomcat 7.0 requires Java 1.6 (or higher).
  • Install Java JDK (not JRE) 1.6 or 1.7 and preferably not in Windows "C:\Program Files" folder. Add the User Variable "JAVA_HOME" and System variable in the environment variables as shown.

User Variable

Variable

Value

JAVA_HOME

<<Your Java Installation Path

System Variable

Variable

Value

PATH

%JAVA_HOME%\bin

  • Edit tomcat file "service.bat" and point to correct JDK or JRE using set JAVA_HOME or JAVA_JRE variable.
  • Copy file "msvcr71.dll" from  <java>\bin directory to <tomcat>\bin directory for JDK version 1.6. If your JDK version is 1.7, then copy file "msvcr100.dll" from <java>\bin directory to <tomcat>\bin directory.
  • No labels