playframework/play1 — pull request #767 by angryziber (2014-06-05 15:53:06+00:00)
Title: [#1827] Fix Play 1.3 starting in precompiled mode

The problem is with Hibernate - it seems not to use Play's classloader and fails with ClassNotFoundException for entity classes.

For some reason, it works in non-precompiled mode (maybe it sets Thread.contextClassloader then?)

Anyway, the fix is simple - just call buildEntityManagerFactory() after we have redefined Hibernate's classloader.