报错:
org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file.
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [gsjis] 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.
问题原因:
在tomcat启动运行时,war exploded包里面没有把手动添加的jar包添加进去。
解决方案:
1、打开project Structure;
2、点击Artifacts;
3、点击Output Layout标签;
4、将右边Avaliable Elements里面的jar包(这些不是pom文件引入,是手动在modules里导入的),鼠标右击;
5、点击Put into Output Root,执行后,在WEB-INF会增加lib目录,里面是项目引用的jar包,点击OK。再次部署应用就能成功运行了。