我已经在tomcat7中部署了一个网络应用程序,所有我要做的就是启动应用程序,但每次我尝试启动网络应用程序时,我总是遇到这个错误:
失败 - 无法启动上下文路径/ 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上的新手
答案 0 :(得分:0)
将JDBC驱动程序移动到Tomcat(公共类加载器)lib /目录(在catalina.properties
文件中定义,该文件通常位于CATALINA_HOME/lib
)。这将告诉普通的类加载器加载驱动程序,你的webapp类加载器应该没有问题。