1 Reply Latest reply on Nov 1, 2003 7:54 AM by juha

    Problem with reporting LoginException

    cauchy

      Hello,

      I have CMP and DatabaseServerModuleLogin on the same db. When I type correct username and password i get to the cmp. In other case getting to cmp raise error - so everything seems to be ok.

      But when i execute loginContext.login() with bad username or password i don't get LoginException.

      In security domain in login-config.xml i don't have module option "unauthenticatedIdentity".

      What's going on? Please help.

      Cauchy

      PS I have JBoss 3.2.2 on WinXP. My db is SAPDB.

        • 1. Re: Problem with reporting LoginException

          LoginContext.login does not do server side authentication. You won't get an exception until you first time invoke your EJB on the server and it fails to authenticate.

          If you need to authenticate the client on startup you need to invoke a dummy method on the EJB to force authentication.

          -- Juha