On Wed, Nov 16, 2011 at 12:06 AM, Chris Shain <[email protected]> wrote:

> Some progress, but I think I'm stuck again.
>
> I have implemented a toy version of my data store as per the abstract data
> store docs here:
> http://docs.geotools.org/latest/userguide/tutorial/advanced/abstractdatastore.html,
> including some JUnit tests to make sure that it works (it does, for
> everything that I can test).
>

Ugh, AbstractDataStore is something we're trying to move away from. I tried
to steer you torwards ContentDataStore for a reason, it's the base class
for all new data stores (and the few old data stores still using it are
being migrated to it as well).


>
> Now I want to get it working in the geoserver web UI (so that I can create
> some stores and maybe get some data loaded into them).  I have created my
> META-INF/services/org.geotools.data.DataStoreFactorySpi file, and put the
> name of my datastore into it (org.geotools.extension.HBaseDataStoreFactory,
> for what it's worth).  I have also packaged my data store and
> associated DataStoreFactorySpi implementation into a jar located in
> WEB-INF/lib.  Unfortunately, I am not seeing the new store type as an
> option in the "New data source" page of the web UI.  I've cranked up the
> logging on my application server and in Geoserver itself, and I am not even
> seeing the name of my data store in the logs.
>
> Any ideas? Is there some other magic that I'm not yet aware of?
>

Not really. If you look at the existing data stores code there is always a
class testing the data store creating
via DataAccessFinder + param map, which is the pluggable way of doing it.
If that does not work GeoServer won't be able to pick up your new store

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to