0 Replies Latest reply on Apr 14, 2005 1:09 PM by John Troxel

    NoClassDefFoundError in custom LoginModule

    John Troxel Newbie

      Hello. I am implementing a custom login module, extending the UsernamePasswordLoginModule, that calls a web service in another process to authenticate/authorize. So I have a new LoginModule class and some supporting classes that it references.

      I have pointed to my new class in the login-conf file, and MyLoginModule is found, but the first reference to a supporting class (Authenticator_Impl) is not. I have checked and rechecked, and ALL the classes are in the ejb jar file. Here is the exception:

      javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError: com/my/path/ws/Authenticator_Impl
       at com.my.path.jaas.MyLoginModule.getWliRoles(VISWliWebSvcLoginModule.java:37)
       at com.my.path.jaas.MyLoginModule.validatePassword(VISWliWebSvcLoginModule.java:68)
       at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:157)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


      I have also tried sticking all the supporting classes in another jar in the lib dir, no dice.

      Any ideas? Thanks.

      - John