Tomcat启动报错,搞得烦的一比。常规思维就会迷瞪,谁让tomcat的日志级别特殊ne….
http://tomcat.apache.org/tomcat-7.0-doc/
错误现象:
Handler error java.lang.IllegalArgumentException: Bad level "DEBUG" at java.util.logging.Level.parse(Level.java:474) at org.apache.juli.FileHandler.configure(FileHandler.java:310) at org.apache.juli.FileHandler.<init>(FileHandler.java:96) at org.apache.juli.FileHandler.<init>(FileHandler.java:88) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:379) at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:560) at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:503) at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:311) at java.util.logging.LogManager$2.run(LogManager.java:320) at java.util.logging.LogManager$2.run(LogManager.java:318) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:318) at java.util.logging.LogManager.getLogManager(LogManager.java:300) at java.util.logging.Logger.<init>(Logger.java:265) at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1468) at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1466) at java.util.logging.LogManager$1.run(LogManager.java:204) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.<clinit>(LogManager.java:181) at java.util.logging.Logger.demandLogger(Logger.java:339) at java.util.logging.Logger.getLogger(Logger.java:393) at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71) at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196) at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:169) at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241) at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:292) at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:49)
错误分析:
tomcat,默认的日志级别
SEVERE (highest value) > WARNING > INFO > CONFIG > FINE > FINER > FINEST (lowest value)
详情:http://www.cnblogs.com/xiaochina/p/6864043.html
解决方案:
修改conf/logging.properties,DEBUG替换FINE