read-write-web / rww-play

read write web Play
59 stars 19 forks source link

dist packaging non fonctional #138

Closed sylvainlb closed 9 years ago

sylvainlb commented 9 years ago

The dist command makes a package that doesn't run. It throws a ExceptionInInitializerError on startup.

bblfish commented 9 years ago

What is the dist command?

jmvanel commented 9 years ago

dist is a command of sbt that generates a zip for deployment on a server .

sylvainlb commented 9 years ago

In this case, it creates a zip package with a rwweb script in /bin/. When running this script with the usual run parameters, it throws an ExceptionInInitializerError at play.api.GlobalSettings on the first request.

sylvainlb commented 9 years ago

On https request, it throws:

Error while rendering default error page scala.MatchError: java.lang.NoClassDefFoundError: Could not initialize class controllers.RdfSetup$ (of class java.lang.NoClassDefFoundError) at play.api.GlobalSettings

jmvanel commented 9 years ago

This maybe a consequence of https://github.com/read-write-web/rww-play/issues/139

FYI I wrote here the normal procedure to run on a server: https://github.com/jmvanel/semantic_forms/tree/master/scala/forms_play#run-on-a-server-without-development-environment

sylvainlb commented 9 years ago

I don't think so, because I did include the parameters, and apparently they were taken into account. That's basically the procedure I followed.

sylvainlb commented 9 years ago

This was due to a missing target directory

sylvainlb commented 9 years ago

opened #146