0 Replies Latest reply on Jul 5, 2002 10:03 AM by Brian

    Problem with jaas example

    Brian Newbie

      Hello all, I am using JBoss 2.4.6_Tomcat 4.0.3 and when I run the jaas example i found on the jboss web site all i get is this error message:

      client-test0:
      [java] +++ Running SessionClient with username=scott, password=echoman, example=example1
      [java] Created LoginContext
      [java] Login failed
      [java] javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.auth.spi.UsersRolesLoginModule
      [java] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:631)
      [java] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
      [java] at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
      [java] at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
      [java] at SessionClient.main(SessionClient.java:64)
      [java] javax.naming.NameNotFoundException: StatelessSession not bound
      [java] javax.naming.NameNotFoundException: StatefulSession not bound

      Does anyone know why this is happening? Its stumped me for a while.
      Thanks,
      tool