reset password
Author Message
migcov
Posts: 10
Posted 12:46 May 20, 2009 |

Hello, When I try to connect to the database on cs3 server, I'm getting this error in the log:

 

2009-05-20 12:35:35,676  WARN JDBCExceptionReporter: SQL Error: 0, SQLState: null
2009-05-20 12:35:35,677 ERROR JDBCExceptionReporter: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
2009-05-20 12:35:35,678  WARN SettingsFactory: Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)

 

Build.Properties is:

app.name=csns
app.description=CSNetwork Services
app.version=1.5.0
app.url=http://localhost:8080/csns

## Information about the database
db.driver=org.postgresql.Driver
## Run it at cs3
db.url=jdbc:postgresql://cs3.calstatela.edu:5432/cs520stu01
db.username=cs520stu01
db.password=password

 

What could be the problem?

 

Thanks.

cysun
Posts: 2935
Posted 14:04 May 20, 2009 |

You may have a firewall that blocks the connection from your computer to the port 5432 of CS3.