2 Replies Latest reply on Jul 5, 2004 11:27 AM by Scott Stark

    JBoss to JBoss connection

    gerinjo Newbie

      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