I’m trying to deploy a Play 1.2.4 application to a JBoss 7.0.2 server (I am not allowed to use Play embedded server).
I already run into the following issues:
- jetty must be removed (see Play! war command – Is it possible to exclude certain jar from the application /lib folder), solved removing the jar
- a
getSomethingfunction would trigger a java.lang.VerifyError: Inconsistent stackmap frames, for the moment solved removing the offending method – NB. for me it does happen only in JBoss, not in play-server mode
Now I’m trying to understand what’s the pattern to initialize the database.
What’s the best way? Should I set jpa.ddl=update then comment it back again, or is there a better way?
You can either leave it to update or manage your database changes with evolutions.
Evolutions tend to give you finer control over the schema changes and is many prefer it for production environment.