Anonymous | Login | Signup for a new account | 12-17-2024 08:46 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | 3.1.6 | ||||||
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? |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |