Anybody would know why we can not seem to use a style I copied from an old server we used (we copied the entire data dir of GeoServer 2.4.5). The style is in the respective workspace with correct permissions but we still get an “org.geoserver.platform.ServiceException: No such style: line water” error. How can we fix this ?
this is very likely due to a corrupt xml definition file. In the style
directory there are sld and xml files.
In order to 'know' a style Geoserver needs and uses the XML file.
The XML file looks like that:
In the layer definition there is only a reference to the id
'4a678aa1:1448fb1baa5:-7fe8' in this case, but there is none to the name or
the sld file.
If you delete styles the sld files will still be in the directory. I suspect
your 'line water' sld file does still exist.
So the easiest way would be the interface and redefine the style. Browse and
upload the file first, the name will be filled in automatically, validate
and save and do not forget the layers where it was used as they will revert
to the default line style.
If you do not know which layers have changed, get the id of the default
style and search for that in the xml files of the layer directories.
Cheers
Christian
-----
____________________________
Dr Christian Maul
Project Manager
Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000