Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-07 Thread Dan Washusen
Dominik, that worked! Champion!!! My revised context.xml looks like this: Context path=/mind docBase=D:/Development/Projects/mind/src/webapp debug=99 reloadable=true Resource name=jdbc/MindDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread sven morales
Hi, This is an excerpt of my code, to get a Context. Try and see if it works for you. 31 private void initDataSource () { 32 try { 33 Context initCtx = new InitialContext(); 34 Context envCtx = (Context) initCtx.lookup(java:comp/env); 35

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread Dan Washusen
Hi Sven, I can access the data source from within my code using the name java:/comp/env/jdbc/MindDB and everything works great. It's just that the Realm can't... I have found a few other posts to this list with the same problem and one of the email suggested that the Realm is configured before

Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread Dominik Drzewiecki
Dan Washusen [EMAIL PROTECTED] wrote: Hi Sven, I can access the data source from within my code using the name java:/comp/env/jdbc/MindDB and everything works great. It's just that the Realm can't... I have found a few other posts to this list with the same problem and one of the email

DataSourceRealm says Name jdbc is not bound in this Context

2005-02-05 Thread Dan Washusen
Hi All, I'm trying to get container managed authentication going under Tomcat 5.5 using the org.apache.catalina.realm.DataSourceRealm class. I've configured a DataSource using the name jdbc/MindDB and I can access that from within my app, but when the configured DataSourceRealm tries to access it