db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sangyoon Oh <ohsa...@cs.indiana.edu>
Subject Torque -- Postgres (Build failed)
Date Mon, 03 Feb 2003 17:11:46 GMT
Hi,

I am trying to install Torque with Postgres. I just simply follow the 
tutorial on the web and build torque itself was successful. But, when I 
tried to build Database on the Postgres, I've got this error.

===================================================================
[ohsangy@sangay torque-3.0]$ ant -f build-torque.xml create-db
Buildfile: build-torque.xml

create-db:
[torque-data-model] Generating to file
/home/ohsangy/torque-3.0/src/sql/create-db.sql
[torque-data-model] Resolver: used database.dtd from
org.apache.torque.engine.database.transform package
[torque-data-model] Resolver: used
http://jakarta.apache.org/turbine/dtd/database_3_0_1.dtd
     [echo]
     [echo]       Executing the create-db.sql script ...
     [echo]

BUILD FAILED
file:/home/ohsangy/torque-3.0/build-torque.xml:302: Connection refused.
Check that the hostname and port are correct and that the postmaster is
accepting TCP/IP connections.

Total time: 5 seconds
=================================================================

And this is my build.properties file

=================================================================
torque.project = bookstore

torque.database = postgresql

torque.database.createUrl = jdbc:postgresql://127.0.0.1
torque.database.buildUrl = jdbc:postgresql://127.0.0.1/bookstore
torque.database.url = jdbc:postgresql://127.0.0.1/bookstore
torque.database.driver = org.postgresql.Driver
torque.database.user = postgres
torque.database.password =
torque.database.host = 127.0.0.1

torque.sameJavaName = false

===============================================================

Postgres is installed /usr/local/pgsql. 'postgres' is the owner of it 
and I did not set the password for any user.


I do not know whether URLs or user account on postgres cause an error.
I appreciate in advance for answers.





Mime
View raw message