2012-03-13 45 views
0

我們已經對我們的應用程序做了一些程序包路徑更改。由於我們這樣做並刪除了所有編譯錯誤並嘗試執行run-app,因此應用程序會完成run-app,然後再次執行重新加載。grails應用程序在運行應用程序完成後自動重新加載

基本上它重新加載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> 

回答

1

確保你沒有任何的源文件,在未來last modified日期(有時會發生當您有分佈式團隊)

+0

我找到了真正的原因..添加它作爲答案..謝謝... – 2012-03-15 18:28:02

0

在grails util中有一個編解碼器類,它沒有包說明符,並且正在目標文件中重複編譯,檢查了目標文件夾並看到了許多codec.class條目。 將包名稱添加到課程後,問題就消失了。 Regards

0

我對這個問題的問題是一個文件及其類名稱的不同名稱。

RunSteps.groovy 

class RunStep { } 
相關問題