After setting up JDBCStore, I add a graphic to the GeoServer styles directory using
I then create a new style:
If I try to render this style on a layer, I just get grey boxes instead of images. Looking through the debugger, I have traced this issue down to GeoServerDataDirectory line: 1201 . Here, we explicitly convert the resource path into a file path, which causes GeoServer to look in the old data directory (instead of the JDBC Resource Store), which does not contain the image.