I am trying to run the "build junt" command from my w2000 box and my
Postgres database lives on my Unix SunOS box. The junit tests are
looking for the database on my W2000 box and are failing (message
below)... Can I, and most importantly where, do I tell these tests to
look at my remote Unix box..

 

Build prepare-testdb worked because it is using my
profile/postgres.profile setting (included at the end of this message).
But the junit does not seem to know about these.. <sigh>

 

    [junit] DBMS:postgresql

    [junit] DRIVER: org.postgresql.Driver

    [junit] PROTOCOL: jdbc

    [junit] SUBPROTOCOL: postgresql

    [junit] DBALIAS: test

    [junit] USERNAME: user1

    [junit] PASSWORD: ray1lukas

    [junit] EAGER RELEASE: false: Error getting Connection from
DriverManager with url (jdbc:postgresql:test)

and driver (org.postgresql.Driver): Connection refused. Check that the
hostname and port is correct, and that

the postmaster is running with the -i flag, which enables TCP/IP
networking.

    [junit]     at
org.apache.ojb.broker.util.sequence.SequenceGenerator.getNextSequence(Un
known Source)

    [junit]     at
org.apache.ojb.broker.util.sequence.SequenceManagerHiLoImpl.getUniqueId(
Unknown Source)

    [junit]     at
org.apache.ojb.broker.SequenceManagerHandle.run(Unknown Source)

    [junit]     at java.lang.Thread.run(Thread.java:484)

    [junit] TEST org.apache.ojb.broker.AllTests FAILED

    [junit] Running org.apache.ojb.odmg.AllTests

    [junit] [BOOT] INFO: OJB.properties:
file:/D:/Downloads/OJBMappingSystem/jakarta-ojb-0.9.7/target/test/ojb

/OJB.properties

 

 

 

 




dbmsName = postgresql

jdbcLevel = 1.0

urlProtocol = jdbc

urlSubprotocol = postgresql

urlDbalias = test

databaseDriver = org.postgresql.Driver

databaseUser = user1

databasePassword = mucaWarBeast

databaseHost = dargo:5432

 

Reply via email to