Do you have any logs?

Which URL are trying?

Which is your context directoy struct ?

TIA

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: William Kaufman [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 20 de marzo de 2001 1:11
> Para: '[EMAIL PROTECTED]'
> Asunto: Using JDBCRealms
> 
> 
> (I posted this before, but I haven't seen any responses.  
> I've added some
> more information.)
> 
> (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:
> 
>     <security-constraint>
>       <web-resource-collection>
>         <web-resource-name>Protected Area</web-resource-name>
>         <url-pattern>/help/*</url-pattern>
>           <user-data-constraint>
>             <transport-guarantee>NONE</transport-guarantee>
>           </user-data-constraint>
>         <http-method>GET</http-method>
>         <http-method>PUT</http-method>
>         <http-method>POST</http-method>
>         <http-method>DELETE</http-method>
>       </web-resource-collection>
>       <auth-constraint>
>         <role-name>ViquityUser</role-name>
>       </auth-constraint>
>     </security-constraint>
>     <login-config>
>       <auth-method>BASIC</auth-method>
>       <realm-name>Viquity</realm-name>
>     </login-config>
> 
> 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 Tomcat, 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.
> 

Reply via email to