0 Replies Latest reply on Nov 18, 2002 2:54 PM by Dummy Jim

    [Old topic] principal=null

    Dummy Jim Newbie

      Hi all!

      I know there are lots topics like this...

      Does security work?

      I try to use Swing (JDK 1.4.1_01) --> JBoss 3.0.4

      I configured all (spending 1 week in forums and buying the doc) I still with the same thing. :-(

      I use "ClientLoginModule" from a client and
      "loginContext.login()" passed with a callback to my handler.

      Then it generates "SecurityException: Insufficient method permissions, principal=null" on "create" home method.

      My EJB is configured to mydomain and it's ok
      (if I use IdentityLoginModule).

      I have doubt about one thing, after "login()"

      Subject subject = loginContext.getSubject();

      is empty (???). As far as I understand "ClientLoginModule" should return a subject so JBoss could associate my call with me and check it against "mydomain" (i.e. DatabaseServerLoginModule).

      Does anyone can attach working configs (client "auth.conf", "login-config.xml"...)?

      Thx a lot,

      El Gato