3 Replies Latest reply on Jan 23, 2009 6:32 AM by Gangadhar mamillapalli

    Classloading a custom login module

    Richard Brewster Newbie

      Using JBoss 4.0.5.GA.

      I am writing a custom login module. To get going I copied the source from org.jboss.security.auth.spi.DatabaseServerLoginModule. My class also extends org.jboss.security.auth.spi.UsernamePasswordLoginModule. I put my compiled class into a jar file. If I put this jar into a directory (such as <jboss_home>/server/lib) and explicitly reference the jar in the JBOSS_CLASSPATH, then my class loads OK. But I get this error:

      java.lang.NoClassDefFoundError: org/jboss/security/auth/spi/UsernamePasswordLoginModule
      at java.lang.ClassLoader.defineClass0(Native Method)

      What's the right way to do this? Can ProxyLoginModule be used? How?

      Thanks.