谷物清洁不起作用 [英] Grails clean doesn't work

查看:50
本文介绍了谷物清洁不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Grails -2.0.1,并且尝试运行应用程序时,我发现了NoClassDefFoundError:

I'm using Grails -2.0.1 and when trying to run an app, I find a NoClassDefFoundError :

错误2012-10-16 15:24:25,301 [http-bio-8080-exec-9]错误error.GrailsExceptionResolver-处理请求时发生NoClassDefFoundError:[GET]/workstation/track/computerName/login/MacOSX/真实/用户名

Error 2012-10-16 15:24:25,301 [http-bio-8080-exec-9] ERROR errors.GrailsExceptionResolver - NoClassDefFoundError occurred when processing request: [GET] /workstation/track/computerName/login/MacOSX/true/username

无法初始化类workstation.server.TrackController.Stacktrace如下:消息:创建名称为"workstation.server.TrackController"的Bean时出错:实例化Bean失败;嵌套的异常是java.lang.NoClassDefFoundError:无法初始化类workshop.server.TrackController线|方法->> 886 |java.util.concurrent.ThreadPoolExecutor $ Worker

Could not initialize class workstation.server.TrackController. Stacktrace follows: Message: Error creating bean with name 'workstation.server.TrackController': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class workstation.server.TrackController Line | Method ->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

|908 |跑进 ''^ 680 |跑步 ..在java.lang.Thread

| 908 | run in '' ^ 680 | run . . in java.lang.Thread

我无法弄清楚这个错误,我是否尝试执行grails -clean(希望再次运行).原来清理不起作用

I couldn't figure out this error do I tried doing a grails -clean( in the hope of running again). Turns out the clean does not work

错误:plugin-list-grailsCentral.xml:29227:22:XML文档结构必须在同一实体内开始和结束.另外,在grails目录中也找不到此XML.

Error: plugin-list-grailsCentral.xml:29227:22: XML document structures must start and end within the same entity. Also, did not find this XML in the grails directory.

有任何线索吗?谁能帮我清洁为什么不起作用?

Any clues anyone? Could anyone help me as to why the clean won't work?

推荐答案

尝试在清理后删除.grails目录.这可以解决很多问题,尤其是在插件方面.

Try deleting .grails dir after the clean. This can fix a lot of problems, especially when it comes to plugins.

这篇关于谷物清洁不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆