Possibly because I have an older version (2.1.2) I just found it easier to browse/upload/validate/submit from the styles page.
Thanks anyhow.
Jim
On 09/06/2013 07:00 AM, geoserver-users-request@lists.sourceforge.net wrote:
Hello Jim,
have you also copied the stylename.xml? This file has an ID which is
essential to reference and register the style with geoserver.This ID turns up with the layer.xml in the workspace:
<layer>
<name>VMADD.ADDRESS</name>
<id>LayerInfoImpl--4c68f0d5:128cd132f0d:-7f8a</id>
<type>VECTOR</type>
<defaultStyle>
<id>StyleInfoImpl--*2e0631ee:136997f03ca:7037*</id>
</defaultStyle> etc, etc.......That is why it makes sense to copy both directories, 'styles' and
'workspace' otherwise you will have layers that reference a style that does
not exist and styles that are not used by your layers and the name does not
matter as the connection is via the ID above.Cheers
Christian
--
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps <http://whitecodingandmaps.com/>