1 Reply Latest reply on Aug 16, 2011 12:45 PM by alesj

    WEB/INF/lib not scanned for jars

    nizzy

      Hi All,

       

      Bear with me here, I'm not sure how best to even describe my problem as I suspect its to do with our setup rather than a JBoss problem, just hoping someone can point me in the right direction or suggest how best to debug the issue.

       

      Deployed a WAR file to JBoss 5.1.0

      Using JAAS for loging/logout

       

      During log-in we use a custom logging system to record the log-in from our LogingModule (extends org.jboss.security.auth.spi.AbstractServerLoginModule). These logging jars are present in the WEB-INF/lib directory of our WAR file. This works fine.

       

      I updated our logout procedure to call session.invalidate() to clear the Authentication Cache. However when the logout method is executed, called from the same LogingModule class, I get a ClassNotFoundException, when I examine the stacktrace the WEB-INF/lib directory is not being scanned for the relevant jars.

       

      Only  server/node/lib, common/lib are scanned.

       

      See attached file for stacktrace.

       

      Regards Alan.

        • 1. Re: WEB/INF/lib not scanned for jars
          alesj

          This sounds like the classloader is not properly switched to deployment's classloader.

          e.g. some missing Thread::currentThread::getContextClassLoader set/check

           

          If you can chase that down ...