compile of jdbc driver failed - Mailing list pgsql-jdbc

From Chantal Ackermann
Subject compile of jdbc driver failed
Date
Msg-id 02021409381700.04752@guffert
Whole thread Raw
List pgsql-jdbc
hello all,

if the following problem is already documented somewhere I'm sorry to bother
this list with it. I would be glad if someone could point me to the right
direction.

I want to install the postgresgl 7.2 configured with
--enable-multibyte
--with-java.

configure runs fine but ant fails to compile the driver. I have included the
error messages in this mail (see further down).

I have J2SDK1.4rcb91 Standard Edition installed. ant says that it will build
an Enterterprise Edition driver. I suppose that's because javax.sql is
included in 1.4? I did not check what's in my installation for sure, I assume
there are the same classes as listed in the appropriate API documentation.
But for example, there is no javax.transaction.RollbackException. There is
only a javax.transaction.TransactionRolledbackException.

Is the driver not compatible with jdk 1.4, yet? or do I have to install
another java package (some more javax.sql, or another version??) - if so
which one?

thanx for any help!

Chantal

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ANT MESSAGE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

prepare:
    [mkdir] Created dir: /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/build
    [mkdir] Created dir: /mnt/MP1/postgresql-7.2/src/interfaces/jdbc/jars

check_versions:

driver:
     [copy] Copying 1 file to
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC2 Enterprise edition driver

compile:
    [javac] Compiling 67 source files to
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/build
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/xa/XAConnectionImpl.java:57:
cannot resolve symbol
    [javac] symbol  : class RollbackException
    [javac] location: package transaction
    [javac] import javax.transaction.RollbackException;
    [javac]                          ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java:60:
org.postgresql.jdbc2.ResultSet should be declared abstract; it does not
define getURL(int) in org.postgresql.jdbc2.ResultSet
    [javac] public class ResultSet extends org.postgresql.ResultSet
implements java.sql.ResultSet
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java:25:
org.postgresql.jdbc2.Statement should be declared abstract; it does not
define getMoreResults(int) in org.postgresql.jdbc2.Statement
    [javac] public class Statement extends org.postgresql.Statement
implements java.sql.Statement
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java:37:
org.postgresql.jdbc2.Connection should be declared abstract; it does not
define setHoldability(int) in org.postgresql.jdbc2.Connection
    [javac] public class Connection extends org.postgresql.Connection
implements java.sql.Connection
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java:40:
org.postgresql.jdbc2.DatabaseMetaData should be declared abstract; it does
not define supportsSavepoints() in org.postgresql.jdbc2.DatabaseMetaData
    [javac] public class DatabaseMetaData implements java.sql.DatabaseMetaData
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java:32:
org.postgresql.jdbc2.PreparedStatement should be declared abstract; it does
not define setURL(int,java.net.URL) in org.postgresql.jdbc2.PreparedStatement
    [javac] public class PreparedStatement extends Statement implements
java.sql.PreparedStatement
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/jdbc2/CallableStatement.java:42:
org.postgresql.jdbc2.CallableStatement should be declared abstract; it does
not define registerOutParameter(java.lang.String,int) in
org.postgresql.jdbc2.CallableStatement
    [javac] public class CallableStatement extends
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/largeobject/PGblob.java:26:
org.postgresql.largeobject.PGblob should be declared abstract; it does not
define setBytes(long,byte[]) in org.postgresql.largeobject.PGblob
    [javac] public class PGblob implements java.sql.Blob
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/largeobject/PGclob.java:26:
org.postgresql.largeobject.PGclob should be declared abstract; it does not
define setString(long,java.lang.String) in org.postgresql.largeobject.PGclob
    [javac] public class PGclob implements java.sql.Clob
    [javac]        ^
    [javac]
/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/org/postgresql/xa/ClientConnection.java:70:
org.postgresql.xa.ClientConnection should be declared abstract; it does not
define setHoldability(int) in org.postgresql.xa.ClientConnection
    [javac] final class ClientConnection
    [javac]       ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 10 errors

BUILD FAILED

/mnt/MP1/postgresql-7.2/src/interfaces/jdbc/build.xml:72: Compile failed,
messages should have been provided.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

pgsql-jdbc by date:

Previous
From: Ned Wolpert
Date:
Subject: Re: Connection Pooling
Next
From: Luiz Bernardi
Date:
Subject: Character Set