Tomcat: One or more listeners failed to start

Tomcat: One or more listeners failed to start

I have an application which is not starting up after I added/upgraded some dependencies. It logs an error saying

SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file

I saw all the log files, and catalina., localhost., application.*, but none of them seem to have the stacktrace because of which the startup is breaking.

This is tomcat8, java8.

How do I check the logs and where can the logs go other than the normal tomcat folder.

Catalina logs:

Feb 06, 2018 3:07:32 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [ /user/name/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] Feb 06, 2018 3:07:32 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-nio-7060"] Feb 06, 2018 3:07:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: Using a shared selector for servlet write/read Feb 06, 2018 3:07:32 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-nio-9060"] Feb 06, 2018 3:07:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: Using a shared selector for servlet write/read Feb 06, 2018 3:07:32 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 556 ms Feb 06, 2018 3:07:32 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Catalina] Feb 06, 2018 3:07:32 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/8.5.23 Feb 06, 2018 3:07:32 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/application.war] Feb 06, 2018 3:07:48 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 06, 2018 3:08:07 PM redis.clients.jedis.JedisSentinelPool initSentinels INFO: Trying to find master from available Sentinels... Feb 06, 2018 3:08:07 PM redis.clients.jedis.JedisSentinelPool initSentinels INFO: Redis master running at 127.0.0.1:6379, starting Sentinel listeners... Feb 06, 2018 3:08:07 PM redis.clients.jedis.JedisSentinelPool initPool INFO: Created JedisPool to master at 127.0.0.1:6379 Hibernate: A complicated Hibernate query Feb 06, 2018 3:08:25 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) for context '/application' Feb 06, 2018 3:08:25 PM com.sun.faces.spi.InjectionProviderFactory createInstance INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed. Feb 06, 2018 3:08:26 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deployment of web application archive [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/application.war] has finished in [53,864] ms Feb 06, 2018 3:08:26 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/docs] Feb 06, 2018 3:08:26 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 06, 2018 3:08:26 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/docs] has finished in [386] ms Feb 06, 2018 3:08:26 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/examples] Feb 06, 2018 3:08:27 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 06, 2018 3:08:27 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/examples] has finished in [551] ms Feb 06, 2018 3:08:27 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/host-manager] Feb 06, 2018 3:08:27 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 06, 2018 3:08:27 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/host-manager] has finished in [363] ms Feb 06, 2018 3:08:27 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/manager] Feb 06, 2018 3:08:28 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 06, 2018 3:08:28 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/manager] has finished in [295] ms Feb 06, 2018 3:08:28 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/ROOT] Feb 06, 2018 3:08:28 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 06, 2018 3:08:28 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/usr/local/Cellar/tomcat/8.5.23/libexec/webapps/ROOT] has finished in [298] ms Feb 06, 2018 3:08:28 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-nio-7060"] Feb 06, 2018 3:08:28 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-nio-9060"] Feb 06, 2018 3:08:28 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 55840 ms

 

 

Found a simple way to identify the problem.

        1.In your WEB-INF/classes directory of the application, make a new file: logging.properties.

        2.Add the following in that file:

org.apache.catalina.core.ContainerBase.[Catalina].level=INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler

        3.Restart tomcat.

Now you'll have the complete stacktrace and debug the problem from there on.


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值