I was following the tutorial from the Scalatra docs, installed the Consript and Giter8 and initialized the project using g8 as described. However when I cannot start the Jetty container using container:start
as I am getting following exception:
[error] (container:start) java.lang.NoClassDefFoundError: org/eclipse/jetty/plus/webapp/PlusConfiguration
I haven't made any changes to the project generated by Giter. The version of java
and javac
executables is 1.7.0_65 (Sun).
These are the library dependencies from build.scala
:
libraryDependencies ++= Seq(
"org.scalatra" %% "scalatra" % ScalatraVersion,
"org.scalatra" %% "scalatra-scalate" % ScalatraVersion,
"org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test",
"ch.qos.logback" % "logback-classic" % "1.0.6" % "runtime",
"org.eclipse.jetty" % "jetty-webapp" % "9.1.3.v20140225" % "container",
"org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar"))
)