I have just seriously broken my geoserver installation.
We were fiddling around trying to create a new style, and didn't realize we have overriden the default raster.xml style. I renamed the style back to raster.xml and regenerated and forgot about the issue.
But I just restarted geoserver this morning, and now all of my services are broken, for all layers that used the raster style.
Checking the style page, I see the raster style duplicated:
I cannot remove them from the GUI, because It is prevented "can't remove default style".
I have also tried to remove the files in the data folder, as well as clear the cache, without being able to correct the problem so far.
Now, the main issue is that I cannot assign/unassign styles to my layers any more, because I get a nullpointerexception trying to get in the window.
Is there any way I can recover from this?