I'm trying to add layer to the existing layer group. 
Unfortunately, i cannot use UI since there is about 200+ layers need to be
added to the group.

Here is my request through the REST API 

curl -u u:u -v -XPUT -H 'Content-type: text/xml' "-d
'<layerGroup><name>Man</name><layer><name>12345</name></layer></layerGroup>'
http://localhost:8080/geoserver/rest/layergroups/Man";


response: 

< HTTP/1.1 500 Internal Server Error
< Transfer-Encoding: chunked
< Server: Jetty(6.1.8)
<
Element layer of type org.geoserver.catalog.impl.LayerInfoImpl is not
defined as field in type org.geoserver.catalog.impl.LayerGroupInfoImpl
---- Debugging information ----
class               : org.geoserver.catalog.impl.LayerGroupInfoImpl
required-type       : org.geoserver.catalog.impl.LayerGroupInfoImpl
line number         : 1
* Connection #0 to host localhost left intact
* Closing connection #0


any clue what is up? 
Thanks,
-y
-- 
View this message in context: 
http://old.nabble.com/REST---LayerGroup-adding-a-new-layer-tp29945805p29945805.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to