javaspringgrailsspring-loaded

Grails 2.0.4 Error opening zip file or JAR manifest missing Springloaded


I've just downloaded Grails 2.0.4 and extracted it to /opt/grails/grails-2.0.4/ and made sure that the GRAILS_HOME environment variable is correct. But whenever I try run the "grails" command, I get the following error:

Error opening zip file or JAR manifest missing : /opt/grails/grails-2.0.4/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.2.jar
Error occurred during initialization of VM
agent library failed to init: instrument

I don't understand what the problem could be. I've been using Grails-2.0.1 for months successfully in exactly the same way on exactly the same machine. I've tried re-downloading the grails-2.0.4.zip file in the hopes that it was a problem with the archive, but that didn't help. I also copied springloaded-core-1.0.2.jar from the grails-2.0.1/ directory, but that just caused another set of errors.

Any idea what could be going wrong?


Solution

  • It looks like your PATH has not been updated correctly. In other words, you are running the 2.0.1 grails script with GRAILS_HOME set to 2.0.4. You can tell because the version of spring loaded reported in the error message - 1.0.2 - is not the one required by Grails 2.0.4 (to help others diagnose this issue).