You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Gilbert, Antoine" <AG...@korem.com> on 2006/11/15 21:22:02 UTC
DataSourceRealm vs DataSource
Hi
I have a data source and a data source realm using this data source.
Both are defined in the context. It seems the realm is unable to
reference the data source. I get this error message:
ERROR
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/pushnse
e-trunc]][15-11-2006 15:08:16]: Exception performing authentication
javax.naming.NameNotFoundException: Name pushnsee is not bound in this
Context
Here is an example of what I'm trying to do
<Resource name="pushnsee" auth="Container"
type="javax.sql.DataSource"
driverClassName="com.lutris.instantdb.jdbc.idbDriver"
url="jdbc:idb:D:/Dev/ultimate/data/db/admin.prp"
username="PUBLIC" password="PUBLIC" maxActive="10" maxIdle="5"
maxWait="30000"/>
<Realm className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="pushnsee"
userTable="pnsUsers" userNameCol="userLogin"
userCredCol="password"
userRoleTable="pnsProfilesRolesAgg" roleNameCol="roleName"/>