JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Aladin Dajani
Hello List, My application is configured for JDBCRealm authentication uses a MySQL database. For my own use inside the application, I have setup a connection pool to access the database, However, the configuration of JDBCRealm in server.xml uses astand-alone connection. Since MySQL times-out con

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Felix Schumacher
Aladin Dajani schrieb: >Hello List, > >My application is configured for JDBCRealm authentication uses a MySQL >database. >For my own use inside the application, I have setup a connection pool >to >access the database, However, the configuration of JDBCRealm in >server.xml >uses astand-alone co

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Aladin Dajani
Thanks Felix, This does look like what I need. On Sun, Oct 7, 2012 at 9:36 AM, Felix Schumacher < felix.schumac...@internetallee.de> wrote: > > > Aladin Dajani schrieb: > > >Hello List, > > > >My application is configured for JDBCRealm authentication uses a MySQL > >database. > >For my own use i

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Aladin Dajani
OK So I tried to use DataSourceRealm. Seems simple enough. but I get the following exception: Oct 7, 2012 9:54:51 AM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Here is my co

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Pid *
On 7 Oct 2012, at 15:26, Aladin Dajani wrote: > OK So I tried to use DataSourceRealm. Seems simple enough. but I get the > following exception: > > Oct 7, 2012 9:54:51 AM org.apache.catalina.realm.DataSourceRealm open > SEVERE: Exception performing authentication > javax.naming.NameNotFoundExcep

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Mark Eggers
On 10/7/2012 8:22 AM, Pid * wrote: On 7 Oct 2012, at 15:26, Aladin Dajani wrote: OK So I tried to use DataSourceRealm. Seems simple enough. but I get the following exception: Oct 7, 2012 9:54:51 AM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication jav

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Aladin Dajani
Thank you all for your help. I now have DataSourceRealm based authentication up and running with my connection pool. One thing I want to mention is that I was unable to make teh scenarios described in the wiki work until I duplicated the Resource definition in both server.xml and in context.xml.

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Pid
On 07/10/2012 19:40, Aladin Dajani wrote: > Thank you all for your help. I now have DataSourceRealm based > authentication up and running with my connection pool. > > One thing I want to mention is that I was unable to make teh scenarios > described in the wiki work until I duplicated the Resourc

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Aladin Dajani
Hello Pid, I cannot dismiss that there may be inaccuracies as you mentioned in your response, perhaps you could help me figure them out. Here are the cases I tried (the first three were outlined in the wiki http://wiki.apache.org/tomcat/TomcatDataSourceRealms) MY REALM ELEMENT: MY RESO

how to programmatically expire inactive sessions?

2012-10-07 Thread Kirill Kireyev
Hi, I'm trying to force expirations of inactive sessions in Tomcat. (For some reason, sessions that are inactive longer than timeout don't expire automatically - not sure why?) I can do it just fine, from the Tomcat Manager web app, by clicking the "Expire

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Mark Eggers
Comments inline. On 10/7/2012 3:31 PM, Aladin Dajani wrote: Hello Pid, I cannot dismiss that there may be inaccuracies as you mentioned in your response, perhaps you could help me figure them out. Here are the cases I tried (the first three were outlined in the wiki http://wiki.apache.org/tomc