首页 > 解决方案 > Tomcat在部署战争时卡住了

问题描述

Tomcat 在部署战争时卡住了。我们在 work/Catalina/localhost 文件夹中的 webapps 文件夹之外部署了两场战争。部署一次war后,tomcat挂了,没有日志写入tomcat.log

相同的构建适用于其他 3 个非产品环境,但不适用于第 4 个非产品环境。在这种情况下我需要检查什么?

在其他环境中:

ls work/Catalina/localhost
war1dir  ROOT  war2dir  x-tree

在失败的环境中:

ls work/Catalina/localhost
war1dir

在其他环境中:

May 22, 2019 4:06:18 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

May 22, 2019 4:06:39 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [7,434] milliseconds.

May 22, 2019 4:06:40 PM org.apache.catalina.startup.HostConfig deployDescriptor

在失败的环境中:

May 22, 2019 3:51:59 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

在此之后不再写入日志。

标签: java

解决方案


推荐阅读