Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm using GeoTools v8.0 and GeoServer v2.1.3. I've currently built a working datastore connecting to a PostGIS database based off of the GeotTools' abstract datastore tutorial. After days of on and off research, I cannot seem to find a way to deploy a datastore jar file to GeoServer.

I've expected that dropping a jar file in GeoServer 2.1.3\webapps\geoserver\WEB-INF\lib and cycling the server will allow it to discover and publish the availability of the datastore. I cannot find evidence of this happening in the logs and I definitely don't see evidence of it in the UI.

Ultimately, I would like to have a datastore that I can use complex SQL queries with (as opposed to just CQL) and write back geometry objects to my database via WFS-T as an option for selection in the GeoServer UI. Right now I'm interfacing with my database using views which doesn't allow me to save to the tables the views are referencing.

Has anyone done this before or is anyone aware of an example out there of how to do this? This is largely unfamiliar territory for me and any bit of help or direction is immensely appreciated.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

It's been a while since I did this (look for the excel datastore in unmaintained to see my code) - I seem to remember that the key trick is to makesure you have a

META-INF/services/org.geotools.data.DataStoreFactorySpi 

in your jar.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.