This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Acegi Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply locked New topic
Author

Acegi Configuration

Maya Pillai
Ranch Hand

Joined: Jul 17, 2008
Posts: 60
Hi,

Can anyone help me to configure Acegi in my Spring / HIbernate / JSF application. The error i am getting is ' The requested resource (/Project/j_acegi_security_check.jsf) is not available'. Please find my code below.

ApplicationContext.xml






WEB.XML







FACES-CONFIG.XML


<?xml version="1.0"?>



XHTML






Thanks.




Maya Pillai
Ranch Hand

Joined: Jul 17, 2008
Posts: 60
I am using spring2 and the following jar files for Acegi

acegi-security-1.0.5.jar
acegi-security-tiger-1.0.5.jar
Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
How did you resolve the error?

Could you kindly share?

Thanks
Radovan Vukovic
Greenhorn

Joined: Nov 03, 2010
Posts: 19
I did not work with JSF but seams to me that mapping in web.xml are missing

Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
Thanks for the reply.


Is there any working sample application for acegi with ntlm?
Radovan Vukovic
Greenhorn

Joined: Nov 03, 2010
Posts: 19
Try this: http://www.ibm.com/developerworks/java/library/j-acegi1/index.html
Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
Radovan, thanks again for the reply.

Article did not mention anything about ntlm, I am looking for working sample application for acegi with ntlm.

Thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Why aren't you using the latest version of Spring Security. Acegi was the old name for Spring Security, so if you are using Acegi, you are using a much older version. Unless you had an app that was already using Acegi, it is much better to use a more up to date version.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
I would like to use the new version, however still looking for a working sample application with ntlm authentication.

Thanks
Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
I saw this blog regarding spring security and ntlm
http://blog.anorakgirl.co.uk/?p=68#comment-713

However I am not sure how do I start? Where to start? How do I pass my ntlm authenticated user to class which is mentioned in blog? Should I use a servlet or jsp to get ntlm user? etc etc.

Could someone provide some insight?

Thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

What is ntlm? I haven't heard of it before.

Mark
Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
NTLM is NT LAN Manager in Windows. By this in servlets or JSP one could get logged in username. More information
http://en.wikipedia.org/wiki/NTLM
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Chako, so this now is a duplicate thread and an old thread that you resurrected. So I am going to close it and allow your other thread to be the one people respond to.

Thanks

Mark
 
Consider Paul's rocket mass heater.
 
subject: Acegi Configuration
 
Similar Threads
Navigation issue
Problem in setting bean scope to request
Issues with facelets and saveState?
cant deploy my application,please help
Spring security and jsf Integration