This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 37

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: 516
    
    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: 37

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

Joined: Mar 18, 2010
Posts: 516
    
    2

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

Joined: Sep 09, 2009
Posts: 37

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Secure Login through JAAS and servlet
 
Similar Threads
Is this possible with JAAS, or WebSphere even for that matter?
Using cookies in JAAS to extend a Single Sign On
EJB Security: Not getting correct name in Principal
Tomcat JAAS Authentication NullPointerException
JBoss 5.1.0 GA. FORM based authentication