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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to