Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

spring security 2.0.4 , primefaces , prettyfaces and Login

 
Greenhorn
Posts: 4
Android jQuery Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
Android jQuery Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's a lot mark But i can't know ...
If you instead of me What did you do?
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic