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!

0
Avatar
Permanently deleted user

Oh, I should mention that I of course created a new project and that also cannot run.

0
Avatar
Permanently deleted user

Hello Barry,

Does the application start from the command line?

0
Avatar
Permanently deleted user

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?

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

I think, it's not necessary to reinstall IDEA. What about wrong jar in classpath? May be, it's elder version legacy? :)

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

Ok, before you reinstall IDEA, look please, what jars are placed in your GRAILS global library. Is groovy-starter.jar placed there?

0
Avatar
Permanently deleted user

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?

0
Avatar
Permanently deleted user

(Sorry for the long lines. I keep forgetting to wrap explicitly to account for the
wide initial post.)

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

It has been resolved for me. But I did do a clean install of Idea and also cleaned out my local plugin directory.

0
Avatar
Permanently deleted user

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

0

请先登录再写评论。