File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mat Anthony
Ranch Hand
Posts: 259
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mat,

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

Please tell the solution.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic