Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002400 [Quercus] minor always 02-05-08 04:50 08-07-08 20:26
Reporter nam View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.0 Product Version 3.1.4
  Product Build
Summary 0002400: oci_connect - java.lang.ClassCastException: oracle.jdbc.OracleDriver to DataSource
Description (rep by buckyball)

Since OCI support should be fixed in 3.1.5, I thought
to make a new try, but I still can't get it to work:

/home/sven/jetty-6.1.7/webapps-plus/quercus-3.1.3/index.php:3: Warning: A link to the server could not be established. java.lang.ClassCastException: oracle.jdbc.OracleDriver cannot be cast to javax.sql.DataSource [oci_connect]

I wonder why this happens. My configuration:

-- connection code:

$conn = oci_connect('xxx', 'yyy', 'java:comp/env/jdbc/DSTest');
if (!$conn) {
$e = oci_error();
print htmlentities($e['message']);
exit;
}

--- Datasource env:

<New id="DSTest" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/DSTest </Arg>
<Arg>
<New class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
<Set name="URL">jdbc:oracle:thin:@192.168.1.1:1521:PENTA </Set>
<Set name="User">xxx</Set>
<Set name="Password">yyy</Set>
</New>
</Arg>
</New>

As you can see, I don't use 'oracle.jdbc.OracleDriver' but 'oracle.jdbc.pool.OracleConnectionPoolDataSource'.

A *.jsp test page + sql tags worked with the same DataSource like a charm.

Any comments on that ?
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
02-05-08 04:50 nam New Issue
02-05-08 04:56 nam Description Updated
08-07-08 20:26 ferg Assigned To  => ferg
08-07-08 20:26 ferg Status new => closed
08-07-08 20:26 ferg Resolution open => fixed
08-07-08 20:26 ferg Fixed in Version  => 3.2.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker