History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1588
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Pascal Grange
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

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

Created: 05/Sep/07 11:32 AM   Updated: 14/Mar/08 07:35 AM
Component/s: None
Affects Version/s: 0.6
Fix Version/s: 1.0.2

Time Tracking:
Not Specified

File Attachments: 1. Text File GRAILS-1588-ClassNotFoundException-GrailsScriptRunner.patch (0.5 kb)

Environment: x86, Linux, Ubuntu


 Description  « Hide
$> 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)

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Pascal Grange - 10/Sep/07 04:21 AM
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.


Chad McHenry - 16/Jan/08 01:50 PM
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).


Fabrizio Pastore - 14/Mar/08 07:06 AM
This fault is still affecting grails version 1.0.1 under linux (Ubuntu 7.10)

Fabrizio


Graeme Rocher - 14/Mar/08 07:35 AM
Thanks for the patch