[Geoserver-users] Geoserver polygon layer error

HI,

I recently installed the PostGIS to use it with Geoserver, the project that uses the PostGIS needs the GEOM extension. So I installed the GEOM and rebuilt the PostGIS, now I am getting the following error:

the Geoserver and PostGIS is running in Linux.

any help will be appreciated!.

in the tomcat log:

Ignoring feature type: ‘polygon’, error occured loading schema: An SQL exception occurred: ERROR: could not load library “/usr/lib64/pgsql/liblwgeom.so”: libgeos_c.so.1: cannot open shared object file: No such file or directory

24 Feb 11:43:27 INFO [geoserver.catalog] -

java.io.IOException: An SQL exception occurred: ERROR: could not load library “/usr/lib64/pgsql/liblwgeom.so”: libgeos_c.so.1: cannot open shared object file: No such file or directory

at org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:1124)


Thanks!

Giri

This seems to be an issue with your postgis install. The error indicates to me that the geos shared library is no the library path. Are you able to log into postgis via command line and execute any of the geos functions?

Giri wrote:

HI,

I recently installed the PostGIS to use it with Geoserver, the project that uses the PostGIS needs the GEOM extension. So I installed the GEOM and rebuilt the PostGIS, now I am getting the following error:

the Geoserver and PostGIS is running in Linux.

any help will be appreciated!.

in the tomcat log:

Ignoring feature type: 'polygon', error occured loading schema: An SQL exception occurred: ERROR: could not load library "/usr/lib64/pgsql/liblwgeom.so": libgeos_c.so.1: cannot open shared object file: No such file or directory

24 Feb 11:43:27 INFO [geoserver.catalog] -

java.io.IOException: An SQL exception occurred: ERROR: could not load library "/usr/lib64/pgsql/liblwgeom.so": libgeos_c.so.1: cannot open shared object file: No such file or directory

        at org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:1124)

Thanks!

Giri

------------------------------------------------------------------------

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.