[Geoserver-users] Integrate new data store into GeoServer.

Hello,

I created a new datastore (s. my previous threads) and am now trying to integrate it into GeoServer. I created a .jar file containing my data store classes as well as the org.geotools.data.DataStoreFactorySpi file in the META-INF\services folder.
However, GeoServer doesn't recognize the new data store when I try to add a new one (Config -> Data -> DataStores -> New).
Am I still missing something?

Thanks,
Bernd.

Hi Bernd,

I assume you copied the jar into WEB-INF/lib directory of GeoServer?
Would it be possible to view the contents of your archive. The output of
jar tvf <datastore jar> should do. Or better yet if its possible send us
the jar and we can take a look.

-Justin

Bernd Resch wrote:

Hello,

I created a new datastore (s. my previous threads) and am now trying to
integrate it into GeoServer. I created a .jar file containing my data
store classes as well as the org.geotools.data.DataStoreFactorySpi file
in the META-INF\services folder.
However, GeoServer doesn't recognize the new data store when I try to
add a new one (Config -> Data -> DataStores -> New).
Am I still missing something?

Thanks,
Bernd.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46ceda0092861849620573!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hi Bernd,

Sorry it took me so long to get back to you on this one. But I finally
got around to checking out your datastore. And everything looks ok from
this end. I of course have not actually used it to serve up any data but
i have successfully got it to show up in geoserver.

So my question is how are you running GeoServer? Are you running via
eclipse? Via jetty on the command line? Or are you running a real
geoserver install.

If you are running a GeoServer install all you have to do is drop it
into the WEB-INF/lib directory and you are good. However if you run via
eclipse or maven/jetty you will have to modify the web/pom.xml slightly
to add the dependency on your gt2-om module.

Something like this should work.

<dependencies>
  <groupId>org.geotools</groupId>
  <artifactId>gt2-om</artifactId>
</dependencies>

If you do not have a maven project set up for your datastore you can
still just install the jar in your local repository.

Let me know if any of this is unclear. I know i am just skimming over it :).

-Justin

Bernd Resch wrote:

Hey,

thanks. Enclosed, I send you the .jar file and the Java files, which I
use for the data store.
I still think I'm missing something, which makes GeoServer be aware of
my data store (we talked about a Java class/Servlet earlier, which ties
all together). I guess, the jar's not gonna work at this stage, but I'd
just like to know whether it's recognized by GeoServer.
- Does the package name of my classes have to have a certain toplevel
structure? (e.g. org.geotools.data.*)?
- And another general question: how do I design the GeoServer web page
to insert a new data store (StoreNew.do or sth.)? Or is this page just
created dynamically at GeoServer start-up?

Thanks again,
Bernd.

Justin Deoliveira wrote:

Hi Bernd,

I assume you copied the jar into WEB-INF/lib directory of GeoServer?
Would it be possible to view the contents of your archive. The output of
jar tvf <datastore jar> should do. Or better yet if its possible send us
the jar and we can take a look.

-Justin

Bernd Resch wrote:
  

Hello,

I created a new datastore (s. my previous threads) and am now trying to
integrate it into GeoServer. I created a .jar file containing my data
store classes as well as the org.geotools.data.DataStoreFactorySpi file
in the META-INF\services folder.
However, GeoServer doesn't recognize the new data store when I try to
add a new one (Config -> Data -> DataStores -> New).
Am I still missing something?

Thanks,
Bernd.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46d72a4d318932090977483!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org