File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring security 2.0.4 , primefaces , prettyfaces and Login

 
soroor ashrafzadeh
Greenhorn
Posts: 4
Android Java ME jQuery
  • 0
  • 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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • 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
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • 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 Java ME jQuery
  • 0
  • 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
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic