2

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?

taudorf
1,6652 gold badges16 silver badges29 bronze badges
asked Jun 14, 2011 at 23:21
5
  • is that error in the response returned by GeoServer or by the shell/command line? Commented Jun 14, 2011 at 23:35
  • @iant , its an command line reply Commented Jun 14, 2011 at 23:52
  • then curl is broken somehow. Commented 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 etc Commented Jun 15, 2011 at 1:03
  • did u get the solution to this problem? Commented Nov 8, 2012 at 3:21

1 Answer 1

2

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?

answered Jun 15, 2011 at 6:54
6
  • 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 tool Commented 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. Commented 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 plugin Commented 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? Commented 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 8080 Commented Jun 15, 2011 at 14:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.