1 Reply Latest reply on Jul 17, 2007 3:41 AM by wolfc

    Cause overwrite problem

    starksm64

      With the current trunk I'm not able to startup the default config due to issues like the following:

      2007-07-16 22:50:12,265 ERROR [org.jboss.ejb3.deployers.EJBRegistrationDeployer] Error during deploy: vfsfile:/C:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/profileservice/deployers/jboss-aop-jboss5.deployer/jboss-standalone-aspect-library-jdk50.jar
      org.jboss.deployers.spi.DeploymentException: java.lang.IllegalStateException: Can't overwrite cause
       at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:172)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.deploy(AbstractVFSRealDeployer.java:45)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:164)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:661)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:624)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:588)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:304)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1257)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:685)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:813)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:735)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:573)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:374)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:427)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:340)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:372)
       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:523)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalStateException: Can't overwrite cause
       at java.lang.Throwable.initCause(Throwable.java:320)
       at org.jboss.security.jacc.JBossPolicyConfigurationFactory.<init>(JBossPolicyConfigurationFactory.java:64)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at java.lang.Class.newInstance0(Class.java:350)
       at java.lang.Class.newInstance(Class.java:303)
       at org.jboss.ejb3.security.Ejb3PolicyConfigurationFactory.getPolicyConfigurationFactory(Ejb3PolicyConfigurationFactory.java:87)
       at org.jboss.ejb3.security.JaccHelper.initialiseJacc(JaccHelper.java:72)
       at org.jboss.ejb3.deployers.Ejb3JBoss5Deployment.createPolicyConfiguration(Ejb3JBoss5Deployment.java:74)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:346)
       at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:160)
       ... 22 more
      



        • 1. Re: Cause overwrite problem
          wolfc

          On an initial glance it looks like we've reached the limit what we can do without proper security integration.

          The security deployer currently only works with EJB 2 meta data and EJB 3 meta data isn't being augmented with annotations yet. So as a work around the EJB registration deployer tells the security deployer to ignore this deployment.

          We need the unified meta model before we can move on.