Tomcat 启动报错:org.apache.catalina.core.StandardContext.startInternal One or more listeners failed ....

最近在用 IDEA 整合完 SSM 和 SSH 框架后,启动Tomcat时,控制台报错,如下: 

问题

08-Mar-2019 23:32:39.015 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

08-Mar-2019 23:32:39.017 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

Tomcat 启动报错:org.apache.catalina.core.StandardContext.startInternal One or more listeners failed ...._第1张图片

 

解决办法

打开 Project Structure,在 Project Setting中选中Artifacts,如下图所示:

Tomcat 启动报错:org.apache.catalina.core.StandardContext.startInternal One or more listeners failed ...._第2张图片


照上图操作之后,在 WEB-INF 下添加了lib目录,里面包含了项目引用的一些 jar包。

Tomcat 启动报错:org.apache.catalina.core.StandardContext.startInternal One or more listeners failed ...._第3张图片

之后点击 Apply,保存配置即可。

 

再次启动Tomcat,成功运行且能正常访问。

你可能感兴趣的:(Java)