8 Replies Latest reply on May 4, 2010 6:44 AM by R M

    AccessException invoking an EJB method

    R M Newbie

      I've got some client code which does a JNDI lookup for an EJB reference.


      It successfully creates an EJBHome reference but if I call a create method on it (just an empty stub of a method), it throws an exception:


      java.rmi.AccessException: SecurityException; nested exception is:

          javax.security.auth.login.FailedLoginException: Password Incorrect/Password required



      (Difficult to paste the whole stack trace as it's on a secured network without internet access).


      Does anyone have any ideas where/how I can set the username and password and where it might be configured that I would need one?