【问题标题】:Issue with deploying application using tomcat7使用tomcat7部署应用程序的问题
【发布时间】:2026-02-16 03:35:17
【问题描述】:

我正在尝试在 ubuntu12 上运行的 tomcat7 中使用 spring 部署应用程序。当我将war文件放到webapps目录中时,该目录是为webapps中的应用程序创建的——但应用程序没有加载。最新一期复制如下。任何有关故障排除的想法将不胜感激。

生成 war 文件的计算机与我部署应用程序的计算机上的 Java 版本相同。我没有看到文件权限问题 - 在 tomcat7 中有一个 logging.properties 文件。

Jan 31, 2014 10:43:05 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jan 31, 2014 10:43:05 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/test-webapp] startup failed due to previous errors
Jan 31, 2014 10:43:05 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/test-webapp] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.

更新: 我错过了一条错误消息。我会尽快更新这张票。

更新: 我在 tomcat 中缺少一个用于应用程序部署的文件 - 试点错误。感谢大家分享他们的想法 - 非常感谢!

【问题讨论】:

  • 日志肯定不止这些。请检查。
  • 上下文文件到位了吗?
  • 我错过了一条错误消息 - 将很快更新 - 谢谢
  • 抱歉浪费了大家的时间 - 我错过了一条错误消息 - 我认为最好关闭这张票而不是更新它。谢谢大家!
  • @alihaider 在删除之前,请注意 Jorge 的回答。关闭时 MySQL 驱动程序存在错误。

标签: java spring tomcat7


【解决方案1】:

这似乎是 MySQL over tomcat 的一个已知问题,您是否尝试过任何建议的解决方案

http://bugs.mysql.com/bug.php?id=69526

http://bugs.mysql.com/bug.php?id=68556

?

【讨论】:

  • 我在日志中遗漏了一条错误消息 - 正在调查 - 将尽可能更新帖子 - 谢谢
  • 这不是导致问题的原因,但非常有用的信息 - 感谢您的分享 - +1