我最近新装了系统,但tomcat在eclipse怎么也起不来了,反复弄了多次也不行,最近报的错误如下:
Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.tomcat.util.compat.JdkCompat. <clinit> (JdkCompat.java:55)
at org.apache.catalina.startup.ClassLoaderFactory. <clinit> (ClassLoaderFactory.java:63)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:131)
说是找不到类文件,tomcat也配过几次了,怎么这次就出了这个问题了,大家帮忙看看!
------解决方案--------------------
检查commons-logging的位置,如果有重的地方,删了他。
------解决方案--------------------
commons-logging.jar放到类路径里