No matter, found my problem, had to set localDataSource="true" in my
realm

Have a nice day!

-----Original Message-----
From: Gilbert, Antoine 
Sent: November 15, 2006 3:22 PM
To: Tomcat Users List
Cc: Siino, Daniel
Subject: 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"/>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to