tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Hartung <>
Subject FataSourceReal, can't find data source
Date Fri, 25 Aug 2006 15:19:07 GMT

I'm trying to get a DataSourceRealm working for my project.

When I try to log in, I get:

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
        at org.apache.naming.NamingContext.lookup(
        at org.apache.naming.NamingContext.lookup(

Here's my Context.xml (it's short):

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/WebApplication5">
  <Resource auth="Container" driverClassName="org.postgresql.Driver"
maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/securedb"
password="password" type="javax.sql.DataSource"
url="jdbc:postgresql://dbhost:5432/securedb" username="secureuser"/>
  <ResourceLink global="jdbc/securedb" name="jdbc/securedb"
  <Realm className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="jdbc/securedb" debug="99" roleNameCol="role"
userCredCol="password" userNameCol="loginid" userRoleTable="userroleview"

I also have the proper (I think) references and such in the web.xml:
        <description>Postgres Datasource</description>

So, I must be missing something fundamental, but I thought I had all of the
tracks covered.

Any hints appreciated.


Will Hartung

View this message in context:
Sent from the Tomcat - User forum at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message