【问题标题】:Grails - run-app errorGrails - 运行应用程序错误
【发布时间】:2015-02-10 18:46:58
【问题描述】:

我已经在 CentOS 上安装了 Grails。我创建了可以运行的应用程序。

但是当我运行run-app 时,我收到以下错误。我还没有做任何更改,只是创建了应用程序。

grails run-app -Dserver.port=8090

Error Error packaging application: Error loading Config.groovy: No signature of method: groovy.util.ConfigObject.ju() is applicable for argument types: (java.lang.Boolean) values: [true]
Possible solutions: is(java.lang.Object), any(), dump(), get(java.lang.Object), put(java.lang.Object, java.lang.Object), max(groovy.lang.Closure) (Use --stacktrace to see the full trace)

Running with stacktrace gives

at _GrailsPackage$_run_closure2.doCall(_GrailsPackage.groovy:48)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
    at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
    at RunApp$_run_closure1.doCall(RunApp.groovy:28)

【问题讨论】:

  • 你使用的是什么版本的grails和java?
  • 还有grep ju grails-app/conf/*.groovy,以防你已经做了一些改变;将ju() 放入例如Config.groovy 会导致同样的错误。
  • [centos64 ~]$ java -version openjdk version "1.8.0_31" OpenJDK Runtime Environment (build 1.8.0_31-b13) OpenJDK 64-Bit Server VM (build 25.31-b07, mixed mode) [ centos64 ~]$ grails -version Grails版本:2.4.4

标签: grails


【解决方案1】:

我的错误 - 当我编辑 Config.groovy 以更改端口时,我不小心更改了行

grails.logging.jul.usebridge = true 通过在“jul”中放置一个空格。

非常感谢 cfrick

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-02-12
    • 2014-07-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多