Re: [Geoserver-users] org.geoserver.platform.ServiceException: No such style

2014-03-19 Thread cmaul
Hello Karsten,

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

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/org-geoserver-platform-ServiceException-No-such-style-tp5129991p5130013.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] org.geoserver.platform.ServiceException: No such style

2014-03-19 Thread karsten
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 ? 

Karsten

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users