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:)
at org.apache.juli.FileHandler.configure(FileHandler.java:)
at org.apache.juli.FileHandler.<init>(FileHandler.java:)
at org.apache.juli.FileHandler.<init>(FileHandler.java:)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:)
at java.lang.reflect.Constructor.newInstance(Constructor.java:)
at java.lang.Class.newInstance(Class.java:)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:)
at java.util.logging.LogManager$.run(LogManager.java:)
at java.util.logging.LogManager$.run(LogManager.java:)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:)
at java.util.logging.LogManager.getLogManager(LogManager.java:)
at java.util.logging.Logger.<init>(Logger.java:)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:)
at java.util.logging.LogManager$.run(LogManager.java:)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:)
at java.util.logging.Logger.demandLogger(Logger.java:)
at java.util.logging.Logger.getLogger(Logger.java:)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:)

错误分析:  

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

[解决]java.lang.IllegalArgumentException: Bad level "DEBUG"的更多相关文章

  1. 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList的问题

    一.背景 最近闲来无事,想自己搭建一套Spring+SpringMVC+Mybatis+Mysql的环境(搭建步骤会在以后博客中给出),结果运行程序时,适用@ResponseBody注解进行返回Lis ...

  2. 解决java.lang.IllegalArgumentException: No converter found for return value of type 的问题

    controller返回一个dto,并且定义了@ResponseBody注解,表示希望将这个dto对象转换为json字符串返回给前端,但是运行时报错:nested exception is java. ...

  3. 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList问题

    在spring + springmvc + mybatis框架中,我们配置接口对外返回json格式,但是报如下错误: 24-Oct-2017 17:42:23.495 严重 [http-nio-808 ...

  4. tomcat解决 java.lang.IllegalArgumentException: Request header is too large

    tomcat运行项目时,有一个请求过去后,后台报这样的错java.lang.IllegalArgumentException: Request header is too large 原因:请求头超过 ...

  5. 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList这个问题

    今天使用SSM框架,用@ResponseBody注解,出现了这个问题 java.lang.IllegalArgumentException: No converter found for return ...

  6. 解决java.lang.IllegalArgumentException: Can't load standard profile: LINEAR_RGB.pf

    调用org.apache.batik.transcoder.Transcoder转换图片时,报了以下错误:java.lang.IllegalArgumentException: Can't load ...

  7. 170616、解决 java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList

    报错截图: 原因:搭建项目的时候,springmvc默认是没有对象转换成json的转换器的,需要手动添加jackson依赖. 解决步骤: 1.添加jackson依赖到pom.xml <!-- j ...

  8. 解决java.lang.IllegalArgumentException: No converter found for return value of type

    1原因:这是因为springmvc默认是没有对象转换成json的转换器的,需要添加jackson依赖. 简而言之   需要将对象转化为json对象   Jackson 是一种实现方式 <depe ...

  9. bug_ _ java.lang.IllegalArgumentException: pointerIndex out of range 问题的两种解决办法

    ========== 4     如何解决java.lang.IllegalArgumentException: pointerIndex out of range? 今天遇到一个bug:java.l ...

随机推荐

  1. 聊聊jdbc statement的fetchSize

    在使用MySQL的JDBC时,如果查询结果集过大,使用一次查询,可能会出现Java.lang.OutOfMemoryError: Java heap space问题,因为DB服务器端一次将查询到的结果 ...

  2. [转]HTTPS网络流量解密方法探索系列(一)

    前言 分析网络流量总是绕不开HTTPS,因其广泛使用甚至是强制使用逐渐被大众熟知,在保证其安全的同时也提高了对流量进行研究的难度.目前解析HTTPS协议的文章很多,有很多不错的文章可以带着入门,老实说 ...

  3. go语言之进阶篇runtime包中 Gosched Goexit GOMAXPROCS的使用

    一.runtime包 1.Gosched的使用 runtime.Gosched() 用于让出CPU时间片,让出当前goroutine的执行权限,调度器安排其他等待的任务运行,并在下次某个时候从该位置恢 ...

  4. iOS开发-UIScreenEdgePanGestureRecognizer实战

    UIScreenEdgePanGestureRecognizer名字很长,而且关于其文档也是少的的可怜,苹果官方给的唯一的一个属性是edges,文档中的解释是这样的: A UIScreenEdgePa ...

  5. 2017 年度码云新增项目排行榜 TOP 50,为它们打“call”

    2017 年度码云新增项目排行榜 TOP 50 正式出炉 !2017 结束了,我们来关注一下这一年里码云上新增的最热门的开源项目吧.此榜单根据 2017 年在码云上新增开源项目的 Watch.Star ...

  6. window下配置Apache2服务器

    1:去Apache.org下载安装包 http://httpd.apache.org/ 2:解压到某一个目录 3:修改httpd.conf(Apache的解压目录和端口号) 4:管理员方式启动cmd执 ...

  7. 如何在 Kaggle 首战中进入前 10%

    原文:https://dnc1994.com/2016/04/rank-10-percent-in-first-kaggle-competition/ Introduction Kaggle 是目前最 ...

  8. discuz上传头像失败怎么解决

    刚安装好的discuz程序,可能需要我们做许多修改,而头像上传失败则是最为常见的问题之一,那么discuz上传头像失败怎么解决呢 进入ftp,打开跟目录下config文件 下载"config ...

  9. 以sb7code为基础创建一个基本的OpenGL项目

      以sb7code为基础创建一个基本的OpenGL项目   从github上面下载sb7code代码: https://github.com/openglsuperbible/sb7code 打开H ...

  10. spring结合mybatis实现数据库读写分离

    随着系统用户访问量的不断增加,数据库的频繁访问将成为我们系统的一大瓶颈之一.由于项目前期用户量不大,我们实现单一的数据库就能完成.但是后期单一的数据库根本无法支撑庞大的项目去访问数据库,那么如何解决这 ...