tomcat:one or more listeners failed to start.报错
报错信息:
one or more listeners failed to start. full details will be found in the appropriate container log file.
具体就是web.xml此配置报错:
服务器启动错误tomcat:one or more listeners failed to start.报错解决方案
idea:在使用idea运行ssm项目的时候 , tomcat运行失败 , 出现好几次 , 具体报错
"one or more listeners failed to start. full details will be found in the appropriate container log file"
有几种解决方案
方法一
查看编译后web目录下lib有没有jar , 没有就put一下 , 重编译添加 , 然后重新启动tomcat .
方法二
右键点击项目 , 点击build module重写编译 , 然后重新启动tomcat.
方法三
点击maven中clean清除下编译文件 , 然后重新启动tomcat.
方法四
进入项目结构 artifact,删除本tomcat的war, 重写生成一下 , 然后重新启动tomcat.
方法五
重启项目 , 退出idea重新打开.
ps:基本就这几种解决方案了 , 最近写项目出现了好几次这种情况 , 有包找不到0.0 , 总结了下。
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。
发表评论