gpt4 book ai didi

mysql - 在 tomcat7 中部署 Web 应用程序

转载 作者:行者123 更新时间:2023-11-29 03:31:14 25 4
gpt4 key购买 nike

我已经在 tomcat7 中部署了一个网络应用程序,我所要做的就是启动该应用程序,但每次我尝试启动该网络应用程序时,我总是会遇到此错误:

FAIL - Application at context path /agileexpress could not be started

这是我在日志中得到的,好像我的 sql 有问题

May 15, 2015 4:54:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 35067 ms
May 15, 2015 4:55:39 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
May 15, 2015 4:55:39 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/agileexpress] startup failed due to previous errors
May 15, 2015 4:55:39 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/agileexpress] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
May 15, 2015 4:55:39 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/agileexpress] 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.

谁能帮帮我?我是 tomcat7 的新手

最佳答案

将您的 JDBC 驱动程序移动到 Tomcat(通用类加载器)lib/目录(在 catalina.properties 文件中定义,通常位于 CATALINA_HOME/lib 中)。这将告诉通用类加载器加载驱动程序,您的 webapp 类加载器应该没有问题。

关于mysql - 在 tomcat7 中部署 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30255521/

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