gpt4 book ai didi

java - Tomcat 在启动时抛出 "Error listenerStart"

转载 作者:行者123 更新时间:2023-11-28 22:56:39 28 4
gpt4 key购买 nike

我试过运行 Tomcat6。它总是抛出以下异常:

....
09:16:13,968 [main] INFO - SchemaUpdate | HHH000232: Schema update complete
Aug 25, 2014 9:16:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 25, 2014 9:16:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/myapp] startup failed due to previous errors
Aug 25, 2014 9:16:15 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
Aug 25, 2014 9:16:15 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [File Reaper] but has failed to stop it. This is very likely to create a memory leak.
Aug 25, 2014 9:16:16 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 25, 2014 9:16:16 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10494 ms

我用过以下

  • Ubuntu系统
  • java 版本 1.6.0_31 OpenJDK 运行时环境(IcedTea6 1.13.3) (6b31-1.13.3-1ubuntu1~0.12.04.2)
  • Apache Tomcat 6
  • MySQL 服务器 5.5
  • MySQL JDBC 连接器:com.mysql.jdbc_5.1.5.jar
  • Hibernate 和 JSP-Servlet

我已经将我的 jbdc 从 {app_home}/lib 删除到 {tomcat_home}/lib,然后重新启动 Tomcat,如我在 To prevent a memory leak, the JDBC Driver has been forcibly unregistered 中看到的那样

不幸的是,错误仍然存​​在。

得到错误后,我可以转到 tomcat 主页,但在尝试使用 tomcat 6 管理器界面启动 myapp 后我收到此消息:

"FAIL - Application at context path /myapp could not be started"

我无法访问 myapp 服务器主页

我该如何解决这个问题?

提前致谢。

耳朵。

最佳答案

在 SEVERE 的情况下:Context [/myapp] startup failed due to previous errorscatilina.out 中没有关于错误的日志,但您可以在 localhost.* 日志文件中找到一些日志。

从 tomcat 的日志文件夹中删除今天日期的 localhost.* 日志文件,然后尝试再次启动 tomcat,同时跟踪 localhost 日志文件。你会在这个问题上得到一些线索。

关于java - Tomcat 在启动时抛出 "Error listenerStart",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25497971/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com