Tomcat 8.5 无法在 VMWare 中的 Windows 环境中作为服务启动

Tomcat 8.5 无法在 VMWare 中的 Windows 环境中作为服务启动

我在 VMWare 中的 Windows 机器上安装了 tomcat 8.5,并使用 AdoptOpenJDK 的 OpenJDK11。当我从命令提示符启动 tomcat 时,服务器启动没有任何问题。但是,当我将其作为服务启动时,它无法启动。

相同的 Tomcat 和 JDK 组合在我的常规 Windows 机器上运行。

我通过在 tomcat 中启用调试查看了 tomcat 日志。

[2019-09-15 06:29:47] [info]  [55156] Apache Commons Daemon procrun (1.2.0.0 64-bit) started.
[2019-09-15 06:29:47] [info]  [55156] Running Service 'Tomcat8'...
[2019-09-15 06:29:47] [info]  [47588] Starting service...

另外,即使我从命令行启动 tomcat 作为服务,它也无法启动。

    [2019-09-15 06:50:25] [debug] ( prunsrv.c:1754) [61248] Apache Commons Daemon procrun log initialized.
    [2019-09-15 06:50:25] [info]  ( prunsrv.c:1758) [61248] Apache Commons Daemon procrun (1.2.0.0 64-bit) started.
    [2019-09-15 06:50:26] [info]  ( prunsrv.c:1668) [61248] Running Service 'Tomcat8'...
    [2019-09-15 06:50:26] [debug] ( prunsrv.c:1441) [53128] Inside ServiceMain...
    [2019-09-15 06:50:26] [debug] ( prunsrv.c:904 ) [53128] reportServiceStatusE: dwCurrentState = 2, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0.
    [2019-09-15 06:50:26] [info]  ( prunsrv.c:1196) [53128] Starting service...

我可能错了,但这可能与 VMWare 架构和 Tomcat 识别错误的本机库有关。

相关内容