1 Reply Latest reply on Jul 7, 2008 7:16 AM by Kabir Khan

    ejb3 aop config not getting undeployed correctly

    Adrian Brock Master

      If you start jboss then run smoke-tests-raw in jboss-head
      you get the following error message during server shutdown.

      Looks like the ejb3 config is not getting undeployed properly:

      11:56:49,788 WARN [AspectDeployer] Error undeploying xml ejb3-interceptors-aop.xml from org.jboss.aop.AspectManager@1b2c86e
      java.lang.RuntimeException: java.lang.IllegalStateException: BaseClassLoader@ea520f{vfszip:/home/ejort/jboss-head/testsuite/output/lib/simple-session.jar} classLoader is not connected to a domain (probably undeployed?) for class org.jboss.ejb3.annotation.SecurityDomain
       at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:137)
       at org.jboss.aop.pointcut.MethodMatcher.matchesClass(MethodMatcher.java:264)
       at org.jboss.aop.pointcut.MethodMatcher.matches(MethodMatcher.java:106)
       at org.jboss.aop.pointcut.MethodMatcher.visit(MethodMatcher.java:100)
       at org.jboss.aop.pointcut.ast.ASTMethod.jjtAccept(ASTMethod.java:44)
       at org.jboss.aop.pointcut.ExecutionMethodMatcher.visit(ExecutionMethodMatcher.java:58)
       at org.jboss.aop.pointcut.ast.ASTExecution.jjtAccept(ASTExecution.java:37)
       at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:89)
       at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
       at org.jboss.aop.pointcut.PointcutExpression.matchesExecution(PointcutExpression.java:119)
       at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:1149)
       at org.jboss.aop.ClassAdvisor.resolvePointcuts(ClassAdvisor.java:700)
       at org.jboss.aop.ClassAdvisor.updateInterceptorChains(ClassAdvisor.java:629)
       at org.jboss.aop.ClassAdvisor.doRebuildInterceptors(ClassAdvisor.java:1137)
       at org.jboss.aop.ClassAdvisor$RebuildInterceptorsAction$2.rebuildInterceptors(ClassAdvisor.java:2358)
       at org.jboss.aop.ClassAdvisor.rebuildInterceptors(ClassAdvisor.java:1117)
       at org.jboss.aop.ClassAdvisor.removeAdviceBindings(ClassAdvisor.java:427)
       at org.jboss.aop.AspectManager.removeBindings(AspectManager.java:1422)
       at org.jboss.aop.Domain.removeBindings(Domain.java:198)
       at org.jboss.aop.AspectXmlLoader.bulkUndeploy(AspectXmlLoader.java:1220)
       at org.jboss.aop.AspectXmlLoader.undeployDomain(AspectXmlLoader.java:1091)
       at org.jboss.aop.AspectXmlLoader.undeployTopElements(AspectXmlLoader.java:1305)
       at org.jboss.aop.AspectXmlLoader.undeployXML(AspectXmlLoader.java:1209)
       at org.jboss.aop.deployers.AspectDeployer.undeployXml(AspectDeployer.java:205)
       at org.jboss.aop.deployers.AspectDeployer.undeployXml(AspectDeployer.java:189)
       at org.jboss.aop.deployers.AspectDeployer.undeploy(AspectDeployer.java:134)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalUndeploy(AbstractVFSRealDeployer.java:54)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:197)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1189)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1144)
       at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1406)
       at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1064)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:677)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:510)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.unload(ProfileServiceBootstrap.java:371)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.unloadProfile(ProfileServiceBootstrap.java:332)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:160)
       at org.jboss.bootstrap.AbstractServerImpl.shutdownServer(AbstractServerImpl.java:508)
       at org.jboss.bootstrap.AbstractServerImpl$ShutdownHook.run(AbstractServerImpl.java:827)
      Caused by: java.lang.IllegalStateException: BaseClassLoader@ea520f{vfszip:/home/ejort/jboss-head/testsuite/output/lib/simple-session.jar} classLoader is not connected to a domain (probably undeployed?) for class org.jboss.ejb3.annotation.SecurityDomain
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:723)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:372)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at org.jboss.ejb3.metadata.annotation.AnnotationRepositoryToMetaData.loadClass(AnnotationRepositoryToMetaData.java:209)
       at org.jboss.ejb3.metadata.annotation.AnnotationRepositoryToMetaData.hasClassAnnotation(AnnotationRepositoryToMetaData.java:328)
       at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:603)
       at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:569)
       at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:115)
       ... 42 more
      


      Or is this an ejb3 issue?