So the lookup in the second line that fails and return a null.
Context envCtx = (Context) initCtx.lookup("java:comp/env");

I'm currently not using JNI but I remembered a post some time 
ago. May be this helps:
http://mikal.org/interests/java/tomcat/archive/view?mesg=45843

> -----Urspr�ngliche Nachricht-----
> Von: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. Februar 2002 14:57
> An: Tomcat Users List
> Betreff: Re: AW: RE: database connect to db overr mod_webapp 
> - possible
> bug
> 
> 
> Hi
> 
> Its the third line  - I commented them all out and put them 
> in one by one.
> 
> javax.sql.DataSource ds = 
> (javax.sql.DataSource)envCtx.lookup("jdbc/IsmDB");
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to