没有这样的属性:org for class:org.grails.plugins.log4jxml.Log4jConfigurationInitializer while setup grails 2.0.0

时间:2014-09-22 09:11:21

标签: grails-2.0

我正在跑步' grails war'我得到以下异常

|加载插件管理器时出错:无法创建类[Log4jXmlGrailsPlugin]的新实例! (注意:堆栈跟踪已被过滤。使用--ver 看到整个痕迹。) org.codehaus.groovy.grails.exceptions.NewInstanceCreationException:无法创建类[Log4jXmlGrailsPlugin]的新实例!         at _PluginDependencies_groovy $ _run_closure5_closure23.doCall(_PluginDependencies_groovy:178)         at _PluginDependencies_groovy $ _run_closure5_closure23.doCall(_PluginDependencies_groovy)         在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)         at _PluginDependencies_groovy $ _run_closure5.doCall(_PluginDependencies_groovy:176)         在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)         在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)         at 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)         at 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)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)         在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)         at 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)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)         在org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)         at 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)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)         在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)         at 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)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)         在org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)         at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)         在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)         在战争$ _run_closure1.doCall(War.groovy:38)         在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)         在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)         at 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)         at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)         at gant.Gant $ _dispatch_closure5.doCall(Gant.groovy:381)         at gant.Gant $ _dispatch_closure7.doCall(Gant.groovy:415)         at gant.Gant $ _dispatch_closure7.doCall(Gant.groovy)         在gant.Gant.withBuildListeners(Gant.groovy:427)         at gant.Gant.this $ 2 $ withBuildListeners(Gant.groovy)         at gant.Gant $ this $ 2 $ withBuildListeners.callCurrent(Unknown Source)         在gant.Gant.dispatch(Gant.groovy:415)         在Gant.Gant.this $ 2 $ dispatch(Gant.groovy)         at gant.Gant.invokeMethod(Gant.groovy)         at gant.Gant.executeTargets(Gant.groovy:591)         at gant.Gant.executeTargets(Gant.groovy:590) 引起:groovy.lang.MissingPropertyException:没有这样的属性:org for class:org.grails.plugins.log4jxml.Log4jConfigurationInitializer 可能的解决方案:log         在org.grails.plugins.log4jxml.Log4jConfigurationInitializer.init(Log4jConfigurationInitializer.groovy:21)         在org.grails.plugins.log4jxml.Log4jConfigurationInitializer。(Log4jConfigurationInitializer.groovy:12)         在Log4jXmlGrailsPlugin。(Log4jXmlGrailsPlugin.groovy:16)         ......还有53个 |错误加载插件管理器时出错:无法创建类[Log4jXmlGrailsPlugin]的新实例!

那是什么' org'属于Log4jConfigurationInitializer类的属性

2 个答案:

答案 0 :(得分:0)

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

只需删除它就会消失!

答案 1 :(得分:0)

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