Can't install Tomcat 7 as a Service in Windows

徘徊边缘 提交于 2019-12-01 00:17:18

I solved it simply installing the service with other method:

service.bat install

this command will uninstall the service:

service.bat uninstall

Also to start it and to enable autostart, you must enter to the Services Manager of Windows (Servicios in spanish version) and start the service and enable autostart.

If you cand find service.bat file in tomcat/bin directory, read this:

apache-tomcat-[version].zip or .tar.gz
       Base distribution. These distributions do not include the Windows service wrapper nor the compiled APR/native library for Windows.

apache-tomcat-[version]-windows-x86.zip
       32-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 32-bit JVMs on both 32 and 64 bit Windows platforms.

apache-tomcat-[version]-windows-x64.zip
       64-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 64-bit JVMs on x64 Windows platforms.

I could not make Apache Tomcat install as a Service in either Windows 10 or in Windows 2012. Upon running the Service.bat install command the routine would find the JDK but always failed with something like: Service Install Failed.

My solution: Create a Windows Task Scheduler task pointing to

C:\tomcat7\bin\startup.bat

and make that Task start upon System start without requiring system login. Works like a charm in both operating systems.

HTH.

Bala Ravichandran

Open tomcat7w.exe application and verify the one informed.

This is because your JDK / Java runtime environment and Your Tomcat installation are not matching. Both must be either 32 bit or 64 bit.

Step 1: Uninstall your Apache Tomcat. Step 2: Uninstall your java and jdk.

Step 2: Download same architectural installation.

step 3: Reinstall both.

This will solve your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!