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]