GeoServer tiled layer are not loaded due Spring beans cyclic dependencies, GWC integration deletes the layer configurations as a result

Description

WMS and LegendSample beans used in GeoServerTileLayer may provoke a cyclic dependency when Spring beans are loaded, as a consequence tiled layers may not be loaded and are delete by GWC integration.

The full satcktrace is available as an attachment of this issue, the most important part is this one:

The important (and scary) part being "GeoServer TileLayer named 'test:watertemp' with id 'LayerInfoImpl-3c021fdc:1573d915ea1:-7fed' can't be loaded. It will be removed from the configuration but you'll need to delete its cache manually (if any)"

Environment

None

Assignee

Nuno Oliveira

Reporter

Nuno Oliveira

Triage

None

Fix versions

Affects versions

None

Components

Priority

Highest
Configure