This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Access session from DatabaseServerLoginModule for jBoss 6? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Access session from DatabaseServerLoginModule for jBoss 6?" Watch "Access session from DatabaseServerLoginModule for jBoss 6?" New topic
Author

Access session from DatabaseServerLoginModule for jBoss 6?

Chris Whites
Greenhorn

Joined: May 04, 2006
Posts: 3
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 would be greatly appreciated
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access session from DatabaseServerLoginModule for jBoss 6?
 
Similar Threads
How to run RichFaces sample in JBoss
accessing a session attribute from a class that implements Filter
about jboss Console Administration
Migration from 4.0.5 to 4.2.3
Tomcat 7 maintaining more than one session