2008-12-28 19 views
1

J'ai fait un grails clean et ensuite quand je cours via grails run-app l'application ne démarre jamais et ce qui suit est affiché à plusieurs reprises (continue éternellement, coincé dans une sorte de boucle). Je cours Grails 1.0.4, Java 1.6 sur Windows XP.Après les grails nettoyer je ne peux pas courir-app

Grails est en quelque sorte coincé dans une configuration invalide. Une idée de comment le restaurer?

[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 

Répondre

5

D'accord, je l'ai retrouvé. J'ai eu un seul fichier .java qui a été complètement commenté. C'est 100% légal en ce qui concerne Java, mais apparemment Grails ne peut pas le gérer. Grails doit supposer que tout fichier .java aura un fichier .class correspondant. Comme le fichier ne contenait pas de code Java, il ne produisait aucun fichier de classe correspondant.

Suivi: Cela a été corrigé dans la version 2.0-M2, voir GRAILS-3763

+1

Je pense que ce serait peut-être bon d'ajouter un JIRA (http://jira.codehaus.org/browse/GRAILS) dans pour ça (si on n'en existe pas) – Chii