tomcat-users mailing list archives

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


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,

Chat with friends online, try MSN Messenger:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message