1 Reply Latest reply on Dec 14, 2006 11:13 AM by Tim Fox

    SecurityException on Session EJB remove after JMS Messaging

    Andrea Di Cesare Newbie

      Hello

      I have experienced the following problem after having installed JMS Messaging on JBoss 4.0.3SP1 (also tryed 4.04):

      when invoking remove of an Stateless Session Bean I get a SecurityException (principal=null)

      note that before it was working. of course the invoker IS authenticated and has the correct role to do that.

        • 1. Re: SecurityException on Session EJB remove after JMS Messag
          Tim Fox Master

          Have you added an application-policy for messaging in login-config.xml?

          
           <application-policy name = "messaging">
           <authentication>
           <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
           flag = "required" >
           <module-option name = "unauthenticatedIdentity">guest</module-option>
           <module-option name = "usersProperties">messaging-users.properties</module-option>
           <module-option name = "rolesProperties">messaging-roles.properties</module-option>
           </login-module>
           </authentication>
           </application-policy>