Search Postgresql Archives

Re: "package org.postgresql.util does not exist" compilation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux