2008-12-28 88 views
1

我做了grails clean,然後當我通過grails run-app運行時,應用程序從未啓動,並且以下內容被反覆顯示(永遠持續下去,停留在某種循環中)。grails clean後我無法運行應用程序

我在Windows XP上運行Grails 1.0.4,Java 1.6。

Grails以某種方式卡在無效配置中。任何想法如何恢復它?

[groovyc] Compiling 3 source files to C:\Documents and Settings\Steve\.grails\1.0.4\projects\myproject\classes 
    [javac] Compiling 3 source files to C:\Documents and Settings\Steve\.grails\1.0.4\projects\myproject\classes 
2008-12-28 10:40:27.549:/myproject:INFO: Destroying Spring FrameworkServlet 'grails' 
[6688] spring.GrailsWebApplicationContext Closing org.co[email protected]1c3c6d8: display name [org.co[email protected]1c3c6d8]; startup date [Sun Dec 28 10:40:23 PST 2008]; parent: o[email protected]93912f 
2008-12-28 10:40:27.549:/myproject:INFO: Shutting down log4j 
    [groovyc] Compiling 3 source files to C:\Documents and Settings\Steve\.grails\1.0.4\projects\myproject\classes 
    [javac] Compiling 3 source files to C:\Documents and Settings\Steve\.grails\1.0.4\projects\myproject\classes 
2008-12-28 10:40:27.877::INFO: jetty-6.1.12 
2008-12-28 10:40:27.892::INFO: No Transaction manager found - if your webapp requires one, please configure one. 
2008-12-28 10:40:27.970:/myproject:INFO: Set web app root system property: 'myproject-development-0.1' = [C:\dev\myproject\web-app] 
2008-12-28 10:40:27.970:/myproject:INFO: Initializing log4j from [file:C:\Documents and Settings\Steve/.grails/1.0.4/projects/myproject/resources/log4j.properties] 
2008-12-28 10:40:27.970:/myproject:INFO: Initializing Spring root WebApplicationContext 
[7297] spring.GrailsWebApplicationContext Refreshing org.co[email protected]1ada1e0: display name [org.co[email protected]1ada1e0]; startup date [Sun Dec 28 10:40:27 PST 2008]; parent: o[email protected]18b24cb 
[7297] spring.GrailsWebApplicationContext Bean factory for application context [org.co[email protected]1ada1e0]: org.s[email protected]1cf6930 
2008-12-28 10:40:27.299:/myproject:INFO: Initializing Spring FrameworkServlet 'grails' 
2008-12-28 10:40:27.314::INFO: Started [email protected]:8080 

回答

5

好的,我追查下來。我有一個完全註釋掉的單個.java文件。就Java而言,這是100%合法的,但顯然Grails無法處理它。 Grails必須假定任何.java都會有相應的.class文件。由於該文件不包含Java代碼,因此不會生成相應的類文件。

後續:這已被固定在2.0-M2,見GRAILS-3763

+1

我想這可能是很好的添加JIRA(http://jira.codehaus.org/browse/GRAILS)在爲此(如果一個不存在) – Chii 2009-01-03 03:27:30