在 Spring boot 项目中,当我在 tomcat 网络服务器上运行该项目时,出现以下异常。 这是堆栈跟踪的一部分,在最后一行它说“查看服务器日志以获取详细信息”,但我找不到要查找服务器日志的位置。我检查了日志文件(我的意思是这个地址:apache-tomcat-8.5.9\logs),这个路径是空的。
注意:它运行成功,但我不知道是什么改变导致它不再成功运行。
28-Mar-2017 16:25:35.336 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
28-Mar-2017 16:25:35.337 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2017-03-28 04:25:35,375] Artifact cardservice:war exploded: Error during artifact deployment. See server log for details.
最佳答案
它很可能位于名为 catalina.out
的 Tomcat 日志文件中。
关于java - 服务器日志在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43069209/