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
不妨来我博客看我写的log4j配置。
监听启动错误。检查下tomcat下的lib文件夹,看看jar包是否有缺失。
只要能把日志调出来就行,难道没有办法吗
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。