Tomcat 8报错 SEVERE: One or more listener failed to start,如何找到更详细的错误信息
2016-10-16 20:00
615 查看
有时在tomcat的应用启动的时候会出现这样的错误:
这个时候此应用就启动失败了,访问会出现404错误。但是日志里面也没有写具体是哪个listener启动失败,对调试带来了一些困难,下面记录一下解决方法。
在tomcat的
之后重启tomcat。这样应用再启动失败后就可以在tomcat的
16-Oct-2016 19:04:10.216 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 23112 ms 16-Oct-2016 19:04:30.214 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/sj/apache-tomcat-8.0.36/webapps/baobiao.war 16-Oct-2016 19:04:48.059 SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 16-Oct-2016 19:04:48.061 SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal Context [/baobiao] startup failed due to previous errors
这个时候此应用就启动失败了,访问会出现404错误。但是日志里面也没有写具体是哪个listener启动失败,对调试带来了一些困难,下面记录一下解决方法。
在tomcat的
conf/loggings.properties文件或者该应用的
WEB-INF/classes目录中新建一个
loggings.properties文件,再加上以下两句:
org.apache.catalina.core.ContainerBase.[Catalina].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler
之后重启tomcat。这样应用再启动失败后就可以在tomcat的
logs/catalina.out或者
logs/localhost_yyyy_mm_dd日志文件中找到更加详细的信息。
相关文章推荐
- bug笔记 - Spring --- Tomcat 报错: SEVERE: One or more listeners failed to start.
- 启动 Tomcat 报错 One or more listeners failed to start. Full details will be found in the appropriate
- Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法;关于如何查看 EntityValidationErrors 详细信息的解决方法
- one or more listeners failed to start
- One or more listeners failed to start
- 如何处理 Validation failed for one or more entities. See 'EntityValidationErrors' 错误
- 关于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
- 如何知道错误:Validation failed for one or more entities. See 'EntityValidationErrors' 的原因
- EF中,保存实体报错:Validation failed for one or more entities. 如何知道具体错误在哪?
- 关于Struts2报错严重: One or more Filters failed to start. Full details will be found in the appropriate co
- Geoserver fails One or more listeners failed to start
- One or more listeners failed to start. Full details will be found in the appropriate container log
- One or more Filters failed to start. Full details will be found in the appropriate container log fil
- 当遇到Context [/TSORM] startup failed due to previous errors时,解决办法:配置tomcat的日志获取错误信息
- tomcat 启动错误 Error listenerStart org.apache.catalina.LifecycleException: Failed to start component
- 关于tomcat报Error listenerStart和Context [*] startup failed due to previous errors两个错误的总结
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
- tomcat运行时出现了Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]等错误
- 错误:One or more post-processing actions failed. Consult the OPP service log for details