Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0-RC1, 2.0-RC3
-
Fix Version/s: 2.0-RC2
-
Component/s: Build System, Project infrastructure
-
Labels:None
-
Environment:Windows 7, jdk 1.6.0_27, grails 2.0.0.BUILD-SNAPSHOT, build 1554
Description
When trying to compile newly created app, grails throws java.lang.NoClassDefFoundError. If I try compiling second time, compilation passes without error.
Steps to reproduce:
grails create-app sometotallynewapp cd sometotallynewapp grails compile
Last statement produces:
| Error Fatal error during compilation java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy (Use --stacktrace to see the full trace)
Trying to compile second time, compilation passes.
To get the error again, one must delete ~/.grails/2.0.0.BUILD-SNAPSHOT/projects/sometotallynewapp. After that, above steps will produce the same error again.
This is already fixed by https://github.com/grails/grails-core/commit/9ac1e3f6b8b8d6b615c7bf9d51a31ccad8167722