It's not a secret anymore!*
The moose likes Spring and the fly likes spring security 2.0.4 , primefaces , prettyfaces and Login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring security 2.0.4 , primefaces , prettyfaces and Login " Watch "spring security 2.0.4 , primefaces , prettyfaces and Login " New topic
Author

spring security 2.0.4 , primefaces , prettyfaces and Login

soroor ashrafzadeh
Greenhorn

Joined: Mar 19, 2012
Posts: 4

Hi
my configuration is:

maven- version:2.3.1
hibernate - version: 3.2.7ga
spring - version: 2.5.6
spring-security-version: 2.0.4
mysql - version: 5.1.9
jsf - version:2.1.0-b03
primefaces - version: 3.2
prettyfaces - version :3.3.3

my problem:
After Login , get session correctly but , dialog not closed and not show welcome message and not directly to admin page.

my login page is :






my applicationContext-security.xml is:




my web.xml is:



my pretty-config.xml is:




my method in LoginBean is:






Please Help me i'm very helpless.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Why do you have this in the Spring Security Filter mapping???

<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>

Looks like new things in Servlet 2.4

http://stackoverflow.com/questions/9177104/jsf-spring-security-integration-issue

Just out of curiosity, what happens if you remove those dispatcher tags?

Mark

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Actually, now I am pretty sure that you have to remove it, or move to the latest Spring Security. 2.0.4 is an old version and probably has no clue with Servlet 2.4 stuff


Mark
soroor ashrafzadeh
Greenhorn

Joined: Mar 19, 2012
Posts: 4

Thank's a lot mark But i can't know ...
If you instead of me What did you do?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

soroor ashrafzadeh wrote:Thank's a lot mark But i can't know ...
If you instead of me What did you do?


What do you mean? I don't understand. I didn't do anything except respond to your post. Is that what you are asking here?

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: spring security 2.0.4 , primefaces , prettyfaces and Login
 
Similar Threads
Problems with Spring Security and JSF2
Spring security 3.0
Integrating Spring & JDBC into JSF2 login page
RequestDispatcher null - cant find /j_spring_security_check
Login Form with Spring Security + JSF2.0 + Facelets + RichFaces