Yes I would expect your new command to work fine but there are a few possible
explanations for why it might fail.

1) the target of your new path is different to your original relative path -
I assume /var/www/geo/shapefile/csvQshp/ does actually contain shapefiles
2) you might be seeing permissions issues where Tomcat (or whatever your
container is) can't read the data. If safe to do so you might want to verify
this by opening up privileges, e.g. something like chmod -R 0744
/var/www/geo/shapefile/csvQshp
3) as the datastore is created I assume there are no permissions issues with
Tomcat / whatever writing to the target directory

If you're still having trouble I would test by identifying a single
shapefile, rather than the directory

curl -u admin:geoserver -XPUT -H 'Content-type: text/plain' -d
'file:///var/www/geo/shapefile/csvQshp/someshape.shp'
"http://localhost:8080/geoserver/rest/workspaces/acme/datastores/csvQshp/external.shp?configure=all";
 



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/curl-not-creating-the-desired-datastore-tp5014713p5015302.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to