Error in Eclipse-Tomcat Setup - ClassNotFoundException “1catalina.org.apache.juli.FileHandler”

人走茶凉 提交于 2019-11-30 11:33:07

Ensure the following system property is set,

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

As seen here on the tomcat users mailing list.

I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.

You can check the FAQ for this specific Question: http://wiki.apache.org/tomcat/FAQ/Logging

Or you can use another logging.properties, for example this one:

log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

# Print only messages of level WARN or above in the package com.foo.
log4j.logger.com.foo=WARN
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!