开发者社区> 问答> 正文

tomcat 启动报错,没有详细日志 <b> ?报错

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

展开
收起
爱吃鱼的程序员 2020-06-23 13:41:50 517 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    不妨来我博客看我写的log4j配置。

    监听启动错误。检查下tomcat下的lib文件夹,看看jar包是否有缺失。

    只要能把日志调出来就行,难道没有办法吗

    2020-06-23 13:42:06
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Python第四讲——使用IPython/Jupyter Notebook与日志服务玩转超大规模数据分析与可视化 立即下载
大规模日志数据平台架构面临的问题与挑战 立即下载
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载