Grails

java.lang.ClassNotFoundException: org.codehaus.groovy.grails.cli.GrailsScriptRunner

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 0.6
  • Fix Version/s: 1.0.2
  • Component/s: None
  • Labels:
    None
  • Environment:
    x86, Linux, Ubuntu

Description

$> grails
java.lang.ClassNotFoundException: org.codehaus.groovy.grails.cli.GrailsScriptRunner
at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:143)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:115)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:91)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)

Activity

Hide
Pascal Grange added a comment -

The problem appears when you have a trailing / at the end of the definition of GRAILS_HOME.

GRAILS_HOME=/opt/grails-0.6/ will not work.
GRAILS_HOME=/opt/grails-0.6 will work.

Show
Pascal Grange added a comment - The problem appears when you have a trailing / at the end of the definition of GRAILS_HOME. GRAILS_HOME=/opt/grails-0.6/ will not work. GRAILS_HOME=/opt/grails-0.6 will work.
Hide
Chad McHenry added a comment -

This patch handles the specific GRAILS_HOME trailing-slash problem on unix and cygwin. The same problem may affect other environment-specified directories.

This patch does not "fix" the problem on windows if using the cmd shell (instead of cygwin), as the .bat file already handles a trailing '\', and the only reason there should be a trailling '/' is when using cygwin (which this patch does handle).

Show
Chad McHenry added a comment - This patch handles the specific GRAILS_HOME trailing-slash problem on unix and cygwin. The same problem may affect other environment-specified directories. This patch does not "fix" the problem on windows if using the cmd shell (instead of cygwin), as the .bat file already handles a trailing '\', and the only reason there should be a trailling '/' is when using cygwin (which this patch does handle).
Hide
Fabrizio Pastore added a comment -

This fault is still affecting grails version 1.0.1 under linux (Ubuntu 7.10)

Fabrizio

Show
Fabrizio Pastore added a comment - This fault is still affecting grails version 1.0.1 under linux (Ubuntu 7.10) Fabrizio
Hide
Graeme Rocher added a comment -

Thanks for the patch

Show
Graeme Rocher added a comment - Thanks for the patch
Hide
Graeme Rocher added a comment -

Bulk closing bunch of resolved issues

Show
Graeme Rocher added a comment - Bulk closing bunch of resolved issues

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: