java.lang.ClassNotFoundException: org.apache.catalina.core.ThreadLocalLeakPreventionListener

懵懂的女人 提交于 2019-12-05 02:49:01

The ThreadLocalLeakPreventionListener was added recently to tomcat. It is available in tomcat 7 as well as the latest version(s) of tomcat 6. Make sure you have the latest tomcat 6, with a clean installation (your installation might have the server.xml from the new version and the jars from the older one)

even i faced the same issue.What you need to do is, go to servers tab and left click on Apache server and click on properties. There you can see Location pointing to [workspace metadata]. Click on switch Location. It will switch to Apache location /Servers/Tomcat xxx.Apply the changes and save.

Your web.xml contains entry for a listener whose code was added in Tomcat 7.0.6 and onwards, but your tomcat is older than that -

org.apache.catalina.core.ThreadLocalLeakPreventionListener

If you are using the class in server.xml you need to remove it to get rid of the error/Exception.

<Listener 
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!