6 Replies Latest reply on May 18, 2010 5:14 AM by daniell

    EJBAccessException when destroying SLSB

    daniell

      I have a stateless session bean, which is annotated with @RolesAllowed(...). A security-domain is specified in the file jboss.xml. Everything works fine in operation, but when I shut down the JBossAS, I get the following Exception:

       

      java.lang.RuntimeException: javax.ejb.EJBAccessException: Authentication failure
              at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.preDestroy(LifecycleInterceptorHandler.java:135)
              at org.jboss.ejb3.EJBContainer.invokePreDestroy(EJBContainer.java:624)
              at org.jboss.ejb3.AbstractPool.remove(AbstractPool.java:207)
              at org.jboss.ejb3.InfinitePool.destroy(InfinitePool.java:42)
      ....

       

      Is there a possibility to get rid of this exception? I'm wondering if noone faces this problem except me.