Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] 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  
Status closed   Product Version 3.1.4
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']);

--- Datasource env:

<New id="DSTest" class="">
<Arg>jdbc/DSTest </Arg>
<New class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
<Set name="URL">jdbc:oracle:thin:@ </Set>
<Set name="User">xxx</Set>
<Set name="Password">yyy</Set>

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 ?
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