[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Registering a bean as an aspect in the bootstrap
kabir.khan@jboss.com
do-not-reply at jboss.com
Sat Feb 3 11:10:05 EST 2007
This requirement has been removed from the AOP/MC integration layer. Meaning the AspectManager bootstrap-beans.xml does not need to explicitly include classes that bean proxies should be created for:
| <bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
| ...
| <property name="include">org.jboss.test., org.jboss.injbossaop.</property>
| <property name="exclude">org.jboss.</property>
|
include/exclude now only have an effect for what classes to inspect if doing loadtime weaving.
A side effect of this is this error:
| 15:59:54,234 INFO [JMXIntroduction] Registered MBean jboss.ha:service=HASingletonDeployer,type=BarrierController
| 15:59:54,234 ERROR [AbstractKernelController] Error installing to Create: name=jboss.ha:service=HASingletonDeployer,type=BarrierController state=Configured
| javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:184)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:186)
| at AOPContainerProxy$7.create(AOPContainerProxy$7.java)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:430)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:540)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:474)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
| at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:67)
| at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:42)
| at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:56)
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:603)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:367)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:247)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
| at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403)
| at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342)
| at org.jboss.Main.boot(Main.java:210)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.deployment.DeploymentException: Error during register: jboss.ha:service=HASingletonDeployer,type=BarrierController
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
| at org.jboss.system.ServiceController.register(ServiceController.java:352)
| at org.jboss.system.ServiceController.create(ServiceController.java:375)
| at org.jboss.system.ServiceController.create(ServiceController.java:358)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| ... 42 more
| Caused by: java.lang.IllegalStateException: jboss.ha:service=HASingletonDeployer,type=BarrierController is already installed.
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:249)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
| at org.jboss.system.ServiceController.doInstall(ServiceController.java:638)
| at org.jboss.system.ServiceController.register(ServiceController.java:344)
| ... 49 more
|
I assume that this bean was not one of the "included" ones earlier, so that the JMXIntroduction was never called for this bean. Now it does get called, so it pukes up when the ServiceMBeanSupport.create() method tries to call ServiceController.start()
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010429#4010429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010429
More information about the jboss-dev-forums
mailing list