Re: JDBCRealm conection timeout failure on getPassword

2012-10-08 Thread Aladin Dajani
Hello Mark, Thanks for pointing out my missing localDataResource property. It is prominent enough in the wiki, I just failed to pay close attention. With this property, the everything in META-INF/context.xml configuration worked. Other configurations still do not work except the one I described

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

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Felix Schumacher
Aladin Dajani aladin.daj...@gmail.com 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

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 aladin.daj...@gmail.com schrieb: Hello List, My application is configured for JDBCRealm authentication uses a MySQL database. For my

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

Re: JDBCRealm conection timeout failure on getPassword

2012-10-07 Thread Pid *
On 7 Oct 2012, at 15:26, Aladin Dajani aladin.daj...@gmail.com 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

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 aladin.daj...@gmail.com 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

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 Resource

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: Realm

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