tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Bennett" <dbennett...@hotmail.com>
Subject JNDI in a Custom Realm
Date Fri, 10 May 2002 14:06:34 GMT

Hi,

I am trying to write a custom realm that authenicates to a database.

I am trying to use a JDBC datasoure within the realm. When I try to access
this datasource through JNDI I get a NamingException of "Name java:comp is
not bound in this Context"

If I access the same JDBC datasource through a servlet in the same context
everything works.

If I remove the JNDI lookup from the realm and authenticate every request
the realm works.

Both the custom realm and the JDBC datasource are defined in the same
context in the server.xml.

I am using 4.0.3 and JDK 1.3.X

Any help would be great.

Thanks for your time,
Doug




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message