Rickard,

Thanks for taking the time to help with this.  I tried your suggestions and,
indeed, I get a ClassNotFoundException with both methods (Class.forname(),
loadClass()) when trying to load
"org.jboss.minerva.datasource.JDBCPoolDataSource".

Is this a bug? Working as designed? More importantly (to me), can I get
around it somehow?

Thanks again,

Bill Pfeiffer

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard Oberg
> Sent: Saturday, October 21, 2000 2:48 AM
> To: jBoss
> Subject: Re: [jBoss-User] servlet access to cached db connections
>
>
> Hi!
>
>
> > When I try to access the DataSource using jndi:
> >
> >       Context naming = new InitialContext();
> >       DataSource dataSource =
> > (DataSource)naming.lookup("java:comp/env/InetSQLServer");
> >
> > I get the following exception:
> >
> > javax.naming.NameNotFoundException: comp not bound
>
> Sorry, yes, since we do not yet have java: support in Tomcat.
>
> > When I try looking up just "InetSQLServer" I get a datatype of
> > javax.naming.reference (or something like that)
>
> That should work though. Incredibly strange that you get a
> reference, since
> that should have been dereferenced to the real thing.
>
> Hmm... could be a classpath problem though. If the lookup cannot find the
> factory to change the reference into a real object then it will fail. So,
> perhaps the datasource reference factories are not visible from Tomcat.
> Should be easy to check. Just do a Class.forName() on
> org.jboss.minerva.datasource.JDBCPoolDataSource in your servlet
> and see what
> happens. Might want to try loadClass() on
> Thread.currentThread().getContextClassLoader() as well.
>
> /Rickard
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to