wood burning stoves 2.0*
The moose likes JSF and the fly likes context.getRequest()).getRequestDispatcher( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "context.getRequest()).getRequestDispatcher("/j_spring_security_check") returns null" Watch "context.getRequest()).getRequestDispatcher("/j_spring_security_check") returns null" New topic
Author

context.getRequest()).getRequestDispatcher("/j_spring_security_check") returns null

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
I'm new to jsf and not sure if this is the correct place for this problem.
I'm trying to get the following login.xhtml working and get a null pointer within my LoginBean on calling
RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check");

file:login.xhtml


file:LoginBean.java


Prob simple for you guys, but just can see this one.

Mat



Mital Pritmani
Greenhorn

Joined: Jan 20, 2010
Posts: 9

Can you put your applicationContext-secure.xml (your spring security xml file) and web.xml content here? Those are the main configuration files so was just asking if you can.
Ryan Jimmy
Greenhorn

Joined: Mar 18, 2012
Posts: 4
Hello Mat,

Were you able to resolve the null pointer exception?I am getting the same error.

Please tell the solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: context.getRequest()).getRequestDispatcher("/j_spring_security_check") returns null
 
Similar Threads
RequestDispatcher null - cant find /j_spring_security_check
Problems with Spring Security and JSF2
creating a table component dynamically
Spring security 3.0
Please expalin 6 lines of code for me.... (Simple JSF2 Integration with spring)