9 Replies Latest reply on Feb 4, 2009 6:51 AM by Michael Gronau

    Beans with security domains cannot be hot deployed or redepl

    Jeff Schnitzer Newbie

      I've bugged this as: https://jira.jboss.org/jira/browse/JBAS-6362

      Deploying a trivial service bean fails with "java.lang.IllegalStateException: Security Context has not been set" when a security domain is defined for the bean, either using jboss-app.xml or @SecurityDomain. If the EAR is present at appserver startup, deployment works. If you redeploy the EAR or copy the EAR into a fresh (but running) server, you get the IllegalStateException.

      More info including an example and the full stacktrace are in the bug.

      I have found that I can do development by shutting down the server, copying my new EAR, and restarting the server... but this is tedious.

      Please fix!