运行应用程序中的Grails警告/错误
在Eclipse中尝试运行我的Google App Engine/Grails测试应用程序时,我正在看到以下警告。运行应用程序中的Grails警告/错误
- 警告,目标造成打着打着覆盖startLogging会
- 警告:C:\用户\有些Person.grails \ 1.2.0 \项目\测试的Grails \插件\应用引擎 - 0.8.8 \未找到grails-app \ conf \ spring。
- 警告:C:\用户\有些Person.grails \ 1.2.0 \项目\测试的Grails \插件\应用引擎 - 0.8.8 \的grails-app \ CONF没有找到。
- 警告:C:\用户\有些Person.grails \ 1.2.0 \项目\测试的Grails \插件\应用引擎 - 0.8.8 \的grails-app \的conf \冬眠找不到。
下面是从控制台输出:
Base Directory: C:\Users\Some Person\workspace\test-grails
Resolving dependencies...
Dependencies resolved in 1160ms.
Running script C:\grails-1.2.0\scripts\RunApp.groovy
Environment set to development
Warning, target causing name overwriting of name startLogging
[groovyc] Compiling 1 source file to C:\Users\Some Person\workspace\test-grails\web-app\WEB-INF\classes
[copy] Copying 1 file to C:\Users\Some Person\.grails\1.2.0\projects\test-grails
[copy] Copying 1 file to C:\Users\Some Person\workspace\test-grails\web-app\WEB-INF
Configuring persistence for AppEngine
[copy] Warning: C:\Users\Some Person\.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf\spring not found.
[copy] Warning: C:\Users\Some Person\.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf not found.
[copy] Warning: C:\Users\Some Person\.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf\hibernate not found.
我得到这个错误创建与Spring工具套件(STS)一个Grails项目,然后在安装应用程序引擎插件“的Grails安装,插件后应用程序引擎”。之前,我安装了Grails项目正确运行的app-engine插件。
任何想法如何解决这些警告?
警告1是由Grails的脚本中的问题引起的。我看了一下JIRA,但看不到有关它的错误报告。我不认为它会导致任何副作用。
警告2,3和4指的是应用程序引擎插件内的文件夹。 即使他们很烦人,他们也不会造成任何伤害。 您可以做的最好的事情是提出一个JIRA对抗应用程序引擎插件,请求作者添加这些文件夹以停止警告。
谢谢。我会考虑为它记录一个JIRA项目。 – 2010-01-25 16:35:05
在此处登录:http://jira.codehaus.org/browse/GRAILSPLUGINS-1889 – 2010-01-26 03:18:33
你做了与grails create-app
创建应用程序,对不对?这应该在grails项目根目录下创建了conf
(和其下的hibernate
和spring
)文件夹。
如果您正在运行IDE,那么有可能IDE不会“看到”文件夹,因为它们是空的,这本身也是一个错误。
我使用了Spring Tools Suite来创建grails项目。该项目运行良好,直到我安装了appengine插件“grails install-plugin app-engine”。这是当我开始看到上面的警告。 – 2010-01-24 20:51:25
在截稿时,不要使用Spring工具套件创建Grails应用程序,因为:1)它仍然是新的,不够成熟; 2)它改变了一些默认设置,如果你混的命令行执行导致许多问题,特别是。
使用Netbeans或IntelliJ。为了创建Grails应用程序,我从Eclipse切换到Netbeans,即使我是Eclipse的大力支持者。
你试过把它放到另一个目录吗?也许它在“泰勒利斯”的空间有问题...... – Karussell 2010-01-24 20:01:09
不,我没有尝试过,但我也没有在.. \ grails-app中的“conf”目录。我很确定这是问题所在,但我不确定如何创建它们。 – 2010-01-24 20:03:58
相关的JIRA问题:http://jira.codehaus.org/browse/GRAILSPLUGINS-1889 – 2010-01-26 02:33:15