[Geoserver-users] Problem Configuring a new coveragestore with REST

Hello,

I'm trying to use REST to configure a coveragestore.
I use this command :

curl -v -u admin:geoserver -XPOST -T coveragestore.xml -H
'Content-type: text/xml'
http://10.0.3.2:8081/geoserver/rest/workspaces/gn/coveragesstores

here the coveragestore.xml :

<?xml version="1.0" encoding="UTF-8"?>
<coverageStore>
  <name>test_world</name>
  <enabled>true</enabled>
  <type>WorldImage</type>
  <url>file:coverages/BlueMarble_world/world.tiff</url>
</coverageStore>

I obtain this message with curl : HTTP/1.1 500 Erreur Interne de Servlet
Geoserver throws a cast exception about xstream. I've attached the log
to this mail.

Is this a bug? or am i doing something wrong?

I use geoserver 1.7.3.a with the REST extension

Exception_rest_geoserver.txt (5.9 KB)

I have found the solution the url
http://10.0.3.2:8081/geoserver/rest/workspaces/gn/coveragesstores is
wrong. I've replaced coveragesstores by coveragestores and is working
now. It could be useful to have error messages more meaningful with
the REST API to help debugging.

I apologize for this useless message.

2009/4/10 Nicolas CASTEL <nic.castel@anonymised.com>:

Hello,

I'm trying to use REST to configure a coveragestore.
I use this command :

curl -v -u admin:geoserver -XPOST -T coveragestore.xml -H
'Content-type: text/xml'
http://10.0.3.2:8081/geoserver/rest/workspaces/gn/coveragesstores

here the coveragestore.xml :

<?xml version="1.0" encoding="UTF-8"?>
<coverageStore>
<name>test_world</name>
<enabled>true</enabled>
<type>WorldImage</type>
<url>file:coverages/BlueMarble_world/world.tiff</url>
</coverageStore>

I obtain this message with curl : HTTP/1.1 500 Erreur Interne de Servlet
Geoserver throws a cast exception about xstream. I've attached the log
to this mail.

Is this a bug? or am i doing something wrong?

I use geoserver 1.7.3.a with the REST extension