You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Sifuentes <bs...@cysive.com> on 2001/05/29 16:48:43 UTC

RE: Using JDBCRealms

I'm trying to utilize teh JDBCRealm also. I see you are trying to get some
of the same information I am. Did you get a response for your previos e-mail

-Ben

-----Original Message-----
From: William Kaufman [mailto:WKaufman@viquity.com]
Sent: Friday, March 16, 2001 8:05 PM
To: Tomcat Users (E-mail)
Subject: Using JDBCRealms


(Tomcat version 3.2.1.)

I'm trying to use JDBCRealm to manage access to some static files.  Is there
any documentation for that?

I've successfully configured authorization in web.xml (though it only seems
to work if the files are under webapps/ROOT--that's OK for what I'm doing,
but I am curious about why that is).

But I can't seem to get JDBCRealm (or my own subclass of that) to get
called.  I've added,

    <RequestInterceptor
        className="org.apache.tomcat.request.JDBCRealm"
        debug="99"
        driverName="oracle.jdbc.driver.OracleDriver"
        connectionURL="jdbc:oracle:thin:@localhost:1521:adb"
        connectionName="metax"
        connectionPassword="tiger"
        userTable="contacts"
        userNameCol="username"
        userCredCol="password"
        userRoleTable="user_roles"
        roleNameCol="role" />

to my conf\server.xml, and commented out the SimpleRealm interceptor.
JDBCRealm is on my classpath--"javap" can print it.  And that JDBC
connection works fine outside of JDBCRealms, so it's not a JDBC issue.

Near as I can figure, Tomcat isn't even loading the class.  Is there some
debugging I can turn on in Tomcat to see what's going wrong?

                                                            -- Bill K.