-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: 6.1.0 CE GA1
-
Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
-
Component/s: Environments, Environments > Databases
-
Labels:
-
Environment:Liferay 6.0.6
Tomcat 6.0.29
Debian Linux(5.0).
Java version "1.6.0_20"
Postgresql 8.3.11
-
Branch Version/s:6.0.x
When writing a PHP portlet, I am unable to create a connection to a Postgresql db using pg_connect(), the portlet displays:
Warning: A link to the server could not be established. java.lang.ClassCastException: org.postgresql.Driver cannot be cast to javax.sql.DataSource [pg_connect]
As a test, I've also tried to connect to a mysql db using php's mysql_connect(), which does work and I can query the db etc, so it seems to be a postgesql.jar specific issue.
I've tried this on a couple of different machines with the same result.