geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <dsundst...@gluecode.com>
Subject Re: Assembly Build Fails: GBeanMBean can't set attribute for Log4jService
Date Tue, 23 Nov 2004 20:42:12 GMT
It looks like you are attempting to deploy a pre M3 plan into a post M3  
build.  About a week before M3 we removed the "rootLoggerLevel"  
attribute from the logging code, since it was not always honored by  
Log4j.  Instead of setting attributes from the plan, all of the logging  
behavior is now controlled from log4j properties files located in the  
"var/log" directory.

-dain

--
Dain Sundstrom
Chief Architect
Gluecode Software
310.536.8355, ext. 26

On Nov 23, 2004, at 12:19 PM, Azfar Kazmi wrote:

> JDK 1.4.2_04, Windows XP SP1/2, Maven 1.0.1
>
> I am not sure why the attribute rootLoggerLevel for Log4jService is
> being set during build!. Regardless, it is failing being neither
> GBeanMBeanAttribute.special nor GBeanMBeanAttribute.persistent and the
> GBean (logger) is offline. See line 330. Attempt to trace it to the
> origin failed when I could not locate
> ConfigurationType/ConfigurationDocument xbeans!
>
> --------------
> BUILD FAILED
> File......  
> D:\eclipse\workspace\incubator-geronimo\modules\assembly\maven.xml
> Element... bootstrap:bootstrap
> Line...... 202
> Column.... 15
> GBeanData could not be loaded into the GBeanMBean
> com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> [rebuild] --  
> D:\eclipse\workspace\incubator-geronimo\modules\assembly\maven.xml: 
> 202:
> 15: <bootstrap:bootstrap> GBeanData could not be loaded into the  
> GBeanMBean
>         at com.werken.werkz.Goal.fire(Goal.java:646)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 
> 671)
>         at  
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:488)
>         at org.apache.maven.cli.App.main(App.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> org.apache.commons.jelly.JellyTagException:
> D:\eclipse\workspace\incubator-geronimo\modules\assembly\maven.xml: 
> 202:15:
> <bootstrap:bootstrap> GBeanData
>  could not be loaded into the GBeanMBean
>         at  
> org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java: 
> 243)
>         at  
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java: 
> 145)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>         at  
> com.werken.werkz.jelly.PreGoalTag$1.firePreGoal(PreGoalTag.java:87)
>         at com.werken.werkz.Goal.firePreGoalCallbacks(Goal.java:691)
>         at com.werken.werkz.Goal.fire(Goal.java:616)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>         at com.werken.werkz.Goal.attain(Goal.java:573)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 
> 671)
>         at  
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:488)
>         at org.apache.maven.cli.App.main(App.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
> GBeanData could not be loaded into the GBeanMBean
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:184)
>         at  
> org.apache.geronimo.deployment.DeploymentContext.addGBean(DeploymentCon 
> text.java:159)
>         at  
> org.apache.geronimo.deployment.service.GBeanHelper.addGbean(GBeanHelper 
> .java:48)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfig 
> uration(ServiceConfigBuilder.java:116)
>         at  
> org.apache.geronimo.deployment.Bootstrap.bootstrap(Bootstrap.java:148)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at  
> org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java: 
> 230)
>         ... 43 more
> Caused by: java.lang.IllegalStateException: Only persistent attributes
> can be modified while offline. Attribute Name: rootLoggerLevel, Type:
> class jav
> a.lang.String, GBean:  
> org.apache.geronimo.system.logging.log4j.Log4jService
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.setValue(GBeanMBeanAt 
> tribute.java:357)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.setAttribute(GBeanMBean.java: 
> 754)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.setGBeanData(GBeanMBean.java: 
> 716)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:182)
>         ... 52 more
> Root cause
> org.apache.geronimo.gbean.InvalidConfigurationException: GBeanData
> could not be loaded into the GBeanMBean
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:184)
>         at  
> org.apache.geronimo.deployment.DeploymentContext.addGBean(DeploymentCon 
> text.java:159)
>         at  
> org.apache.geronimo.deployment.service.GBeanHelper.addGbean(GBeanHelper 
> .java:48)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfig 
> uration(ServiceConfigBuilder.java:116)
>         at  
> org.apache.geronimo.deployment.Bootstrap.bootstrap(Bootstrap.java:148)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at  
> org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java: 
> 230)
>         at  
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java: 
> 145)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>         at  
> com.werken.werkz.jelly.PreGoalTag$1.firePreGoal(PreGoalTag.java:87)
>         at com.werken.werkz.Goal.firePreGoalCallbacks(Goal.java:691)
>         at com.werken.werkz.Goal.fire(Goal.java:616)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>         at com.werken.werkz.Goal.attain(Goal.java:573)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 
> 671)
>         at  
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:488)
>         at org.apache.maven.cli.App.main(App.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> Caused by: java.lang.IllegalStateException: Only persistent attributes
> can be modified while offline. Attribute Name: rootLoggerLevel, Type:
> class jav
> a.lang.String, GBean:  
> org.apache.geronimo.system.logging.log4j.Log4jService
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.setValue(GBeanMBeanAt 
> tribute.java:357)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.setAttribute(GBeanMBean.java: 
> 754)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.setGBeanData(GBeanMBean.java: 
> 716)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:182)
>         ... 52 more
> Root cause
> org.apache.geronimo.gbean.InvalidConfigurationException: GBeanData
> could not be loaded into the GBeanMBean
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:184)
>         at  
> org.apache.geronimo.deployment.DeploymentContext.addGBean(DeploymentCon 
> text.java:159)
>         at  
> org.apache.geronimo.deployment.service.GBeanHelper.addGbean(GBeanHelper 
> .java:48)
>         at  
> org.apache.geronimo.deployment.service.ServiceConfigBuilder.buildConfig 
> uration(ServiceConfigBuilder.java:116)
>         at  
> org.apache.geronimo.deployment.Bootstrap.bootstrap(Bootstrap.java:148)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at  
> org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java: 
> 230)
>         at  
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java: 
> 145)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>         at  
> com.werken.werkz.jelly.PreGoalTag$1.firePreGoal(PreGoalTag.java:87)
>         at com.werken.werkz.Goal.firePreGoalCallbacks(Goal.java:691)
>         at com.werken.werkz.Goal.fire(Goal.java:616)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>         at com.werken.werkz.Goal.attain(Goal.java:573)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainG 
> oalTag.java:127)
>         at  
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>         at  
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag. 
> java:79)
>         at  
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA 
> ction(MavenGoalTag.java:110)
>         at com.werken.werkz.Goal.fire(Goal.java:639)
>         at com.werken.werkz.Goal.attain(Goal.java:575)
>         at  
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 
> 671)
>         at  
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>         at org.apache.maven.cli.App.doMain(App.java:488)
>         at org.apache.maven.cli.App.main(App.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:551)
>         at com.werken.forehead.Forehead.main(Forehead.java:581)
> Caused by: java.lang.IllegalStateException: Only persistent attributes
> can be modified while offline. Attribute Name: rootLoggerLevel, Type:
> class jav
> a.lang.String, GBean:  
> org.apache.geronimo.system.logging.log4j.Log4jService
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.setValue(GBeanMBeanAt 
> tribute.java:357)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.setAttribute(GBeanMBean.java: 
> 754)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.setGBeanData(GBeanMBean.java: 
> 716)
>         at  
> org.apache.geronimo.gbean.jmx.GBeanMBean.<init>(GBeanMBean.java:182)
>         ... 52 more
> Final Memory: 6M/11M
> Total time: 24 seconds
> Finished at: Tue Nov 23 11:20:34 PST 2004


Mime
View raw message