I have added the following WFS source to the Stores in GeoServer. http://geoservices.rijkswaterstaat.nl/verkeersscheidingsstelsel_noordzee?service=wfs&version=1.1.0&request=GetCapabilities
This went well, and I can now see the list of supported feature types in the web interface, when trying to add a new layer. However, when selecting one of these feature types, I get an error. The feature type I have tried to add in this case is named nzvss_ank (named wfs_nzvss_ank in GeoServer). The relevant part of the stack trace is:
Caused by: java.lang.RuntimeException: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {http://www.opengis.net/wfs}nzvss_ank
at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:342)
at org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:309)
at org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:109)
at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:348)
at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:330)
at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:323)
... 97 more
The full stack trace can be found in this Gist.
The same exception occurs when trying to add other feature types, and when using other WFS links from the same provider.
Other information: GeoServer version is 2.6.0, charset set for the XML documents is UTF-8, feature buffer size is set to 10.
What can I do to fix this issue?