Open scaddenp opened 4 years ago
Using 1.18.1 on Ubuntu Server 18.04 with Tomcat 8 - War file deploy.
@aaime - I have reproduced Phil's issue and have found the following;
Using the default url in the gwcWMSConfig bean in geowebcache-core-context.xml returns with a parsing error of the getCap file at http://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/msautotest/world/world.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
Error:
08 Dec 08:18:34 (http-nio-8080-exec-61) INFO [wms.GetCapabilitiesConfiguration] - Constructing from url http://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/msautotest/world/world.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities 08-Dec-2020 08:18:35.587 SEVERE [http-nio-8080-exec-61] org.geotools.xml.XMLSAXHandler.fatalError FATAL The element type "hr" must be terminated by the matching end-tag "</hr>". 08-Dec-2020 08:18:35.589 SEVERE [http-nio-8080-exec-61] org.geotools.xml.XMLSAXHandler.fatalError col 3, line 6 08-Dec-2020 08:18:35.590 SEVERE [http-nio-8080-exec-61] org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest Failed to execute request http://demo.mapserver.org/cgi-bin/mapserv?REQUEST=GetCapabilities&MAP=/osgeo/mapserver/msautotest/world/world.map&VERSION=1.1.1&SERVICE=WMS 08-Dec-2020 08:18:35.679 SEVERE [http-nio-8080-exec-61] org.geotools.xml.XMLSAXHandler.fatalError FATAL The element type "hr" must be terminated by the matching end-tag "</hr>". 08-Dec-2020 08:18:35.679 SEVERE [http-nio-8080-exec-61] org.geotools.xml.XMLSAXHandler.fatalError col 3, line 6 08-Dec-2020 08:18:35.679 SEVERE [http-nio-8080-exec-61] org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest Failed to execute request http://demo.mapserver.org/cgi-bin/mapserv?REQUEST=GetCapabilities&MAP=/osgeo/mapserver/msautotest/world/world.map&VERSION=1.1.0&SERVICE=WMS 08-Dec-2020 08:18:35.768 SEVERE [http-nio-8080-exec-61] org.geotools.xml.XMLSAXHandler.fatalError FATAL The element type "hr" must be terminated by the matching end-tag "</hr>". 08-Dec-2020 08:18:35.768 SEVERE [http-nio-8080-exec-61] org.geotools.xml.XMLSAXHandler.fatalError col 3, line 6 08-Dec-2020 08:18:35.769 SEVERE [http-nio-8080-exec-61] org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest Failed to execute request http://demo.mapserver.org/cgi-bin/mapserv?wmtver=1.0.0&request=capabilities&map=/osgeo/mapserver/msautotest/world/world.map&service=WMS
QGIS can read the getCap fine and shows the two layers that are visible at that endpoint.
Replacing that url in the gwcWMSConfig bean with something else like;
https://eumetview.eumetsat.int/geoserver/wms?service=wms&version=1.3.0&request=GetCapabilities
doesn't fail on parsing but the parser iterates over each layer - finds a layer with two CRS's - parses the first correctly and then fails on the second
07 Dec 21:44:19 (http-nio-8080-exec-41) INFO [wms.GetCapabilitiesConfiguration] - Found layer: msgiodc:msgiodc_ash with LatLon bbox -35.5,-77.0,118.5,77.0 07 Dec 21:44:19 (http-nio-8080-exec-41) WARN [grid.GridSubsetFactory] - Requested to create GridSubset with zoomStop 30 for GridSet EPSG:4326 whose max zoom level is 21. Limiting GridSubset to zoomStop = 21 07 Dec 21:44:19 (http-nio-8080-exec-41) ERROR [wms.GetCapabilitiesConfiguration] - Error creating msgiodc:msgiodc_ash: Can't parse CRS:84 as SRS string.
To me that's ok- I would expect then to see the layer in 4326 at least to be listed in my layer preview. However at the end of all of this I get
Unable to find any layers based on https://eumetview.eumetsat.int/geoserver/wms
which is surprising. I've looked through the code and it does look like an invalid CRS should fail gracefully but I'm not sure.
The quickstart neglects that GEOWEBCACHE_WEB_DIR must be defined. Also, uncommenting the gwcWMSConfig bean does not work. It returns "GridSetBroker has no DefaultGridsets configuration". It appears to me that config has recently changed but I dont see documentation on how the new configuration should be constructed.