aspose file tools*
The moose likes Security and the fly likes Secure Login through JAAS and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Secure Login through JAAS and servlet" Watch "Secure Login through JAAS and servlet" New topic
Author

Secure Login through JAAS and servlet

Manish Sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 41

Hi,

I am new to JAAS and i tried to implement JAAS into my servlet .
However i am facing problem .
My snippet of code is:-




CallBackHandler:-



Loginservlet



Error:-


Please do let me know the root cause
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Are you using Tomcat as your web container.

May be this will help you SecurityException


Regards
KumarRaja

Manish Sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 41

yes the container i am using is tomcat 6.0.20
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Have you tried the link I posted. Did that help you ?
Manish Sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 41

I have tried that link but still i am stuck
please help

regards
rajan patil
Greenhorn

Joined: Feb 28, 2010
Posts: 3
Did you used configuration file?
whose contents will be like :

WebLogin{

com.DataSourceLoginModule required

};

Exception shows that its unable to find that config file.
 
Don't get me started about those stupid light bulbs.
 
subject: Secure Login through JAAS and servlet