Steps to install Tomcat as a service in windows
-
Launch TOMCAT_HOME\bin\service.bat
This will install Tomcat as a service. (Go and check on your services if the tomcat6 service has been installed correctly) -
Launch TOMCAT_HOME\bin\tomcat6w.exe
A wizard will be displayed.
Go to the Java tab and
- choose the jvm (choose the jdk library, for example
C:\Program Files\Java\jdk1.7.0_45\jre\bin\server\jvm.dll) - put the tomcat-juli.jar and bootstrap.jar on the classpath
Example:
C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\bin\bootstrap.jar;C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\bin\tomcat-juli.jar - in java options put the environment variables normally set in setenv.bat for example (I set the ldap configuration, be aware with copy and paste):
-Dcatalina.base=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632
-Dcatalina.home=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632
-Djava.endorsed.dirs=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\endorsed
-Djava.io.tmpdir=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\conf\logging.properties
-Dbonita.home=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\bonita
-Dsysprop.bonita.db.vendor=postgres
-Dbtm.root=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632
-Dbitronix.tm.configuration=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\conf\bitronix-config.properties
-Djava.security.auth.login.config=C:\bonitaserver\apache-tomcat-6.0.37-postgres-632\conf\jaas-standard.cfg
-Dfile.encoding=UTF-8 - Set initial and maximum memory pool
- Now you can go to the system services and start tomcat6
Wait…
Wait one minute and test to access your bonita webapp.
Subscription
If you have a subscription license for a reduced number of cores you should reduce the process affinity. To do so, open the task manager, go to the Services tab, right click on Tomcat6 and go to the related process. There you can set the affinity and reduce it to the number of cores you want.
That’s all folks !!!