java - 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.
在此之后不再写入日志。
解决方案
推荐阅读
- postgresql - 无法使用 Golang Gorm 连接到 RDS Postgres
- javascript - 下拉项目的日期显示为 NAN,但单元格的日期显示为 NAN
- c# - 如何在另一个类中的属性更改后调用方法?
- android-studio - Android Studio 预览未显示 ActionBar
- ansible - Molecule 是如何进行角色查找的
- gcc - 我怎样才能让LD始终将入口点放在-Ttext的位置?
- dart - 使用 badCertificateCallback - http-package 接受自签名证书
- node.js - 如何在Nodejs中检查输入是Linux shell命令还是普通文本消息?
- node.js - 纱线抛出错误:找不到模块“decamelize”
- c# - 用于分散收集器收件人的控制台应用程序或 Web api?