File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Problems with Spring Security and JSF2 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 » Frameworks » Spring
Bookmark "Problems with Spring Security and JSF2" Watch "Problems with Spring Security and JSF2" New topic
Author

Problems with Spring Security and JSF2

Janes Smith
Greenhorn

Joined: Dec 02, 2008
Posts: 2
Hi All
I'm trying to build in spring security into jsf2, both I'm new too.

I get the following errors every time I attempt to authenticate an invalid user.
(i.e. In the class:LoginBean method:doLogin after the return null)

My login.jspx is under WebRoot\faces

HTTP 404 Not Found displays in the browser.

Console display:-
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at org.apache.shale.remoting.impl.MappingImpl.viewId(MappingImpl.java:260)

Not sure what I'm doing wrong .

file:LoginBean.java


file:applicationContext-security.xml


file:login.jspx


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with Spring Security and JSF2
 
Similar Threads
RequestDispatcher null - cant find /j_spring_security_check
Integrating Spring & JDBC into JSF2 login page
How to implement Spring Form Based Authenticationand Authorization without session scope ?
Login Form with Spring Security + JSF2.0 + Facelets + RichFaces
Spring security 3.0