私はこのmaven依存関係を持っています
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_${scala.majorversion}</artifactId>
<version>${spray-json.version}</version>
<scope>provided</scope>
</dependency>
<scala.majorversion>2.10</scala.majorversion>
<scala.version>${scala.majorversion}.2</scala.version>
<akka.version>2.2.0</akka.version>
<spray.version>1.2-M8</spray.version>
<spray-json.version>1.2.5</spray-json.version>
ただし、スプレーjsonからこれを取得します:
Caused by: java.lang.ClassNotFoundException: spray.json.package$
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) ~[catalina.jar:7.0.42]
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) ~[catalina.jar:7.0.42]
... 10 common frames omitted