How do I fix this JBoss EJB client authentication issue?

Posted by Rich on Stack Overflow See other posts from Stack Overflow or by Rich
Published on 2010-04-29T15:41:38Z Indexed on 2010/04/29 15:47 UTC
Read the original article Hit count: 430

Filed under:
|
|

I have an EJB deployed under JBoss (we're moving a project to it from Weblogic), I can get an EJBHome reference to the EJB via a JNDI lookup.

The login-config.xml is set to use the module org.jboss.security.auth.spi.BaseCertLoginModule.

When my client code tries to invoke the create method via reflection, calling invoke, I get an InvocationException which wraps an AccessException, which wraps a final exception of javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)....

Am I missing some client code to use BaseCertLoginModule instead of UsernamePasswordLoginModule?

Thanks in advance, any suggestions appreciated, apologies for not posting the entire stacktrace but it's on a secured network without internet access.

© Stack Overflow or respective owner

Related posts about java

Related posts about jboss