|
|
|
I have tried following your steps, but cannot reproduce, everything compiles fine for me. Please could you attach a sample app that reproduces the problem
Here's the "grails bug-report"
(sorry about the previous version, I flubbed a filename and got an unrelated error) Sorry for the spurious attachments.
I am using Grails 1.0-RC2-SNAPSHOT from Oct 24. I was originally using Groovy 1.0 but as you can see in my terminal scrape, I have the same problems when using Groovy 1.1-rc-1 (the same version as the jar in Grails). Grails 0.5.6 works fine (in a separate new project). Thanks for your attention. Your attached bug report compiles fine for me on Mac OS X, so it looks like it may be a platform specific problem. What OS are you running?
I am trying this on various Linuxes, most notably
uname -a /etc/redhat-release java -version ant -version I just tried JDK 6 and it compiles! I guess I should have tried that right off, but with the previous bug report I didn't think about it. So future Linux users finding this, try a newer Java: java version "1.6.0_03" Thanks for your help, Graeme; sorry to waste your time. After my last comment, a message came on the users list that reminded me I've been seeing this doing almost anything in grails:
error: error reading /mnt/local/apps/grails/lib/readme.txt; error in opening zip file Apparently that was coming from javac. Removing readme.txt from the Grails installation allows Java 1.5 to work, too. Java 1.6 I guess just silently ignores it. Please (re)move lib/readme.txt from the Grails distribution, thanks! the readme.txt has already been removed. closing issue
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
In 0.5.6, I get this:
Running script /mnt/local/apps/grails/scripts/Compile.groovy
Compiling sources ...
[javac] Compiling 2 source files to /usr/local/users/jja/grails/jkl/web-app/WEB-INF/classes
and the classes do indeed show up.
In 1.0, javac is never called, and I get this before the compilation errors in the original report:
Running script /mnt/local/apps/grails/scripts/Compile.groovy
[mkdir] Created dir: /h/eol/jja/.grails/1.0-RC2-SNAPSHOT/projects/jjj/classes
Compiling 8 source files to /h/eol/jja/.grails/1.0-RC2-SNAPSHOT/projects/jjj/classes
error: error reading /mnt/local/apps/grails/lib/readme.txt; error in opening zip file
1 error
Further, as suggested on the users mailing list, I tried "grails clean" first but that doesn't help. In 1.0, there are never any classes put in ~/.grails or web-app/WEB-INF/classes.