Tomcat 8报错 SEVERE: One or more listener failed to start,如何找到更详细的错误信息
来源:互联网 发布:网络打字员是真是假 编辑:程序博客网 时间:2024/06/14 23:14
有时在tomcat的应用启动的时候会出现这样的错误:
16-Oct-2016 19:04:10.216 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 23112 ms16-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.war16-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 file16-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 = INFOorg.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler
之后重启tomcat。这样应用再启动失败后就可以在tomcat的logs/catalina.out
或者logs/localhost_yyyy_mm_dd
日志文件中找到更加详细的信息。
1 1
- Tomcat 8报错 SEVERE: One or more listener failed to start,如何找到更详细的错误信息
- one or more listeners failed to start
- Geoserver fails One or more listeners failed to start
- 关于Struts2报错严重: One or more Filters failed to start. Full details will be found in the appropriate co
- arcgis的One or more layers failed to draw: 问题
- Failed to instantiate one or more classes
- Tomcat 报错:Failed to start Compenent
- tomcat启动的时候报错:Failed to start component
- ArcMap打开MXD文件报One or more layers failed to draw错误!
- tomcat启动报错:SEVERE: A child container failed during start
- One or more listeners failed to start. Full details will be found in the appropriate container log
- android的imageView出现failed to instantiate one or more classes
- 重启ambari-agent服务器报错: Failed to start ping port listener of
- 如何知道错误:Validation failed for one or more entities. See 'EntityValidationErrors' 的原因
- shiro使用报错---One or more realms must be present to execute an authentication attempt.
- tomcat报错:严重: The required Server component failed to start so Tomcat is unable to start. org.apache.
- Validation failed for one or more entities
- Validation failed for one or more entities
- Java中的static关键字解析
- Mac OSX下使用apt-get命令
- ubuntu上编译安装mysql5.7.x【多次错误之后总结的方法】
- 程序员的分级
- [LeetCode]--345. Reverse Vowels of a String
- Tomcat 8报错 SEVERE: One or more listener failed to start,如何找到更详细的错误信息
- Deep-Learning NotePad1 : Machine-Learning to Deep-Learning
- URAL1222
- hdu 1799 循环多少次?(排列组合,思路)
- Spark程序设计——Scala
- 网络基础
- Python列表
- 137.Clone Graph-克隆图(中等题)
- Python元组