0

我正在使用 GGTS 3.6.4。我尝试像往常一样包含一个类,并且所有依赖项都崩溃了。我试图清理项目,刷新它的依赖项并重新编译,但我所拥有的只是下面的错误。

运行项目没用:IDE 只是提醒我“存在所需项目中的错误”,然后启动突然停止,没有任何警报。

如图所示,所有服务都在警告它们“无法解析类”。还有什么可以检查的?

在此处输入图像描述

编辑

行动 #1 : refresh-dependencies> compile:

  • refresh-dependencies在我的控制台中生成|Configuring classpath |Dependencies refreshed
  • compile给了我我们可以在图片中看到的警报

行动 #2 : clean-all> refresh-dependencies> compile:

  • clean-all生成|Application cleaned.
  • refresh-dependencies生成|Installing ([MANY PLUGINS HERE!!!]) |Dependencies refreshed
  • compile生成|Compiling N source files然后有一个错误Compilation error: startup failed,第一个是unable to resolve class Transactional. 这第一个错误可以包含所有编译过程吗?然后它给我带来了图片中的警报。

动作#3grails run-app --verbose通过 DOS 提示符 (Win7) 生成:

C:\Grails_IDE\workspace\vs3>grails run-app --verbose
Base Directory: C:\Grails_IDE\workspace\vs3
| Environment set to development.
| Error Error executing script RunApp: _GrailsClasspath_groovy$_run_closure1
java.lang.NoClassDefFoundError: _GrailsClasspath_groovy$_run_closure1
        at _GrailsClasspath_groovy.run(_GrailsClasspath_groovy:39)
        at _GrailsClasspath_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsEvents_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsEvents_groovy.run(_GrailsEvents_groovy:32)
        at _GrailsEvents_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsWar_groovy.run(_GrailsWar_groovy:27)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsRun_groovy.run(_GrailsRun_groovy:28)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at RunApp.run(RunApp.groovy:25)
        at RunApp$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
        at gant.Gant.prepareTargets(Gant.groovy:607)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInst
ance(GrailsScriptRunner.java:769)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(G
railsScriptRunner.java:571)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCa
ching(GrailsScriptRunner.java:470)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsS
cript(GrailsScriptRunner.java:414)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(Grai
lsScriptRunner.java:378)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRu
nner.java:226)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Refl
ectiveInterceptor.java:1254)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
sStarter.java:235)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
er.java:263)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Refl
ectiveInterceptor.java:1254)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
sStarter.java:235)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
er.java:263)
Caused by: java.lang.ClassNotFoundException: _GrailsClasspath_groovy$_run_closur
e1
        at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:175)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:147)
        at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(Gra
ilsRootLoader.java:51)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 72 more
| Error Error executing script RunApp: _GrailsClasspath_groovy$_run_closure1

C:\Grails_IDE\workspace\vs3>
4

0 回答 0