Hi all, I want to login from one jboss to another jboss. The login with a simple Java 
Client Application was seccussful. login-config.xml is configured correct. But each 
time I try to connect to the second jboss I get a FailedLoginException:


javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
        at 
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswor
        at 
org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
        at java.lang.reflect.Method.invoke(Method.java:324)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:534)

I use JBoss 3.2.2. 

My client java application (configured with a auth.conf) works fine. What is the 
problem with the second jboss?

JBoss A on PC1:

    <application-policy name="ejb_app1">
        ...
    </application-policy>

JBoss B on PC2:

    <application-policy name="ejb_app2>
        ...
    </application-policy>


     this.loginContext =
        new LoginContext("ejb_app1", new LoginHandler(user, password));

... in a property file:

   java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
   java.naming.provider.url=jnp://PC1:1099
   java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

I hope you can help me...

THX and best regards

Gerinjo

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840944#3840944

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840944


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to