I am using GeoServer 2.2 and with a WPS that creates a Layer and uses the
ImportProcess to add it to a datastore of type 'Directory of spatial files
(shapefiles)'. It works great on a fresh deployment, but fails after a server
restart.
The issue seems to be that after a server restart, the DataStore implementation
is a wrapper class:
org.geoserver.feature.retype.RetypingDataStore (fails)
Whereas on a fresh deploy, the DataStore implementation class is:
org.geotools.data.directory.DirectoryDataStore (works)
The ImportProcess always calls createSchema() on the datastore.
DirectoryDataStore has an implementation for this method but the
RetypingDataStore is hardcoded to throw an UnsupportedOperationException. I
don't know know why GeoServer uses the RetypingDataStore on restart - the only
thing I can think of is that on a fresh deployment, the datastore storage
directory is empty whereas on restart there are some layer files in the
datastore directory.
More details are below. Does anyone know why this is happening?
Thanks in advance,
--ee
__A few more details__
The ImportProcess is:
org.geoserver.wps.gs.ImportProcess
The datastore.xml
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<dataStore>
<id>DataStoreInfoImpl-3fd1a82d:134489c7d5f:-7ffe</id>
<name>site_map</name>
<description>Datastore for the dynamic sites data layers</description>
<type>Directory of spatial files (shapefiles)</type>
<enabled>true</enabled>
<workspace>
<id>WorkspaceInfoImpl--721d3cdd:1396e705af5:-8000</id>
</workspace>
<connectionParameters>
<entry key="memory mapped buffer">true</entry>
<entry key="timezone">America/Chicago</entry>
<entry key="fstype">shape</entry>
<entry key="create spatial index">true</entry>
<entry key="charset">ISO-8859-1</entry>
<entry key="filetype">shapefile</entry>
<entry key="cache and reuse memory maps">true</entry>
<entry key="url">file:/some/path/in/the/webapp</entry>
<entry key="namespace">http://www.mynamespace.com/geoserver</entry>
</connectionParameters>
<__default>false</__default>
</dataStore>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users