java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:61) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:357) at java.lang.Class.newInstance(Class.java:310) at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1077) at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:942) at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:501) at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:331) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:747) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at com.jfinal.server.JettyServer$1.onChange(JettyServer.java:106) at com.jfinal.server.Scanner.compare(Scanner.java:87) at com.jfinal.server.Scanner.working(Scanner.java:56) at com.jfinal.server.Scanner.access$0(Scanner.java:54) at com.jfinal.server.Scanner$1.run(Scanner.java:93) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
移除掉tomcat的Library就可以了
右键项目--Build Path--Configure Build Path...--Libraries--tomcat 移除掉