我在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)
答案 0 :(得分:1)
我的错误 - 当我编辑Config.groovy更改端口时,我意外地改变了行
grails.logging.jul.usebridge =在“jul”中加一个空格。
非常感谢cfrick