Mysql 在tomcat7中部署web应用

Mysql 在tomcat7中部署web应用,mysql,deployment,tomcat7,Mysql,Deployment,Tomcat7,我已经在tomcat7中部署了一个web应用程序,我所要做的就是启动该应用程序,但每次尝试启动该web应用程序时,我都会遇到以下错误: 失败-无法启动上下文路径/agileexpress处的应用程序 这是我在日志上看到的,似乎我的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.

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

失败-无法启动上下文路径/agileexpress处的应用程序

这是我在日志上看到的,似乎我的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\u HOME/lib
中)。这将告诉普通类加载器加载驱动程序,您的webapp类加载器应该没有问题。

其他日志文件中一定有错误。您是否签出了catalina.out?@Orchun:相同的错误。如果我也使用apache2怎么办?它不会影响apache2吗?不确定它是否会影响您的Apache服务器。你能试着移动驱动程序看看它是否允许Tomcat无误启动吗?如果是这样,那么我们就可以解决Apache问题。