Scoping of MC beans is broken
-----------------------------
Key: JBAOP-787
URL:
https://jira.jboss.org/jira/browse/JBAOP-787
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Carlo de Wolf
Installing the following test-aop.xml:
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<domain name="Test Aspect Domain 1">
<stack name="Test Stack"/>
</domain>
<domain name="Test Aspect Domain 2">
<stack name="Test Stack"/>
</domain>
</aop>
gives:
15:30:21,925 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to PostClassLoader:
name=vfs:///home/carlo/work/jboss-head/build/target/jboss-6.0.0-SNAPSHOT/server/default/deploy/test-aop.xml
state=ClassLoader mode=Manual requiredState=PostClassLoader:
org.jboss.deployers.spi.DeploymentException: org.jboss.deployers.spi.DeploymentException:
Error deploying: Test Stack
at
org.jboss.aop.asintegration.jboss5.AbstractAopMetaDataDeployer.deployBeans(AbstractAopMetaDataDeployer.java:296)
[:2.2.0.Final]
at
org.jboss.aop.asintegration.jboss5.AbstractAopMetaDataDeployer.deploy(AbstractAopMetaDataDeployer.java:133)
[:2.2.0.Final]
at
org.jboss.aop.asintegration.jboss5.AOPDeploymentAopMetaDataDeployer.deploy(AOPDeploymentAopMetaDataDeployer.java:46)
[:2.2.0.Final]
at
org.jboss.aop.asintegration.jboss5.AOPDeploymentAopMetaDataDeployer.deploy(AOPDeploymentAopMetaDataDeployer.java:36)
[:2.2.0.Final]
at
org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
[:2.2.0.Alpha4]
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
[:2.2.0.Alpha4]
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
[:2.2.0.Alpha4]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.Alpha4]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1857)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1575)
[:2.2.0.Alpha4]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1516)
[:2.2.0.Alpha4]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377)
[jboss-dependency.jar:2.2.0.Alpha9]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137)
[jboss-dependency.jar:2.2.0.Alpha9]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:937)
[jboss-dependency.jar:2.2.0.Alpha9]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:652)
[jboss-dependency.jar:2.2.0.Alpha9]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:2008)
[:2.2.0.Alpha4]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1101)
[:2.2.0.Alpha4]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
[:2.2.0.Alpha4]
at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
[:6.0.0-SNAPSHOT]
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
[:6.0.0-SNAPSHOT]
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
[:6.0.0-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_15]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
[:1.6.0_15]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_15]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
[:1.6.0_15]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
[:1.6.0_15]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
[:1.6.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_15]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_15]
Caused by: org.jboss.deployers.spi.DeploymentException: Error deploying: Test Stack
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
[:2.2.0.Alpha4]
at
org.jboss.aop.asintegration.jboss5.AbstractAopMetaDataDeployer$MyBeanMetaDataDeployer.deploy(AbstractAopMetaDataDeployer.java:367)
[:2.2.0.Final]
at
org.jboss.aop.asintegration.jboss5.AbstractAopMetaDataDeployer$MyBeanMetaDataDeployer.access$100(AbstractAopMetaDataDeployer.java:329)
[:2.2.0.Final]
at
org.jboss.aop.asintegration.jboss5.AbstractAopMetaDataDeployer.deployBeans(AbstractAopMetaDataDeployer.java:269)
[:2.2.0.Final]
... 33 more
Caused by: java.lang.IllegalStateException: Test Stack is already installed.
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:833)
[jboss-dependency.jar:2.2.0.Alpha9]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:639)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.aop.asintegration.jboss5.AbstractAopMetaDataDeployer$MyBeanMetaDataDeployer.deploy(AbstractAopMetaDataDeployer.java:363)
[:2.2.0.Final]
... 35 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira