运行应用程序中的Grails警告/错误 [英] Grails Warnings/Errors during run-app

查看:104
本文介绍了运行应用程序中的Grails警告/错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中尝试运行我的Google App Engine / Grails测试应用程序时,我目前看到以下警告。


  1. 警告,目标导致名称覆盖名称startLogging

  2. 警告:C:\ Users \ Some Person.grails\1.2.0\projects\test-grails\plugins\app -engine-0.8.8\\grails-app \ conf \spring找不到。

  3. 警告:C:\ Users \ Some Person.grails\1.2.0\\ \\ project \test-grails\\plugins\app-engine-0.8.8\grails-app\conf找不到。

  4. 警告:C:\ Users \找不到一些Person.grails \1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf\hibernate。

以下是控制台的输出:

 基本目录:C:\ Users \ Some Person \workspace\test-grails 
解决依赖关系...
在1160ms解决的依赖关系。
运行脚本C:\grails-1.2.0\scripts\RunApp.groovy
设置为开发的环境
警告,目标导致名称覆盖name startLogging
[groovyc ]将1个源文件编译为C:\ Users \ Some Person \workspace\test-grails\web-app\WEB-INF\classes
[copy]将1个文件复制到C:\\ \\ Users \ Some Person \.grails\1.2.0\projects\test-grails
[copy]将1个文件复制到C:\ Users \ Some Person \workspace\test- grails \web-app\WEB-INF
配置AppEngine的持久性
[复制]警告:C:\ Users \ Some Person \.grails\1.2.0\projects\\ \\ test-grails \plugins \app-engine-0.8.8\\grails-app\conf\spring未找到。
[复制]警告:C:\ Users \ Some Person \.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\\grails找不到-app \conf。
[复制]警告:C:\ Users \ Some Person \.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\\grails未找到-app \conf\hibernate。

使用Spring Tools Suite(STS)创建Grails项目并安装应用程序后出现此错误引擎插件grails install-plugin app-engine。之前,我安装了Grails项目正常运行的app-engine插件。



任何想法如何解决这些警告?

解决方案

警告1是由Grails脚本中的问题引起的。我看了一下JIRA,但看不到有关它的错误报告。我不认为它会导致任何副作用。

警告2,3和4指的是app-engine插件内的文件夹。
即使他们很烦人,他们也不会造成任何伤害。
您可以做的最好的事情就是针对应用引擎插件提出JIRA请求作者添加这些文件夹以停止警告。

I'm currently seeing the warnings below when trying to run my Google App Engine/Grails test app in Eclipse.

  1. Warning, target causing name overwriting of name startLogging
  2. Warning: C:\Users\Some Person.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf\spring not found.
  3. Warning: C:\Users\Some Person.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf not found.
  4. Warning: C:\Users\Some Person.grails\1.2.0\projects\test-grails\plugins\app-engine-0.8.8\grails-app\conf\hibernate not found.

Here is the output from the console:

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.

I get this error after creating a Grails project with Spring Tools Suite (STS) and then installing the app-engine plugin "grails install-plugin app-engine". Before, I install the app-engine plugin the Grails project runs correctly.

Any ideas how to resolve these warnings?

解决方案

Warning 1 is caused by an issue in Grails' scripts. I had a look in JIRA but couldn't see a bug report relating to it. I do not think it causes any side effects.

Warnings 2,3 and 4 are referring to folders inside the app-engine plugin. Even though they are annoying they will not be doing any harm. The best thing you could do is raise a JIRA against the app-engine plugin requesting the author to add those folders to stop the warnings.

这篇关于运行应用程序中的Grails警告/错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆