Starting JFinal 2.0 Starting scanner at interval of 5 seconds. Starting web server on port: 80 Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:607) at org.eclipse.jetty.util.log.JettyAwareLogger.warn(JettyAwareLogger.java:431) at org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:69) at org.eclipse.jetty.util.component.AbstractLifeCycle.setFailed(AbstractLifeCycle.java:204) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:74) at com.jfinal.server.JettyServer.doStart(JettyServer.java:121) at com.jfinal.server.JettyServer.start(JettyServer.java:64) at com.jfinal.core.JFinal.start(JFinal.java:137) at com.hon.common.CommonConfig.main(CommonConfig.Java:76)
解決:去掉編譯器自帶的JavaEE。由於自帶的JavaEE會與jetty衝突java