• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring security 2.0.4 , primefaces , prettyfaces and Login

 
Greenhorn
Posts: 4
Android jQuery Java ME
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic