diff --git a/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java b/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java index b023b9fc666..fc991a54692 100644 --- a/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java +++ b/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/ogcwxs/Harvester.java @@ -911,7 +911,7 @@ private Element loadThumbnail(WxSLayerRegistry layer, Element xml, String schema Path filename = getMapThumbnail(layer); // Add downloaded file to metadata store - Store store = context.getBean(FilesystemStore.class); + Store store = context.getBean("filesystemStore", Store.class); try { store.delResource(context, layer.uuid, filename.getFileName().toString()); } catch (Exception e) {}