I am using geoserver-2.1.1  rest api for publish the layer on Geoserver and
delete the layer from Geoserver.

I am using java code for publish and remove layer on Geoserver.

My code for publish layer:

GeoServerRESTPublisher publisher = new
GeoServerRESTPublisher("http://localhost:8080/geoserver";, "admin",
"geoserver");

//publisher.publishShp("Workspace", "store", "", file);

publisher.publishShp("kcube", "geobrowser_custom_layers", "", states);

It is working fine.

But I have a problem when remove layer from geoserver.

Mycode:

GeoServerRESTPublisher publisher = new
GeoServerRESTPublisher("http://localhost:8080/geoserver";, "admin",
"geoserver");

publisher.unpublishCoverage("kcube",
"geobrowser_custom_layers","test_remove");


Layer will be removed from Geoserver if i use above code  but it is showing
org.geoserver.rest.RestletException Exception.

I can't find out these issues.

Please reply me if anybody know those exception.










--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/org-geoserver-rest-RestletException-Exception-tp4982345.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to