myeclipse 启动Tomcat是 一直报这个提示 Problem Occurred Launching shanxicredit on Tomcat 7.x' hasencountered a problem. Errors occurred dur
问题:
1,选择项目要启动时提示
2,启动后 控制台显示的异常提示:
严重: The web application [/项目名xxx] 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.
十月 13, 2023 1:57:46 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/项目名xxx] 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.
十月 13, 2023 1:57:46 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/项目名xxx] appears to have started a thread named [Timer-3] but has failed to stop it. This is very likely to create a memory leak.,
翻译如下:
3,登录页面显示:
分析:
1,根据问题一提示说明 现有启动配置 已存在,再次启动可以资源或文件内容不一致 导致tomcat启动异常。
2,根据问题二控制台异常翻译,在启动时应该启动了两个项目 导致出现这个问题,有两个现有启动配置。
解决:因为Tomcat原有的启动配置 导致 启动项目 冲突 无法正常 启动项目。所有找到将Tomcat文件里面关于相关项目的 原有启动配置-文件及文件夹 全部删掉。
例如:
E:\Program Files\apache-tomcat-xxx\work\Catalina\localhost 下的文件全部删掉
E:\Program Files\apache-tomcat-xxx\webapps 下的目录 删掉所有项目的文件
E:\Program Files\apache-tomcat-xxx\logs 下的目录 删掉所有项目的文件
然后重新启动Tomcat就可以正常启动项目了。