Can't install Tomcat 7 as a Service in Windows

后端 未结 4 622
旧时难觅i
旧时难觅i 2021-01-06 16:50

I\'m trying to install tomcat as a service in Windows Server 2008.

I searched in stackoverflow and can\'t find any answer to this problem, i can see other related qu

相关标签:
4条回答
  • 2021-01-06 16:56

    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.

    0 讨论(0)
  • 2021-01-06 16:58

    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.
    
    0 讨论(0)
  • 2021-01-06 16:58

    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.

    0 讨论(0)
  • 2021-01-06 16:59

    Open tomcat7w.exe application and verify the one informed.

    0 讨论(0)
提交回复
热议问题