FengCheMoMo
风车默默
2016-04-12 08:27

tomcat 启动报错,没有详细日志

1
  • tomcat

tomcat 启动报错,没有详细日志
16-04-12 16:21:54 INFO Http11Protocol:188 - Initializing Coyote HTTP/1.1 on port 8080
16-04-12 16:21:54 INFO Catalina:536 - Initialization processed in 265 ms
16-04-12 16:21:54 INFO StandardService:511 - Starting service Catalina
16-04-12 16:21:54 INFO StandardEngine:492 - Starting Servlet Engine: Apache Tomcat/5.0.12
16-04-12 16:21:55 ERROR Context:3635 - Skipped installing application listeners due to previous error(s)
16-04-12 16:21:55 ERROR Context:4109 - Error listenerStart
16-04-12 16:21:55 ERROR Context:4137 - Context startup failed due to previous errors
16-04-12 16:21:55 INFO Http11Protocol:220 - Starting Coyote HTTP/1.1 on port 8080
16-04-12 16:21:55 INFO ChannelSocket:344 - JK2: ajp13 listening on /0.0.0.0:8009
16-04-12 16:21:55 INFO JkMain:390 - Jk running ID=0 time=0/15 config=null
16-04-12 16:21:55 INFO Catalina:585 - Server startup in 192 ms
16-04-12 16:22:05 INFO StandardHost:993 - Create Host deployer for direct deployment ( non-jmx )
在网上也查到一些资料,让调整log4j ,就可以看到详细日志了,但调整后还是不行,只出现三个ERROR,
log4j的配置如下:

log4j.rootLogger=info,Console,R
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
#log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.Console.layout.ConversionPattern=%d{yy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{yyyy.MM.dd HH:mm:ss} %5p %c{1}(%L):? %m%n
log4j.logger.org.apache=info,R
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R
log4j.logger.org.apache.catalina.core=info,R
log4j.logger.org.apache.catalina.session=info,R

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答