Closed graemerocher closed 9 years ago
tkassila said: After several another tryings, I downloaded 1.1.1 .zip version. After that all above symptoms were gone. The ''reason' earlier errors was that I downloaded at first time .tar/gz package file. Now grails help and grails create-app, run-app are working normally.
Original Reporter: tkassila Environment: Not Specified Version: 1.1.1 Migrated From: http://jira.grails.org/browse/GRAILS-4564
Because grails gave message in style: class not found, I added into startGrails.bat:
set STARTER_CLASSPATH=%GRAILS_HOME%\dist\grails-bootstrap-1.1.1.jar;%GRAILS_HOME%\lib\groovy-all-1.6.3.jar;%GRAILS_HOME%\lib\gant_groovy1.6-1.6.0.jar;%GRAILS_HOME%\dist\grails-core-1.1.1.jar;%GRAILS_HOME%\lib\spring-2.5.6.jar;%GRAILS_HOME%\dist\grails-web-1.1.1.jar;%GRAILS_HOME%\lib\servlet-api-2.5-6.1.14.jar;%GRAILS_HOME%\lib\jcl-over-slf4j-1.5.6.jar;%GRAILS_HOME%\lib\slf4j-api-1.5.6.jar;%GRAILS_HOME%\lib\slf4j-log4j12-1.5.6.jar;%GRAILS_HOME%\lib\log4j-1.2.15.jar;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;
and it was:
set STARTER_CLASSPATH=%GRAILS_HOME%\lib\groovy-all-1.6.3.jar;%GRAILS_HOME%\dist\grails-bootstrap-1.1.1.jar
After corrections, it shows still an error:
with command: grails help and grails create-app, it gives same exceptions:
C:\java\os\grails-1.1.1>grails help Welcome to Grails 1.1.1 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: C:\java\os\grails-1.1.1
Base Directory: C:\java\os\grails-1.1.1 Error executing script Help: Cannot dynamically add URLs to GrailsScriptRunner's class loader - make sure that it is loaded by Groovy's RootLoader or a sub-clas s. java.lang.RuntimeException: Cannot dynamically add URLs to GrailsScriptRunner's class loader - make sure that it is loaded by Groovy's RootLoader or a sub-class . at org.codehaus.groovy.grails.cli.GrailsScriptRunner.addUrlsToRootLoader (GrailsScriptRunner.java:796) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsS cript(GrailsScriptRunner.java:336) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(Grai lsScriptRunner.java:279) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRu nner.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail sStarter.java:187) at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart er.java:212)
Grails_home has been set and into path-value before above command line commands. All another path and classpath valules has beend stripped away before executing grails command.
(I remember that same kind problems happend with grails 1.1. Those errors became corrected after replacing better and bigger groovy .jar (embedded) and perhaps also gant .jar file. But these kind of grails 1.1.1 errors!)
BTW: A help to find classes is an jarscan application, which can found at: http://www.inetfeedback.com/jarscan/