Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-20 Thread javed Ansari
this API in a servlet book but in Eclipse it is not able to find out even with the latest JDK 1.7. May be I need to post this onto some Java forum... On Wed, Jun 20, 2012 at 10:41 AM, javed Ansari javid@gmail.com wrote: Ok let me try this. But in any case once I call invalidate

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-20 Thread javed Ansari
These settings I already have. Does that mean logout has been removed from the Servlet 3.0. The book I am referring uses servlet 2.0. Can anybody confirm this? On Wed, Jun 20, 2012 at 12:44 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2012/6/20 javed Ansari javid@gmail.com

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-20 Thread javed Ansari
at 1:00 PM, javed Ansari javid@gmail.com wrote: These settings I already have. Does that mean logout has been removed from the Servlet 3.0. The book I am referring uses servlet 2.0. Can anybody confirm this? On Wed, Jun 20, 2012 at 12:44 PM, Konstantin Kolinko knst.koli...@gmail.com

RE: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
Hi, But how to call the logout on my LoginModule? That is my actual question. I do not have a LoginModule object with me. LoginModule is called by tomcat himself when we use Form Based Authentication. = Javed Just call

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
08:41, javed Ansari skrev: Hi, But how to call the logout on my LoginModule? That is my actual question. I do not have a LoginModule object with me. LoginModule is called by tomcat himself when we use Form Based Authentication. Read what EJP said again. When you call Session.invalidate

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
Ooops, I could not explain. Sorry for mess... I am invalidating in logout only **not** in login. Once I click on logout, I invalidate. Then I redirect to login page. Then if I try to login again the foresaid error comes (error code 408). On Wed, Jun 20, 2012 at 5:22 AM, Esmond Pitt

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
: see the Servlet Spec. You should redirect to a page that *requires* a login, i.e. a role, e.g. in my system it is /mypage EJP -- *From:* javed Ansari [mailto:javid@gmail.com] *Sent:* Wednesday, 20 June 2012 2:30 PM *To:* Esmond Pitt *Cc:* Tomcat Users List

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-18 Thread javed ansari
of good heart. On Wed, Jun 13, 2012 at 5:10 PM, javed ansari javed@gmail.com wrote: I am creating a website and implement security. For this I am using Form based authentication and JAASRealm. I have implemented the login

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-14 Thread javed ansari
Even a big pot full of water will be emptied by a small hole. Similarly just a little anger or ego will burn the nobility of good heart. On Wed, Jun 13, 2012 at 5:10 PM, javed ansari javed

Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-13 Thread javed ansari
I am creating a website and implement security. For this I am using Form based authentication and JAASRealm. I have implemented the login module and able to authenticate but while authorizing tomcat is not able to load the user and role classes once I start the tomcat server. It gives the