- 错误:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector
- 解决:
pom.xml中修改jetty-server的配置,将scope的provided修改为compile:
<dependency> <groupId>com.jfinal</groupId> <artifactId>jetty-server</artifactId> <version>8.1.8</version> <!--<scope>provided</scope>--> <scope>compile</scope> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-jsp</artifactId> <version>8.1.8.v20121106</version> <!--<scope>provided</scope>--> <scope>compile</scope>