1 Reply Latest reply on Nov 4, 2003 10:51 AM by hub1

    exception on IsCallerInRole()


      When I call isCallerInRole() I always get an exception.
      I can successfully login using the ldapLoginModule but cannot call isCallerInRole().

      I think I checked all the configuration files but cannot find anything (I am JBOSS novice).

      Could anybody please give me a hint how I can fix this problem? What files to I have to touch, what to change?

      Thank you
      Hubert

      Below is the exception that I get:

      > 17:12:30,405 ERROR [STDERR] java.lang.IllegalStateException:
      > isCallerInRole() called with no security context. Check that a
      > security-domain has been set for the application.
      > 17:12:30,421 ERROR [STDERR] at
      >
      org.jboss.ejb.EnterpriseContext$EJBContextImpl.isCallerInRole(EnterpriseContext.
      java:384)

        • 1. Re: exception on IsCallerInRole()


          I think I found the issue while reading through other posts.

          I missed the <security-domain> entry in jboss.xml.
          <security-domain>java:/jaas/SecurityRealm</security-domain>

          P.S. Why is it so that I first have to post a question until I find the solution? I hate that. (Grmbl)