[Geoserver-devel] RE ST plugin error: HTTP/1.1 405 Method Not Allowed

Hi,

I'm using GeoServer 1.7.4 with the REST 1.7.2 plugin. When I try to add a
workspace using the following cURL command (per the example at the top of
http://gridlock.openplans.org/geoserver/1.7.x/doc/user/extensions/rest/rest-config-examples-curl.html):

curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' \
   -d '<workspace><name>acme</name></workspace>' \
   http://localhost:8080/geoserver/rest/workspaces

I get the following error:

* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'

POST /geoserver/rest/workspaces HTTP/1.1
Authorization: Basic YWRtaW46Z2Vvc2VydmVy
User-Agent: curl/7.19.5 (i586-pc-mingw32msvc) libcurl/7.19.5 zlib/1.2.3
Host: localhost:8080
Accept: */*
Content-type: text/xml
Content-Length: 40

< HTTP/1.1 405 Method Not Allowed
< Server: Apache-Coyote/1.1
< Allow: GET
< Date: Thu, 28 May 2009 22:25:37 GMT
< Server: Noelios-Restlet-Engine/1.0..8
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact
* Closing connection #0

Can someone please tell me why this isn't working and why I'm getting a '405
Method Not Allowed' error?

Thank you.

Sam C
--
View this message in context: http://www.nabble.com/REST-plugin-error%3A----HTTP-1.1-405-Method-Not-Allowed-tp23771321p23771321.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hi Sam,

<snip>

< HTTP/1.1 405 Method Not Allowed
< Server: Apache-Coyote/1.1
< Allow: GET
< Date: Thu, 28 May 2009 22:25:37 GMT
< Server: Noelios-Restlet-Engine/1.0..8
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact
* Closing connection #0

Can someone please tell me why this isn't working and why I'm getting a '405
Method Not Allowed' error?

It is the version of the plugin (see my last email). You will need to get the latest version of it working. The fact that 1.7.2 works with a 1.7.4 installation actually puzzles me.

Can you try grabbing a recent nightly build and the latest extension to verify that it is an installation issue.

http://gridlock.openplans.org/geoserver/1.7.x/geoserver-1.7.x-latest-bin.zip
or:
http://gridlock.openplans.org/geoserver/1.7.x/geoserver-1.7.x-latest-war.zip

and:

http://gridlock.openplans.org/geoserver/1.7.x/ext-latest/geoserver-1.7.5-SNAPSHOT-restconfig-plugin.zip

Thanks,

-Justin

Thank you.

Sam C

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.