Exception in thread "main" java.lang.NoClassDef...

之前一直用tomcat6,今天心血来潮换了tomacat7,从googlecode上down了个项目,运行tomcat总出现以下异常:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
 at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 ... 1 more

倒弄了半天,找到解决办法:
tomcat6.x----paths--append to classpath--add jar/zip----从tomcat7中找到tomcat-juli.jar附加上
ok,成功启动!

 

你可能感兴趣的:(Exception in thread "main" java.lang.NoClassDef...)