tomcat启动web项目出现One or more listeners failed to start.的决解方案

出现过几次的问题,记录一下

 

出现了这个错误,它报的不详细,我们不好判断项目是哪里报错,我自己整理出经常用的两种查看报错的详细日志方案:

04-Apr-2019 23:48:15.871 严重 [RMI TCP Connection(4)-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
04-Apr-2019 23:48:15.871 严重 [RMI TCP Connection(4)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/itriptrade] startup failed due to previous errors log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext).

 

第一种

查看tomcat运行时的生成的日志,C:\Users\XA\.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_35_itripbackend\logs

这个路径是IDEA配置tomcat,运行web项目生成的,不是tomcat的路径,一般这个路径是在C盘用户路径下。

 

 

 

第二种

让详细的报错信息展示在控制台,在项目的资源目录下新建一个logging.properties

配置文件的加入配置信息

handlers =  java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = FINE  
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter  

重启项目,就可以了(重启没效果的   把项目下面的target文件删除在运行,让项目重新编译)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值