Can no longer run grails application
I don't have any idea what could have caused this. The application ran the other day, but not today. I have added code the project, but none of it is actually used. The application is pretty much hello world. (I've only started playing with jetgroovy and grails.)
I updated to the 1.1beta, but have the same result. The class GroovyStarter does indeed exist. What can I do to track down the problem? Thanks!
请先登录再写评论。
Oh, I should mention that I of course created a new project and that also cannot run.
Hello Barry,
Does the application start from the command line?
Barry,
Could you explain what is the strange jar is it: Q:\devtools\groovy\grails-1.0-RC4/lib/groovy-starter.jar? In case of RC4 there must be something like "groovy-all-1.6-beta-1-SNAPSHOT.jar". There GroovyStarter class is placed.
Didn't you change some library dependencies in properies of your module?
No, it does not run from the command line. I just noticed that the groovy.jar is not in the classpath. I am running via the idea grails-application target. If this problem was only for the 1.1beta it would make some sense, but I had the problem with a 1.0x plugin that was working at some point.
I will do a complete reinstall of idea along with clearing all plugins and try again.
I think, it's not necessary to reinstall IDEA. What about wrong jar in classpath? May be, it's elder version legacy? :)
I can't explain any of the dependencies on the command line. I'm just running using the jetgroovy run-configuration. I don't think it has to do with an old version of jetgroovy since I got this problem before trying to upgrade to 1.1beta.
But I will try a full clean version of idea and clean version of jetgroovy. Even though I won't understand why, that will probably fix the problem.
Ok, before you reinstall IDEA, look please, what jars are placed in your GRAILS global library. Is groovy-starter.jar placed there?
groovy-starter.jar is not in the GRAILS library. But GroovyStarter is included in the groovy-1.6.jar. Looking at the installation directory for grails-1.0-rc4, it does not contain any groovy-starter.jar, only the groovy-1.6.jar. And no groovy-1.6*.jar is being included in the command line generated by the grails-application run configuration.
Looking at the groovy-start.conf, it has load statements that would seem be indicating that grails libraries are loaded by some other mechanism after the JVM is started. Could the problem be that one or some of the variables in that file are getting set correctly?
(Sorry for the long lines. I keep forgetting to wrap explicitly to account for the
wide initial post.)
Did this every get resolved? I'm getting the same error today. I've got Groovy 1.5.4 and Grails 1.0 and the latest JetGroovy.
So, could you look for groovy-all*.jar file in your GRAILS_HOME directory? In case of grails-1.0 it must be groovy-all-1.5.4.jar.
Actually, org.codehaus.groovy.tools.GroovyStarter class must be placed there.
It has been resolved for me. But I did do a clean install of Idea and also cleaned out my local plugin directory.
Very old Problem is still happening:
Same problem here with IDEA 12.0.1 and Grails 2.1.3.
Grails 2.1.3 and groovy-all-1.8.8.jar are on the classpath.
See also Bug IDEA-79452