[Geoserver-users] external wfs, get schema geoserver adds a wfs namespace to the layername

Hi

We are testing an External (cascading) WFS datasource in geoserver 2.4.2.
We just use some of the bathing waters WFS available from EA.

The datastore setup is working, it is only when trying to add a layer from
the datastore that we get a failure, the layer can not be found.

Caused by: org.geotools.data.SchemaNotFoundException: Feature type could not
be found for wfs:ea-wfs-bathing_waters_inspire at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getSchema(WFS_1_1_0_DataStore.java:257)
at
org.geotools.data.wfs.v1_1_0.WFSFeatureSource.<init>(WFSFeatureSource.java:69)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:590)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:108)
at
org.geoserver.feature.retype.RetypingDataStore.getFeatureSource(RetypingDataStore.java:158)
at
org.geoserver.feature.retype.RetypingDataStore.getFeatureSource(RetypingDataStore.java:293)
at
org.geoserver.feature.retype.RetypingDataStore.getFeatureSource(RetypingDataStore.java:46)
at
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:329)
at
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:300)
... 95 more

To our opinon, not sure about this, it seems that Geoserver addedd the wfs:
namespace to th eeffective layer name ea-wfs-bathing_waters_inspire.

Could it be that this is not found on the host as unknown (name with
namesapce wfs)?

Is it possible to set geoserver not use tha wfs namespace in this case?

tx

Luc

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/external-wfs-get-schema-geoserver-adds-a-wfs-namespace-to-the-layername-tp5102864.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Luc,

It is not clear where/when you see the error, I will assume it is when you try to add a layer.
I think problem can be because of several reasons:
Is table placed in correct schema (default is public)? Is the schema name spelled correctly?
Does the user geoserver use in datastore definition has privileges to read the table?

Regards,
Leo

···

On Mon, Feb 10, 2014 at 2:42 AM, lucvanlinden <luc.vanlinden@anonymised.com> wrote:

Hi

We are testing an External (cascading) WFS datasource in geoserver 2.4.2.
We just use some of the bathing waters WFS available from EA.

The datastore setup is working, it is only when trying to add a layer from
the datastore that we get a failure, the layer can not be found.

Caused by: org.geotools.data.SchemaNotFoundException: Feature type could not
be found for wfs:ea-wfs-bathing_waters_inspire at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getSchema(WFS_1_1_0_DataStore.java:257)
at
org.geotools.data.wfs.v1_1_0.WFSFeatureSource.(WFSFeatureSource.java:69)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:590)
at
org.geotools.data.wfs.v1_1_0.WFS_1_1_0_DataStore.getFeatureSource(WFS_1_1_0_DataStore.java:108)
at
org.geoserver.feature.retype.RetypingDataStore.getFeatureSource(RetypingDataStore.java:158)
at
org.geoserver.feature.retype.RetypingDataStore.getFeatureSource(RetypingDataStore.java:293)
at
org.geoserver.feature.retype.RetypingDataStore.getFeatureSource(RetypingDataStore.java:46)
at
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:329)
at
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:300)
… 95 more

To our opinon, not sure about this, it seems that Geoserver addedd the wfs:
namespace to th eeffective layer name ea-wfs-bathing_waters_inspire.

Could it be that this is not found on the host as unknown (name with
namesapce wfs)?

Is it possible to set geoserver not use tha wfs namespace in this case?

tx

Luc


View this message in context: http://osgeo-org.1560.x6.nabble.com/external-wfs-get-schema-geoserver-adds-a-wfs-namespace-to-the-layername-tp5102864.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users