I have a problem getting the
DataSource from Tomcat 4.1. in OJB 0.9.7.!

It works OK outside the OJB, but when I declare
jini-datasource-name in repository.xml I get the
following error:

java.lang.UnsupportedOperationException
        at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:125)

The repository.xml looks like:
<jdbc-connection-descriptor
         platform="Oracle"
         jdbc-level="1.0"
         jndi-datasource-name="java:comp/env/OracleDS"
         username="sysadm"
         password="sysadm">
</jdbc-connection-descriptor>

and OJB.properties looks like:
ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryDe
faultImpl

It seems that OJB finds jndi-name, because when I put the wrong name in
jndi-datasource-name I get the another error like:

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
        at org.apache.naming.NamingContext.lookup(NamingContext.java:811)

Regards
Marino Tudor


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to