WFS cascade : impossible to publish a layer

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

WFS cascade : impossible to publish a layer

bendeg

Hi,

 

My configuration :

Apache Tomcat/8.5.14 (Debian)

Geoserver 2.14.0

 

WFS capabilities URL : https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?service=wfs&request=getcapabilities

 

I try to cascade and publish a WFS layer but I always get the same error, even after playing with the store parameters (WFS versions, protocol strategy, etc…)

 

Via browser : no problem

Via QGIS (3.6 Noosa) : no problem. And, first saved as a shapefile and then exported in PostgreSQL, I can add it in Geoserver as a PostGIS store and previsualize it.

 

REM : just befor publishing the layer, the layer name is a bit weird : « Centres_et_postes_de_secours_Centres_et_postes_de_secours », as if the name were doubled with a namespace prefix (the typename to use in a GetFeature with a simple URL in the browser is « Centres_et_postes_de_secours :Centres_et_postes_de_secours » and the XML response is OK with all the features)

 

I suspect an issue with the layer name containing underscores, maybe…

 

Any idea ?

 

Geoserver error :

 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315) at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223) at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64) at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36) at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446) at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313) at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374) at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206) at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262) at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:361) at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328) ... 135 more

 

Geoserver log (VERBOSE mode, and, well, what I think is the most relevant of the problem…) :

2019-05-15 13:17:13,426 TRACE [data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET

2019-05-15 13:17:13,426 DEBUG [data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?

2019-05-15 13:17:13,426 TRACE [wfs.requests] - Built GET request for DESCRIBE_FEATURETYPE: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.opengis.net/gml

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours5178680691756999280.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,693 DEBUG [geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not locate schema for: dynamicFeature.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: topology.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: topology.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coverage.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: observation.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: observation.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/1999/xlink

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/

2019-05-15 13:17:18,952 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

2019-05-15 13:17:18,952 ERROR [data.ows] - Failed to execute request https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

 

 

Benoît

 

 



_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WFS cascade : impossible to publish a layer

Ian Turton
Well the layers name is "Centres_et_postes_de_secours:Centres_et_postes_de_secours" so that's correct. On my machine I get 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {<a href="https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours">https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315) at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223) at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64) at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36) at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446) at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313) at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374) at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206) at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262) at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:364) at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328) ... 135 more


Turning the logging level up gives:

2019-05-15 13:52:52,590 TRACE [org.geotools.data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET
2019-05-15 13:52:52,590 DEBUG [org.geotools.data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?
2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - looking up schema for http://www.opengis.net/gml
2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd
2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema
2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd
2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer
2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours1278202874594256203.xsd
2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer
2019-05-15 13:52:52,717 DEBUG [org.geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.
2019-05-15 13:52:52,956 DEBUG [org.geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.
2019-05-15 13:52:52,956 DEBUG [org.geotools.xml] - Could not locate schema for: dynamicFeature.xsd.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: topology.xsd to physical location.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: topology.xsd.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: coverage.xsd.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: observation.xsd to physical location.
2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: observation.xsd.
2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.
2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.
2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.
2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.
2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language
2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd
2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/1999/xlink
2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd
2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/
2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

So it seems as though the XSD file returned is invalid but I'm not sure why
 
(All the above were with the arcgis strategy)

Ian

On Wed, 15 May 2019 at 13:19, DEGRÈVE Benoît <[hidden email]> wrote:

Hi,

 

My configuration :

Apache Tomcat/8.5.14 (Debian)

Geoserver 2.14.0

 

WFS capabilities URL : https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?service=wfs&request=getcapabilities

 

I try to cascade and publish a WFS layer but I always get the same error, even after playing with the store parameters (WFS versions, protocol strategy, etc…)

 

Via browser : no problem

Via QGIS (3.6 Noosa) : no problem. And, first saved as a shapefile and then exported in PostgreSQL, I can add it in Geoserver as a PostGIS store and previsualize it.

 

REM : just befor publishing the layer, the layer name is a bit weird : « Centres_et_postes_de_secours_Centres_et_postes_de_secours », as if the name were doubled with a namespace prefix (the typename to use in a GetFeature with a simple URL in the browser is « Centres_et_postes_de_secours :Centres_et_postes_de_secours » and the XML response is OK with all the features)

 

I suspect an issue with the layer name containing underscores, maybe…

 

Any idea ?

 

Geoserver error :

 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315) at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223) at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64) at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36) at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446) at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313) at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374) at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206) at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262) at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:361) at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328) ... 135 more

 

Geoserver log (VERBOSE mode, and, well, what I think is the most relevant of the problem…) :

2019-05-15 13:17:13,426 TRACE [data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET

2019-05-15 13:17:13,426 DEBUG [data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?

2019-05-15 13:17:13,426 TRACE [wfs.requests] - Built GET request for DESCRIBE_FEATURETYPE: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.opengis.net/gml

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours5178680691756999280.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,693 DEBUG [geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not locate schema for: dynamicFeature.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: topology.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: topology.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coverage.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: observation.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: observation.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/1999/xlink

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/

2019-05-15 13:17:18,952 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

2019-05-15 13:17:18,952 ERROR [data.ows] - Failed to execute request https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

 

 

Benoît

 

 

_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Ian Turton


_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WFS cascade : impossible to publish a layer

bendeg

One thing :

 

I have read that Geoserver is quite strict with XML validation, and tries to check everything deeply.

When trying all URLs of xsi :schemaLocation of the XML GetCapabilities result, there’s a problem with one of them via the web browser :

https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/B0HauZcvLgYIRu8z/Centres_et_postes_de_secours/MapServer/WFSServer?service=wfs%26version=2.0.0%26request=DescribeFeatureType

ð  HTTP Status 401 - You do not have permissions to use this resource.

Could it be the problem ?

Benoît

 

De : Ian Turton [mailto:[hidden email]]
Envoyé : mercredi 15 mai 2019 15:01
À : DEGRÈVE Benoît
Cc : [hidden email]
Objet : Re: [Geoserver-users] WFS cascade : impossible to publish a layer

 

Well the layers name is "Centres_et_postes_de_secours:Centres_et_postes_de_secours" so that's correct. On my machine I get 

 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours

        at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315)

        at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223)

        at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64)

        at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70)

        at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215)

        at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36)

        at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446)

        at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313)

        at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374)

        at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206)

        at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262)

        at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:364)

        at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328)

        ... 135 more

 

as the root error.  That looks like the request to get the DescribeFeatureType is not working - but https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?service=wfs&request=DescribeFeatureType&typeName=Centres_et_postes_de_secours:Centres_et_postes_de_secours does work for me in the browser. 

 

Turning the logging level up gives:

 

2019-05-15 13:52:52,590 TRACE [org.geotools.data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET

2019-05-15 13:52:52,590 DEBUG [org.geotools.data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?

2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - looking up schema for http://www.opengis.net/gml

2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd

2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours1278202874594256203.xsd

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:52:52,717 DEBUG [org.geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.

2019-05-15 13:52:52,956 DEBUG [org.geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.

2019-05-15 13:52:52,956 DEBUG [org.geotools.xml] - Could not locate schema for: dynamicFeature.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: topology.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: topology.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: coverage.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: observation.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: observation.xsd.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/1999/xlink

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

 

So it seems as though the XSD file returned is invalid but I'm not sure why

 

(All the above were with the arcgis strategy)

 

Ian

 

On Wed, 15 May 2019 at 13:19, DEGRÈVE Benoît <[hidden email]> wrote:

Hi,

 

My configuration :

Apache Tomcat/8.5.14 (Debian)

Geoserver 2.14.0

 

WFS capabilities URL : https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?service=wfs&request=getcapabilities

 

I try to cascade and publish a WFS layer but I always get the same error, even after playing with the store parameters (WFS versions, protocol strategy, etc…)

 

Via browser : no problem

Via QGIS (3.6 Noosa) : no problem. And, first saved as a shapefile and then exported in PostgreSQL, I can add it in Geoserver as a PostGIS store and previsualize it.

 

REM : just befor publishing the layer, the layer name is a bit weird : « Centres_et_postes_de_secours_Centres_et_postes_de_secours », as if the name were doubled with a namespace prefix (the typename to use in a GetFeature with a simple URL in the browser is « Centres_et_postes_de_secours :Centres_et_postes_de_secours » and the XML response is OK with all the features)

 

I suspect an issue with the layer name containing underscores, maybe…

 

Any idea ?

 

Geoserver error :

 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315) at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223) at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64) at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36) at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446) at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313) at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374) at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206) at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262) at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:361) at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328) ... 135 more

 

Geoserver log (VERBOSE mode, and, well, what I think is the most relevant of the problem…) :

2019-05-15 13:17:13,426 TRACE [data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET

2019-05-15 13:17:13,426 DEBUG [data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?

2019-05-15 13:17:13,426 TRACE [wfs.requests] - Built GET request for DESCRIBE_FEATURETYPE: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.opengis.net/gml

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours5178680691756999280.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,693 DEBUG [geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not locate schema for: dynamicFeature.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: topology.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: topology.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coverage.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: observation.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: observation.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/1999/xlink

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/

2019-05-15 13:17:18,952 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

2019-05-15 13:17:18,952 ERROR [data.ows] - Failed to execute request https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

 

 

Benoît

 

 

_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


 

--

Ian Turton



_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WFS cascade : impossible to publish a layer

geowolf
Hi, 
that's a good guess... it's not about validation, but GeoServer needs to know the schema of the GML in advance
in order to parse it, as the parser is "schema driven" (it literally walks over the schema provided structure to do the parsing,
cannot do much without one). 
Maybe QGIS has one that tries to guess the list and nature of attributes from the resulting GML itself in case the schema is not available.

Formally that server setup is broken, the WFS specification assumes this workflow for WFS client:
1) GetCapabilities to get the list of feature types
2) DescribeFeatureType to get the list of attributes
3) GetFeature to get the actual data

It would be nice if GeoServer WFS cascading could step 2 or ignore a failure in it, but I don't believe there
is code to do that right now (mind, all of the above is based on an unverified supposition that GeoServer is 
actually making that call and parsing breaking because of it, but I haven't verified it in a step by step debugger)

Cheers
Andrea


On Wed, May 15, 2019 at 3:30 PM DEGRÈVE Benoît <[hidden email]> wrote:

One thing :

 

I have read that Geoserver is quite strict with XML validation, and tries to check everything deeply.

When trying all URLs of xsi :schemaLocation of the XML GetCapabilities result, there’s a problem with one of them via the web browser :

https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/B0HauZcvLgYIRu8z/Centres_et_postes_de_secours/MapServer/WFSServer?service=wfs%26version=2.0.0%26request=DescribeFeatureType

ð  HTTP Status 401 - You do not have permissions to use this resource.

Could it be the problem ?

Benoît

 

De : Ian Turton [mailto:[hidden email]]
Envoyé : mercredi 15 mai 2019 15:01
À : DEGRÈVE Benoît
Cc : [hidden email]
Objet : Re: [Geoserver-users] WFS cascade : impossible to publish a layer

 

Well the layers name is "Centres_et_postes_de_secours:Centres_et_postes_de_secours" so that's correct. On my machine I get 

 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours

        at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315)

        at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223)

        at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64)

        at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70)

        at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215)

        at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36)

        at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446)

        at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313)

        at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374)

        at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206)

        at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262)

        at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:364)

        at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328)

        ... 135 more

 

as the root error.  That looks like the request to get the DescribeFeatureType is not working - but https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?service=wfs&request=DescribeFeatureType&typeName=Centres_et_postes_de_secours:Centres_et_postes_de_secours does work for me in the browser. 

 

Turning the logging level up gives:

 

2019-05-15 13:52:52,590 TRACE [org.geotools.data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET

2019-05-15 13:52:52,590 DEBUG [org.geotools.data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?

2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - looking up schema for http://www.opengis.net/gml

2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd

2019-05-15 13:52:52,714 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours1278202874594256203.xsd

2019-05-15 13:52:52,715 DEBUG [org.geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:52:52,717 DEBUG [org.geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.

2019-05-15 13:52:52,956 DEBUG [org.geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.

2019-05-15 13:52:52,956 DEBUG [org.geotools.xml] - Could not locate schema for: dynamicFeature.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: topology.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: topology.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: coverage.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not resolve schema location: observation.xsd to physical location.

2019-05-15 13:52:52,957 DEBUG [org.geotools.xml] - Could not locate schema for: observation.xsd.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.

2019-05-15 13:52:52,958 DEBUG [org.geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/1999/xlink

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/

2019-05-15 13:52:52,959 DEBUG [org.geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver-2.14/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

 

So it seems as though the XSD file returned is invalid but I'm not sure why

 

(All the above were with the arcgis strategy)

 

Ian

 

On Wed, 15 May 2019 at 13:19, DEGRÈVE Benoît <[hidden email]> wrote:

Hi,

 

My configuration :

Apache Tomcat/8.5.14 (Debian)

Geoserver 2.14.0

 

WFS capabilities URL : https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?service=wfs&request=getcapabilities

 

I try to cascade and publish a WFS layer but I always get the same error, even after playing with the store parameters (WFS versions, protocol strategy, etc…)

 

Via browser : no problem

Via QGIS (3.6 Noosa) : no problem. And, first saved as a shapefile and then exported in PostgreSQL, I can add it in Geoserver as a PostGIS store and previsualize it.

 

REM : just befor publishing the layer, the layer name is a bit weird : « Centres_et_postes_de_secours_Centres_et_postes_de_secours », as if the name were doubled with a namespace prefix (the typename to use in a GetFeature with a simple URL in the browser is « Centres_et_postes_de_secours :Centres_et_postes_de_secours » and the XML response is OK with all the features)

 

I suspect an issue with the layer name containing underscores, maybe…

 

Any idea ?

 

Geoserver error :

 

Caused by: org.geotools.data.DataSourceException: No XSDElementDeclaration found for {https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer}Centres_et_postes_de_secours at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parseFeatureType(EmfAppSchemaParser.java:315) at org.geotools.data.wfs.internal.parsers.EmfAppSchemaParser.parse(EmfAppSchemaParser.java:223) at org.geotools.data.wfs.internal.DescribeFeatureTypeResponse.<init>(DescribeFeatureTypeResponse.java:64) at org.geotools.data.wfs.internal.parsers.DescribeFeatureTypeResponseFactory.createResponse(DescribeFeatureTypeResponseFactory.java:70) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:215) at org.geotools.data.wfs.internal.WFSRequest.createResponse(WFSRequest.java:36) at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:446) at org.geotools.data.wfs.internal.WFSClient.internalIssueRequest(WFSClient.java:313) at org.geotools.data.wfs.internal.WFSClient.issueRequest(WFSClient.java:374) at org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:206) at org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262) at org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:361) at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328) ... 135 more

 

Geoserver log (VERBOSE mode, and, well, what I think is the most relevant of the problem…) :

2019-05-15 13:17:13,426 TRACE [data.wfs] - Looking operation URI for DESCRIBE_FEATURETYPE/GET

2019-05-15 13:17:13,426 DEBUG [data.wfs] - Returning operation URI for DESCRIBE_FEATURETYPE/GET: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?

2019-05-15 13:17:13,426 TRACE [wfs.requests] - Built GET request for DESCRIBE_FEATURETYPE: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.opengis.net/gml

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/gml.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/XMLSchema

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xs/XMLSchema.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - looking up schema for https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - schema location: file:/tmp/tomcat8-tomcat8-tmp/Centres_et_postes_de_secours5178680691756999280.xsd

2019-05-15 13:17:13,688 DEBUG [geotools.xml] - building schema for schema: https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer

2019-05-15 13:17:13,693 DEBUG [geotools.xml] - Could not locate schema for: http://schemas.opengis.net/gml/3.2.1/gml.xsd.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not resolve schema location: dynamicFeature.xsd to physical location.

2019-05-15 13:17:18,948 DEBUG [geotools.xml] - Could not locate schema for: dynamicFeature.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: topology.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: topology.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coverage.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coverage.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: coordinateReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: coordinateReferenceSystems.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: observation.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: observation.xsd.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not resolve schema location: temporalReferenceSystems.xsd to physical location.

2019-05-15 13:17:18,949 DEBUG [geotools.xml] - Could not locate schema for: temporalReferenceSystems.xsd.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not resolve schema location: deprecatedTypes.xsd to physical location.

2019-05-15 13:17:18,950 DEBUG [geotools.xml] - Could not locate schema for: deprecatedTypes.xsd.

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/Language

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20-language.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/1999/xlink

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-core-20.0.jar!/org/geotools/xlink/xlinks.xsd

2019-05-15 13:17:18,951 DEBUG [geotools.xml] - looking up schema for http://www.w3.org/2001/SMIL20/

2019-05-15 13:17:18,952 DEBUG [geotools.xml] - schema location: jar:file:/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gt-xsd-gml3-20.0.jar!/org/geotools/gml3/smil/smil20.xsd

2019-05-15 13:17:18,952 ERROR [data.ows] - Failed to execute request https://dservices1.arcgis.com/B0HauZcvLgYIRu8z/arcgis/services/Centres_et_postes_de_secours/WFSServer?NAMESPACE=xmlns%28Centres_et_postes_de_secours%3Dhttps%3A%2F%2Fdservices1.arcgis.com%2FB0HauZcvLgYIRu8z%2Farcgis%2Fservices%2FCentres_et_postes_de_secours%2FWFSServer%29&TYPENAME=Centres_et_postes_de_secours%3ACentres_et_postes_de_secours&REQUEST=DescribeFeatureType&VERSION=2.0.0&SERVICE=WFS

 

 

Benoît

 

 

_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


 

--

Ian Turton

_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.



_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: WFS cascade : impossible to publish a layer

bendeg
As you get the same error on your side, and before assuming our partner
(indeed, we've been given temporary access to external data to implement and
test an application concerning emergency public services) server setup is
broken, there's one more thing to mention :

I think features are *complex features*, not simple ones : when trying to
get the features directly from an Openlayer application, the JSON formated
features received from their server is invalid because there's a property
that contains something like an ID which is between curly braces.

Seeing those curly braces the parser fails because what's between them
doesn't respect the JSON syntax, it's just an ID...

And if I try to get a GML format, whatever the wfs service version or the
GML format used in Openlayers, all points are "inverted" (Y X instead of X
Y). I can't get it right.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users