Hi,
sorry - maybe it is a beginner question but I can't find the solution.
I have written a client application (no web client) and I can not authenticate against my ejb.
I open the InitialContext with the following configuration:
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
env.put(Context.SECURITY_PRINCIPAL, sUserID);
env.put(Context.SECURITY_CREDENTIALS, sPW);
I can find the EJB Home Interface. But I am unable to create the EJB. I got an :
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.AccessException: SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
in my ejb.jar I included the jboss.xml file with this short configuration:
<security-domain>java:/jaas/imixsIX</security-domain>
And in my login-config.xml I use that application-policy:
<application-policy name = "imixsIX">
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name = "usersProperties">IX_user.properties</module-option>
<module-option name = "rolesProperties">IX_roles.properties</module-option>
</login-module>
</application-policy>
I did not understand what I did wrong. The Web-Client works very well.
can you give me Informations if I have forgotten something.
Thanks for help
Ralph