[1.2.3] Can not precompile (and package as war)

63 views
Skip to first unread message

Neoh59

unread,
Dec 5, 2011, 12:05:05 PM12/5/11
to play-fr...@googlegroups.com
Hi all,

I had a problem with Play! 1.2 / Hibernate / PostgreSQL.
I found the solution here :
https://groups.google.com/d/topic/play-framework/OCis5le57tU/discussion

But know, I'm not able to precompile (and package as a war). But I can run the app, and there is no error in Eclipse.

Here is the log, if someone can help me :

18:01:17,709 INFO  ~ Precompiling ...
18:01:18,154 ERROR ~

@68j1dlpie
Cannot start in PROD mode with errors

Compilation error (In /app/models/Intervention.java around line 47)
The file /app/models/Intervention.java could not be compiled. Error raised is :
Type cannot be resolved to a type

play.exceptions.CompilationException: Type cannot be resolved to a type
        at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompi
ler.java:246)
        at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Co
mpiler.java:672)
        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:516)

        at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.jav
a:278)
        at play.classloading.ApplicationClassloader.getAllClasses(ApplicationCla
ssloader.java:412)
        at play.Play.preCompile(Play.java:566)
        at play.Play.init(Play.java:291)
        at play.server.Server.main(Server.java:158)


Neoh59

unread,
Dec 6, 2011, 3:11:30 AM12/6/11
to play-fr...@googlegroups.com

OK. It's solved.

And I didn't do anything. :-o

I downloaded Play! 1.2.4 to test. But before, I tried again wiht Play! 1.2.3.
Perhaps my app "took advice of its pillow"


Reply all
Reply to author
Forward
0 new messages