Re: RedHat Enterprise 3 and the JDBC driver

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: RedHat Enterprise 3 and the JDBC driver
Дата
Msg-id 403E638E.3050204@opencloud.com
обсуждение исходный текст
Ответ на RedHat Enterprise 3 and the JDBC driver  (Andrew Holm-Hansen <aehansen@chequesoft.com>)
Список pgsql-jdbc
Andrew Holm-Hansen wrote:
> Sorry if this is a repeated report of this problem (a cursory look
> through google turned up nothing).
>
> For some reason I can't build the jdbc driver on my RHE3 box.  Works
> just dandy on the RH9 box sitting right next to it.
>
> It's not really a show stopper since it's just the driver, and you can
> download it from the site seperately.
>
> The output from ant:
>
> driver:
>      [copy] Copying 1 file to
> /root/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql
>      [echo] Configured build for the JDBC3 edition driver with NO SSL
>
> compile:
>     [javac] Compiling 77 source files to
> /root/postgresql-7.4.1/src/interfaces/jdbc/build
>     [javac]
> /root/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Statement.java:28: error: Invalid checked
exceptionclass `java.sql.SQLException' in `throws' clause. The exception must be a subclass of an exception thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'from class
`org.postgresql.jdbc1.AbstractJdbc1Statement'.
>     [javac]             public PGRefCursorResultSet
> createRefCursorResultSet (String cursorName) throws SQLException

Most probably, your RHE3 box has an older version of the driver in its
CLASSPATH that is interfering with the build (the compiler is finding an
old version of some classes and using those rather than compiling the
current version from source).

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Andrew Holm-Hansen
Дата:
Сообщение: RedHat Enterprise 3 and the JDBC driver
Следующее
От: Jean-Christophe ARNU
Дата:
Сообщение: Re: Asynchronous notifications