我们对应用程序进行了一些包路径更改。由于我们这样做并删除了所有编译错误并尝试执行run-app,因此应用程序完成了run-app,然后再次进行重新加载。
基本上它一次又一次地重新加载弹簧ui,弹簧安全核心和弹簧安全acl插件。 错误日志没有显示任何内容(它显示“未能创建一些引用约束”......总是失败...可能不是真正的原因) 应用程序编译成功 从控制台获取samle转储
[native2ascii] Converting 1 file from C:\Users\pd\.grails\1.3.7\projects\gra\plugins\spy-0.2\grails-app\i18n to C:\U
sers\pd\.grails\1.3.7\projects\gra\resources\plugins\spy-0.2\grails-app\i18n
[native2ascii] Converting 1 file from C:\Users\pd\.grails\1.3.7\projects\gra\plugins\spring-mobile-0.3\grails-app\i1
8n to C:\Users\pd\.grails\1.3.7\projects\gra\resources\plugins\spring-mobile-0.3\grails-app\i18n
[copy] Copying 1 file to C:\Users\pd\Documents\NetBeansProjects\gratrunk\gra\target\classes
[copy] Copied 2 empty directories to 2 empty directories under C:\Users\pd\.grails\1.3.7\projects\gra\resources
[copy] Copied 1 empty directory to 1 empty directory under C:\Users\pd\.grails\1.3.7\projects\gra\resources
[delete] Deleting directory C:\Users\pd\.grails\1.3.7\projects\gra\tomcat
Running Grails application..
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security UI ...
Configuring Spring Security ACL ...
Server running. Browse to http://localhost:8080/gra
[groovyc] Compiling 1 source file to C:\Users\pd\Documents\NetBeansProjects\gratrunk\gra\target\classes
[groovyc] Compiling 2 source files to C:\Users\pd\Documents\NetBeansProjects\gratrunk\gra\target\classes
[delete] Deleting directory C:\Users\pd\.grails\1.3.7\projects\gra\tomcat
Running Grails application..
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security UI ...
Configuring Spring Security ACL ...
Server running. Browse to http://localhost:8080/gra
[groovyc] Compiling 1 source file to C:\Users\pd\Documents\NetBeansProjects\gratrunk\gra\target\classes
[groovyc] Compiling 2 source files to C:\Users\pd\Documents\NetBeansProjects\gratrunk\gra\target\classes
Application context shutting down...
Application context shutdown.
Terminate batch job (Y/N)? y
C:\Users\pd\Documents\NetBeansProjects\gratrunk\gra>
答案 0 :(得分:0)
grails util中有一个编解码器类没有包说明符,并且在目标中重复编译,检查了目标文件夹并看到了许多codec.class条目。 将包名添加到类后,问题就消失了。 此致
答案 1 :(得分:0)
我遇到此问题的问题是文件的名称及其类名。
RunSteps.groovy
class RunStep { }