Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory ?? ?at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:50) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory ?? ?at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ?? ?at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ?? ?at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ?? ?at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ?? ?... 1 more
解决方法:
1.在MyEclipse中点击window->preferences?
2.选择MyEclipse->Servers->Tomcat
?
3.选择好后在Paths点击Add JAR/ZIP找到你的tomcat的安装路径把需要的JAR添加进来
?在运行就没问题了。
?
|