Tomcat的:一个或多个监听器无法启动

桑迪普:

我后,我加入/升级某些依赖未启动应用程序。它记录一个错误说

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

我看到所有的日志文件,和卡特琳娜。,本地主机。,应用。*,但没有人似乎都因其中的启动是打破堆栈跟踪。

这是tomcat8,java8。

如何检查日志,并在那里将日志去比正常tomcat的文件夹等。

卡塔利娜日志:

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
桑迪普:

发现一个简单的方法来确定故障原因。

  1. 在你WEB-INF/classes的应用程序目录,创建一个新的文件:logging.properties

  2. 添加以下在该文件中:

org.apache.catalina.core.ContainerBase.[Catalina].level=INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler
  1. 重新启动Tomcat。

现在你将有完整的堆栈跟踪,并从那里调试问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

传递一个监听器,在Android的定制的片断

删除一个onclick监听器

斯威夫特:如何让一个监听器报告何时断开连接以及何时断开连接?

代号一个带有动作监听器的容器

多个事件监听器?

如何在一个类中删除一个事件监听器?

由于一个或多个端口无效,因此服务器无法启动[Eclipse中的Tomcat]

React.js,在多个组件中的特定动作上触发一个监听器函数

来自另一个类的Flutter呼叫监听器

如何创建一个TCP监听器?

如何创建一个时变监听器

实现一个内部匿名动作监听器

启用jQuery,仅添加一个事件监听器

如何用一个取代一打动作监听器?

如何将一个事件监听器应用于另一个事件监听器?

为什么 OnLongClicked 动作监听器(方法)在 Android 中返回一个值

Nodejs express 监听器必须是一个函数

在 Anko 中为 textView 添加一个滑动监听器

一个监听器上有多个按钮 - 两个按钮崩溃,一个按钮有效

当其他儿童监听器在firebase android中启动时如何停止一个儿童监听器

一个按钮的动作监听器

事件监听器只更新一个用户的屏幕

创建一个 Redux-saga 监听器

多个事件监听器

在java中为计数器添加一个动作监听器

试图设置一个抽象的监听器

用 Observable 包裹一个函数来创建一个热监听器

ActionListener 完成后如何触发另一个动作监听器

RabbitMQ 并发监听器监听同一个队列的顺序