技术文章 - CS407165

在 ThingWorx 平台中,无法按照安装指南的说明启动 Tomcat 服务

已修改: 14-Dec-2023   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 9.4

说明

  • 按照安装指南中的安装步骤启动 Tomcat 服务失败
  • Tomcat的log文件夹下没有生成日志文件
  • 使用命令时得到如下返回信息: sudo service tomcat9.0 start
    Job for tomcat9.0.service failed because a timeout was exceeded.
    See "systemctl status tomcat9.0.service" and "journalctl -xeu tomcat9.0.service" for details.
  • 使用journalctl -xeu命令,它显示以下消息:
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/tomcat.pid → /run/tomcat.pid; pl>
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:14: Ignoring unknown escape sequences: "\"
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:29: Unknown key name '-Dcatalina.home' in section 'Service', ignoring.
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/tomcat.pid → /run/tomcat.pid; pl>
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:14: Ignoring unknown escape sequences: "\"
####-virtual-machine systemd[1]: /etc/systemd/system/tomcat9.0.service:29: Unknown key name '-Dcatalina.home' in section 'Service', ignoring.
####-virtual-machine systemd[1]: Starting Apache Tomcat Web Application Container...
   Subject: A start job for unit tomcat9.0.service has begun execution
   Defined-By: systemd
   Support: http://www.ubuntu.com/support
   
   A start job for unit tomcat9.0.service has begun execution.
   
   The job identifier is 4126.
####-virtual-machine systemd[1]: tomcat9.0.service: Can't open PID file /run/tomcat.pid (yet?) after start: Operation not permitted
####-virtual-machine systemd[1]: tomcat9.0.service: start operation timed out. Terminating.
####-virtual-machine systemd[1]: tomcat9.0.service: Failed with result 'timeout'.
Subject: Unit failed
Defined-By: systemd
Support: http://www.ubuntu.com/support

The unit tomcat9.0.service has entered the 'failed' state with result 'timeout'.




这是文章 407165 的 PDF 版本,可能已过期。最新版本 CS407165