понедельник, 24 августа 2015 г.

Installing several versions of Apache Tomcat on the same machine as services

If you face folloving failure message:
C:\Program Files\Apache\Tomcat\6.0.9\bin\service.bat install
Installing the service 'Tomcat6' ...
Using CATALINA_HOME:    C:\Program Files\Apache\Tomcat\6.0.9
Using CATALINA_BASE:    C:\Program Files\Apache\Tomcat\6.0.9
Using JAVA_HOME:        C:\Oracle\Middleware\jdk160_11
Using JVM:              C:\Oracle\Middleware\jdk160_11\jre\bin\server\jvm.dll
Failed installing 'Tomcat6' service

Find and replace SERVICE_NAME and DISPLAYNAME with a unique values such as:
rem Set default Service name
set SERVICE_NAME=Tomcat6
set PR_DISPLAYNAME=Apache Tomcat 6