Mantis - Quercus
Viewing Issue Advanced Details
3625 block always 08-04-09 20:50 08-04-09 20:50
mtourne  
 
normal  
new 3.2.1  
open  
none    
none  
0003625: Unable to use Oracle Database with oci8
There is a defined way to "replace" calls to mysql_connect to the underlying jndi facility. But it look like this this method would fail for other SGBD drivers.
I've got a php application which uses Oracle and the oci8 driver to connect to it, and I can't get it to work.

I've tried to define the db this way in resin.conf :

  <database>
      <jndi-name>jdbc/test_oracle</jndi-name>
      <driver>
    <type>oracle.jdbc.pool.OracleConnectionPoolDataSource</type>
    <url>jdbc:oracle:thin:@localhost:1521:test</url>
    <user>test</user>
    <password>test/password>
      </driver>
    </database>

And use it in quercus/WEB-INF/web.xml

But I always get a StackOverflowError :

Caused by: java.lang.StackOverflowError
    at com.caucho.jca.ConnectionPool.allocate(ConnectionPool.java:773)
    at com.caucho.jca.ConnectionPool.allocateConnection(ConnectionPool.java:567)
    at com.caucho.sql.DataSourceImpl.getConnection(DataSourceImpl.java:65)
    at com.caucho.sql.DBPool.getConnection(DBPool.java:701)
    at com.caucho.quercus.env.Env.getConnection(Env.java:716)
    at com.caucho.quercus.lib.db.Oracle.connectImpl(Oracle.java:106)
    at com.caucho.quercus.lib.db.JdbcConnectionResource.connectInternal(JdbcConnectionResource.java:195)
    at com.caucho.quercus.lib.db.Oracle.<init>(Oracle.java:64)
    at com.caucho.quercus.lib.db.OracleModule.connectInternal(OracleModule.java:2245)
    at com.caucho.quercus.lib.db.OracleModule.oci_pconnect(OracleModule.java:1610)
    at com.caucho.quercus.lib.db.OracleModule.ociplogon(OracleModule.java:2097)
    at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)

There are no notes attached to this issue.