Anonymous | Login | Signup for a new account | 12-17-2024 10:41 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002753 | [Quercus] | minor | always | 06-27-08 07:11 | 08-07-08 16:37 | ||||
Reporter | ferg | 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.6 | ||||
Product Build | |||||||||
Summary | 0002753: postgres driver | ||||||||
Description |
(rep by atijms ) I was trying to get a DB connection to a PostgreSQL DB from PHP using Quercus. Without configuring a JDNI datasource, Quercus attempts to instantiate the postgresql driver (org.postgresql.Driver). However, a while later Quercus.findDatabase tries to cast this into a javax.sql.Datasource. Of course this always fails, since org.postgresql.Driver does not implement this interface. The offending line seems to be in PostgresModule, line 276: String driver = "org.postgresql.Driver"; String url = "jdbc:postgresql://" [^] + host + ":" + port + "/" + dbName; Postgres postgres = new Postgres(env, host, userName, password, dbName, port, driver, url); Which eventually leads to a call in Quercus.java, line 444: Class cls = loader.loadClass(driver); return (DataSource)cls.newInstance(); So it seems like PostgresModule should not be providing "org.postgresql.Driver" as the driver name, right? |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |