mbknor/faster-groovy-templates — Issue #8: Precompiling fails in PROD mode
Author: arahaya
Created: 2012-02-10 18:50:27+00:00
State: open

Play version 1.2.4
Windows 7 64bit
java version "1.6.0_24"

When I run the app using CRUD module in PROD mode I get the following error.
I do not notice any issues in DEV mode.

01:17:47,381 INFO ~ Starting D:\workspace\temp\play\faster-template-test
01:17:47,386 INFO ~ Module crud is available (D:\bin\play-1.2.4\modules\crud)
01:17:47,387 INFO ~ Module faster is available
(D:\workspace\temp\play\faster-template-test\my-modules\faster-groovy-templates)
01:17:47,475 INFO ~ Precompiling ...
01:17:49,597 ERROR ~ Cannot start in PROD mode with errors
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at play.templates.TemplateLoader.getAllTemplate(TemplateLoader.java:204)
at play.Play.preCompile(Play.java:590)
at play.Play.init(Play.java:299)
at play.server.Server.main(Server.java:158)

Tested with a clean app setup with the following configuration.

**dependencies.yml**

# Application dependencies

require:
- play -> crud
- faster-groovy-templates -> faster-groovy-templates

repositories:
- My modules:
type: local
artifact: ${application.path}/my-modules/[module]
contains:
- faster-groovy-templates