[jboss-jira] [JBoss JIRA] Created: (JBAS-9244) @SecurityDomain doesn't work with @Singleton

Christian Reiter (JIRA) jira-events at lists.jboss.org
Wed Apr 6 03:04:34 EDT 2011


@SecurityDomain doesn't work with @Singleton
--------------------------------------------

                 Key: JBAS-9244
                 URL: https://issues.jboss.org/browse/JBAS-9244
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Security
    Affects Versions: 6.0.0.Final
         Environment: Windows Vista, java version "1.6.0_23"
            Reporter: Christian Reiter
            Assignee: Anil Saldhana


In Jboss AS 6 (6.0.0.Final) the Annotation @SecurityDomain from the package org.jboss.ejb3.annotation.SecurityDomain doesn't seem to work with @Singleton - SessionBeans.

If I try to call a method from a @Singleton which is marked with @RolesAllowed i get a "java.lang.IllegalStateException: Security Context has not been set" Exception. If I do completely the same with a @Stateless SessionBean everything works fine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list