Hello, To make life easier we made a C#-tool to copy workspaces in a single GeoServer instance. When we change the element *<name>* in featuretype.xml from the original to the copy, then everything works fine. When we don't change the element *<name>*, then we get the following error :
Caused by: java.io.IOException: Schema ' www.xxxxxxxxx.nl/0410181117:v_KDPGegevens_Geo' does not exist. at org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:535) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:333) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:594) at org.geoserver.catalog.ResourcePool.getFeatureSource(ResourcePool.java:1266) at org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureSource(FeatureTypeInfoImpl.java:123) Looking at the code below from *org.geoserver.catalog.ResourcePool* there's something with *name* , *nativeName*and *nativeFeatureType* , *renamedFeatureType* . We'd like to know more about what happens here and if this explains the behavior we encounter...... // // aliasing and type mapping // final String typeName = info.getNativeName(); final String alias = info.getName(); final SimpleFeatureType nativeFeatureType = dataStore.getSchema(typeName); final SimpleFeatureType renamedFeatureType = (SimpleFeatureType) getFeatureType(info, false); if (!typeName.equals(alias) || DataUtilities.compare(nativeFeatureType, renamedFeatureType) != 0) { // rename and retype as necessary fs = RetypingFeatureSource.getRetypingSource( dataStore.getFeatureSource(typeName), renamedFeatureType); } else { // normal case fs = dataStore.getFeatureSource(info.getQualifiedName()); } Met vriendelijke groet, Barent Brouwers Smart Software Solutions www.greenutil.nl 06-23428345
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users