當使用嵌入式碼頭,並開始通過「提供不亞型」上org.eclipse.jetty.apache.jsp.JuliLog嵌入式碼頭
mvn jetty:run
下拋出異常:
Exception in thread "main" java.util.ServiceConfigurationError:
org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a subtype
這裏是pom.xml
片段:
<dependencies>
<dependency>
<groupId>org.eclipse.jetty.orbit</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0.0.v201112011016</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.3.7.v20160115</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-websocket</artifactId>
<version>8.1.19.v20160209</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>8.1.19.v20160209</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.6</version>
</dependency>
任何指針到正確配置嵌入式碼頭(對最好還使用websockets)表示讚賞。
[碼頭8是EOL(https://dev.eclipse.org/mhonarc/lists/jetty-announce/msg00069 .html)(生命終結)。考慮升級。 –
@JoakimErdfelt問題是我正在使用scala websocket的例子。有沒有可用的碼頭9. – javadba