when I try to create a workspace/layer/store following http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples/rest-config-examples-curl.html I am getting "System cannot find the file specified".... My curl is working fine with http.
What might be the solution?
-
is that error in the response returned by GeoServer or by the shell/command line?Ian Turton– Ian Turton2011年06月14日 23:35:38 +00:00Commented Jun 14, 2011 at 23:35
-
@iant , its an command line replyVikash Talanki– Vikash Talanki2011年06月14日 23:52:00 +00:00Commented Jun 14, 2011 at 23:52
-
then curl is broken somehow.Ian Turton– Ian Turton2011年06月15日 00:09:13 +00:00Commented Jun 15, 2011 at 0:09
-
but I am able do other things successfully, like curl -v google.com giving a successful result, curl -O iitk.html www.iitk.ac.in giving the html file etcVikash Talanki– Vikash Talanki2011年06月15日 01:03:10 +00:00Commented Jun 15, 2011 at 1:03
-
did u get the solution to this problem?Sam007– Sam0072012年11月08日 03:21:18 +00:00Commented Nov 8, 2012 at 3:21
1 Answer 1
An initial thought, have you downloaded and/or made sure you have the rest plugin. I recall that the standard geoserver donwload comes with one, but this is limited and you need to download the "new" plugin that has more access to the api?
-
I have installed Geoserver-2.1.0, so the rest is inbuilt in it. And I am also able to use http;//localhost:8080/geoserver/rest from the browser, But no idea why its giving error in command toolVikash Talanki– Vikash Talanki2011年06月15日 07:14:01 +00:00Commented Jun 15, 2011 at 7:14
-
Probably didnt explain the issue well. After installing Geoserver I had some similar problems that my scripts that worked using curl suddenly stopped working, very frustrating then I checked the size of the rest plugin that came with the standard install against the one that you can download from the plugins and they were different (same name different size), I dropped the one that I downloaded from the plugins area into geoserver and everything was back to normal.geomatt– geomatt2011年06月15日 08:47:01 +00:00Commented Jun 15, 2011 at 8:47
-
@user3026, can you please tell me where can I find geoserver rest plugin. Because in sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/… I cannot find any rest pluginVikash Talanki– Vikash Talanki2011年06月15日 13:14:04 +00:00Commented Jun 15, 2011 at 13:14
-
It looks as though the rest api plugin is available for 2.0.3 but not built for 2.1 yet. Are you able to use 2.0.3?geomatt– geomatt2011年06月15日 14:21:17 +00:00Commented Jun 15, 2011 at 14:21
-
I have rest-2.0.3 but not restconfig-2.0.3 . And I think that is why I cannot see anything in localhost:8081/geoserver/rest I have geoserver 2.0.3 at 8081 and 2.1.0 at 8080Vikash Talanki– Vikash Talanki2011年06月15日 14:36:42 +00:00Commented Jun 15, 2011 at 14:36