These are chat archives for sbt/sbt-assembly

26th
Dec 2018
Fritz Lorens
@lorensf
Dec 26 2018 07:54
Hey all, im trying out assembly with this sample project: https://github.com/playframework/play-scala-chatroom-example/tree/2.6.x
i have successfully run sbt assembly
but when i run the jar file i got the following error
scala target/scala-2.12/play-chatroom-scala-example-assembly-2.6.x.jar
Oops, cannot start the server.
java.lang.RuntimeException: No application loader is configured. Please configure an application loader either using the play.application.loader configuration property, or by depending on a module that configures one. You can add the Guice support module by adding "libraryDependencies += guice" to your build.sbt.
        at scala.sys.package$.error(package.scala:30)
        at play.api.ApplicationLoader$.play$api$ApplicationLoader$$loaderNotFound(ApplicationLoader.scala:44)
        at play.api.ApplicationLoader$.apply(ApplicationLoader.scala:70)
        at play.core.server.ProdServerStart$.start(ProdServerStart.scala:50)
        at play.core.server.ProdServerStart$.main(ProdServerStart.scala:25)
        at play.core.server.ProdServerStart.main(ProdServerStart.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at scala.reflect.internal.util.ScalaClassLoader.$anonfun$run$2(ScalaClassLoader.scala:106)
        at scala.reflect.internal.util.ScalaClassLoader.asContext(ScalaClassLoader.scala:41)
        at scala.reflect.internal.util.ScalaClassLoader.asContext$(ScalaClassLoader.scala:37)
        at scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:132)
        at scala.reflect.internal.util.ScalaClassLoader.run(ScalaClassLoader.scala:106)
        at scala.reflect.internal.util.ScalaClassLoader.run$(ScalaClassLoader.scala:98)
        at scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:132)
        at scala.tools.nsc.CommonRunner.run(ObjectRunner.scala:28)
        at scala.tools.nsc.CommonRunner.run$(ObjectRunner.scala:27)
        at scala.tools.nsc.JarRunner$.run(MainGenericRunner.scala:21)
        at scala.tools.nsc.CommonRunner.runAndCatch(ObjectRunner.scala:35)
        at scala.tools.nsc.CommonRunner.runAndCatch$(ObjectRunner.scala:34)
        at scala.tools.nsc.JarRunner$.runAndCatch(MainGenericRunner.scala:21)
        at scala.tools.nsc.JarRunner$.runJar(MainGenericRunner.scala:33)
        at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:79)
        at scala.tools.nsc.MainGenericRunner.run$1(MainGenericRunner.scala:92)
        at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:103)
        at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:108)
        at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
the project itself already depend on guice, so this error doesn't make any sense to me