Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Maksim A. Demin                      2:5020/400     18 Sep 2002  11:26:09
 To : All
 Subject : PostgreSQL и Java 2
 -------------------------------------------------------------------------------- 
 
 Доброго времени суток, All!
 
 Господа, кому нибудь удалось скрестить PostgreSQL 7.2.2 и Java 2 SE? При
 компиляции gmake-ом ant вываливатеся с сообщениями об ошибках. Ошибки такие
 (прошу прощения за объём):
 
 /usr/local/ant/bin/ant -buildfile ./build.xml all \
   -Dmajor=7 -Dminor=2 -Dfullversion=7.2.2 -Ddef_pgport=5432
 Buildfile: ./build.xml
 
 all:
 
 prepare:
     [mkdir] Created dir: /usr/src/postgresql-7.2.2/src/interfaces/jdbc/build
     [mkdir] Created dir: /usr/src/postgresql-7.2.2/src/interfaces/jdbc/jars
 
 check_versions:
 
 driver:
 [available] DEPRECATED - <available> used to override an existing property.
 [available]   Build file should not reuse the same property name for
 different values.
 [available] DEPRECATED - <available> used to override an existing property.
 [available]   Build file should not reuse the same property name for
 different values.
 [available] DEPRECATED - <available> used to override an existing property.
 [available]   Build file should not reuse the same property name for
 different values.
 [available] DEPRECATED - <available> used to override an existing property.
 [available]   Build file should not reuse the same property name for
 different values.
      [copy] Copying 1 file to
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql
      [echo] Configured build for the JDBC2 Enterprise edition driver
 
 compile:
     [javac] Compiling 53 source files to
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/build
     [javac]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/xa/XAConnection
 Impl.java:57: cannot resolve symbol
     [javac] symbol  : class RollbackException
     [javac] location: package transaction
     [javac] import javax.transaction.RollbackException;
     [javac]                          ^
     [javac]
 /usr/src/postgresql-7.2.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]
 /usr/src/postgresql-7.2.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/jdbc2/Connectio
 n.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseM
 etaData.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedS
 tatement.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/jdbc2/CallableS
 tatement.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/largeobject/PGb
 lob.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/largeobject/PGc
 lob.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]
 /usr/src/postgresql-7.2.2/src/interfaces/jdbc/org/postgresql/xa/ClientConnec
 tion.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
 file:/usr/src/postgresql-7.2.2/src/interfaces/jdbc/build.xml:72: Compile
 failed; see the compiler error output for details.
 
 Total time: 11 seconds
 gmake[3]: *** [all] Ошибка 1
 gmake[3]: Выход из каталог `/usr/src/postgresql-7.2.2/src/interfaces/jdbc'
 gmake[2]: *** [all] Ошибка 2
 gmake[2]: Выход из каталог `/usr/src/postgresql-7.2.2/src/interfaces'
 gmake[1]: *** [all] Ошибка 2
 gmake[1]: Выход из каталог `/usr/src/postgresql-7.2.2/src'
 gmake: *** [all] Ошибка 2
 
 Конфигурирую с такими опциями:
 
 ./configure  --with-libs=/usr/lib --with-includes=/usr/local/include --enabl
 e-locale --with-readline --enable-recode --enable-nls=ru --enable-multibyte=
 WIN --with-perl --enable-syslog --enable-debug --with-tcl --with-python --en
 able-odbc --with-odbcinst=/usr/local/pgsql/odbc --with-CXX --with-java
 
 Что где надо подкрутить? Чего не хватает?
 
 P.S. ASPLinux 7.2, PostgreSQL 7.2.2, Java 2 SE, ant-1.5
 
 С уважением, Максим.
 --- ifmail v.2.15dev5
  * Origin: Donbass Internet Center DIPT (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 PostgreSQL и Java 2   Maksim A. Demin   18 Sep 2002 11:26:09 
 Re: PostgreSQL и Java 2   Maksim A. Demin   18 Sep 2002 12:44:53 
Архивное /ru.linux/44093c21422c.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional