From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | Santiago Álvarez Martínez <santiagoam(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: "package org.postgresql.util does not exist" compilation problem |
Date: | 2010-08-04 04:47:19 |
Message-ID: | 4C58F0D7.9070603@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 03/08/10 23:18, Santiago Álvarez Martínez wrote:
>
> Hi:
>
> I'm developing a Java application, using Maven, Spring and Hibernate,
> and Postgre (with Postgis) as DBMS.
>
> Everything went OK, until I had to import the org.postgresql.util
> package, to use the PGobject class, in a UserType Hibernate class.
>
> I got the following errors:
>
> [...]
> [loading org/postgis/Geometry.class(org/postgis:Geometry.class)]
> [loading
> org/postgis/binary/BinaryParser.class(org/postgis/binary:BinaryParser.class)]
> [loading
> org/postgis/binary/BinaryWriter.class(org/postgis/binary:BinaryWriter.class)]
> /home/perseo/PFC/maven.1264475335794/src/main/java/es/udc/fiestas/model/util/types/PointType.java:15:
> package org.postgresql.util does not exist
I can import and use org.postgresql.util.PGobject in a Maven project
with the same version of PgJDBC. See example project:
http://www.postnewspapers.com.au/~craig/pgdemo.zip
Is it possible there's an elderly version of the PostgreSQL JDBC driver
on the classpath that lacks the org.postgresql.util package?
--
Craig Ringer
Tech-related writing: http://soapyfrogs.blogspot.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2010-08-04 04:58:45 | Re: PG 8.4 won't start on Windows Server 2008 64-bit |
Previous Message | J. Greg Davidson | 2010-08-04 03:32:27 | Re: Danger of idiomatic plpgsql loop for merging data |