2 fengchemomo FengCheMoMo 于 2016.04.12 16:27 提问

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

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

4个回答

CSDNXIAON
CSDNXIAON   2016.04.12 16:33

tomcat启动报错,以下是错误日志
Ms Sql Server在ODI启动日志报错
tomcat 启动报错
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

sun_zhipeng
sun_zhipeng   2016.04.12 16:48

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

guo_ang
guo_ang   2016.04.12 18:12

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

FengCheMoMo
FengCheMoMo   2016.04.13 13:17

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

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!