1 Reply Latest reply on Nov 19, 2012 9:25 AM by cgwhiteside

    Access session from DatabaseServerLoginModule for jBoss 6?

    cgwhiteside Newbie

      I am migrating an application from 4.2.3 to 6 and have extended DatbaseServerLoginModule.


      In that code, I access the session using HttpServletRequest request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest");


      Under 4.2.3 it works fine, but under 6, it throws:

      java.lang.IllegalArgumentException: unknown handler key

      at javax.security.jacc.PolicyContext.getContext(PolicyContext.java:280)



      Any help wiould be greatly appreciated