DEBUGGING THE DREADED
来源:互联网 发布:淘宝家具内容营销 编辑:程序博客网 时间:2024/06/06 19:45
http://blog.jteam.nl/2011/03/18/debugging-the-dreaded-severe-error-listenerstart-and-severe-error-filterstart-tomcat-error-messages/
Just a quick post that I hope might benefit others. If you have been developing web applications on tomcat for a while you have likely come the two error messages mentioned in the title.
SEVERE: Error listenerStart
Occurs when an exception is thrown in the contextInitialized method of a ServletContextListener
SEVERE: Error filterStart
Occurs when an exception is thrown in the init method of a Filter
Unfortunately by default, tomcat won't provide you with any details about the cause of the error. Infact it wont even tell you which filter or listener is failing. This can be big problem in applications of significant size that have many filters and listeners configured. Fortunately there is a solution. In your webapplication's WEB-INF/classes folder you can create a logging.properties file with the following contents
org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler
Now you will be presented with the stacktrace
- DEBUGGING THE DREADED
- Introducing the Debugging Tools
- Debugging the OnStart Method
- The Art of Debugging
- How to fix the dreaded "java.lang.OutOfMemoryError- PermGen space" exception (classloader leaks)
- How to fix the dreaded "java.lang.OutOfMemoryError: PermGen space" exception (classloader leaks)
- How to fix the dreaded "java.lang.OutOfMemoryError: PermGen space" exception (classloader leaks)
- Debugging with the Eclipse platform
- Debugging the kernel using Ftrace
- Debugging the kernel using Ftrace
- Debugging with the Eclipse Platform
- Debugging
- Debugging
- debugging
- Debugging
- Debugging
- Debugging
- Debugging
- OpenGL简介--显示列表
- 字符串转换_BSTR/LPSTR/LPWSTR/Char
- 在MyEclipse中修改各文件的默认打开方式
- 在指定区域以指定的方式输出字符串drawtext
- 安装python-mutagen 批量修改mp3字符编码格式,解决Amarok播放器乱码问题
- DEBUGGING THE DREADED
- 用DirectShow实现QQ的音视频聊天功能
- Linux下轻松实现PDF文件的合并 转自:http://www.linuxidc.com/Linux/2007-10/8585.htm
- sscanf使用介绍
- boost::weak_ptr和enable_shared_from_this
- MySQL提示:1045 access denied for user 'root'@'localhost' using password yes
- 心情复杂 程序员!? 前路一片迷茫……写给自己(我木有人格分裂啊)
- DirectShow 学习之 CSource类和其一个具体实现例子的源代码分析
- google-perftools