【问题标题】:No such property: org for class: org.grails.plugins.log4jxml.Log4jConfigurationInitializer while setup grails 2.0.0没有这样的属性: org 类: org.grails.plugins.log4jxml.Log4jConfigurationInitializer 而设置 grails 2.0.0
【发布时间】:2023-03-22 19:35:01
【问题描述】:

当我运行“grails war”时,我得到了以下异常

|错误加载插件管理器时出错:无法创建类 [Log4jXmlGrailsPlugin] 的新实例! (注意:堆栈跟踪已被过滤。使用 --ver bose 查看整个轨迹。) org.codehaus.groovy.grails.exceptions.NewInstanceCreationException:无法创建类 [Log4jXmlGrailsPlugin] 的新实例! 在 _PluginDependencies_groovy$_run_closure5_closure23.doCall(_PluginDependencies_groovy:178) 在 _PluginDependencies_groovy$_run_closure5_closure23.doCall(_PluginDependencies_groovy) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 在 _PluginDependencies_groovy$_run_closure5.doCall(_PluginDependencies_groovy:176) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) 在 org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 在 _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:60) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) 在 org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81) 在 org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128) 在 _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy:92) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) 在 org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81) 在 org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128) 在 War$_run_closure1.doCall(War.groovy:38) 在 org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) 在 org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) 在 org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) 在 org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) 在 gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) 在 gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) 在 gant.Gant$_dispatch_closure7.doCall(Gant.groovy) 在 gant.Gant.withBuildListeners(Gant.groovy:427) 在 gant.Gant.this$2$withBuildListeners(Gant.groovy) 在 gant.Gant$this$2$withBuildListeners.callCurrent(未知来源) 在 gant.Gant.dispatch(Gant.groovy:415) 在 gant.Gant.this$2$dispatch(Gant.groovy) 在 gant.Gant.invokeMethod(Gant.groovy) 在 gant.Gant.executeTargets(Gant.groovy:591) 在 gant.Gant.executeTargets(Gant.groovy:590) 引起:groovy.lang.MissingPropertyException:没有这样的属性:org 类:org.grails.plugins.log4jxml.Log4jConfigurationInitializer 可能的解决方案:日志 在 org.grails.plugins.log4jxml.Log4jConfigurationInitializer.init(Log4jConfigurationInitializer.groovy:21) 在 org.grails.plugins.log4jxml.Log4jConfigurationInitializer.(Log4jConfigurationInitializer.groovy:12) 在 Log4jXmlGrailsPlugin.(Log4jXmlGrailsPlugin.groovy:16) ... 53 更多 | Error 加载插件管理器时出错:无法创建类 [Log4jXmlGrailsPlugin] 的新实例!

Log4jConfigurationInitializer 类中的“org”属性是什么

【问题讨论】:

    标签: grails-2.0


    【解决方案1】:

    这是因为你在项目插件中有一个log4j-xml插件。

    只要删除它就会消失!

    【讨论】:

      【解决方案2】:

      log4j-xml 插件是一个适用于 grails 1.3.x 版本的有效且有用的插件。因此,具有用于记录行为的 log4j.xml 文件的应用程序会发现此插件很有用。我不认为这是解决上述问题的正确方法。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-11-06
        • 2011-04-15
        • 2016-08-28
        • 1970-01-01
        • 1970-01-01
        • 2012-12-25
        • 2016-12-01
        • 2014-07-14
        相关资源
        最近更新 更多