5 Replies Latest reply on Sep 18, 2008 7:08 AM by jaikiran pai

    JAAS authentification with JBoss AS CR1 : jaas not bound

    amar slimane Newbie

      A working Beta4 EJB3 application is broken with CR1.
      @Stateful
      @Remote(MyInterface.class)
      @SecurityDomain("myconfig")
      public class MyClassEJB3 implements MyInterface
      {
      ....
      }

      A RuntimeException appears when 'MyClassEJB3' is loaded.


      org.jboss.deployers.spi.DeploymentException: Error deploying gsrAppServeur.jar: failed to initialize bean container
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:192)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:95)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:544)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.RuntimeException: failed to initialize bean container
      at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:225)
      at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:116)
      at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContainer.java:29)
      at org.jboss.ejb3.stateful.StatefulContainer.<init>(StatefulContainer.java:98)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getStatefulContainer(Ejb3AnnotationHandler.java:294)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:209)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:645)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:605)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:587)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:553)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:465)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:178)
      ... 21 more
      Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException: jaas not bound
      at org.jboss.ejb3.EJBContainer.getSecurityManager(EJBContainer.java:917)
      at org.jboss.ejb3.security.AuthenticationInterceptorFactory.createPerClass(AuthenticationInterceptorFactory.java:44)
      at org.jboss.aop.advice.AspectFactoryDelegator.createPerClass(AspectFactoryDelegator.java:107)
      at org.jboss.aop.Advisor.addPerClassAspect(Advisor.java:1080)
      at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:75)
      at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:1134)
      at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.createInterceptorChain(ManagedObjectAdvisor.java:136)
      at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1623)
      at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:153)
      at org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInfo.java:144)
      at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:93)
      at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1255)
      at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:688)
      at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:601)
      at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:304)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:274)
      at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.initialize(ManagedObjectAdvisor.java:169)
      at org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor.initialize(ExtendedManagedObjectAdvisor.java:70)
      at org.jboss.ejb3.interceptors.container.AbstractContainer.initializeAdvisor(AbstractContainer.java:162)
      at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:201)
      at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:221)
      ... 32 more
      Caused by: javax.naming.NameNotFoundException: jaas not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jboss.ejb3.security.SecurityDomainManager.getSecurityManager(SecurityDomainManager.java:41)
      at org.jboss.ejb3.EJBContainer.getSecurityManager(EJBContainer.java:911)
      ... 53 more