Hi list,

Happy (Marathi) new year to all . :)

Replying to my post in case anyone facing the same issue:

The* datastore.xml *in the *data_dir/workspaces/campusgis/* folder has a
fixed format.

All the entries in this file need to be Case Sensitive , plus they have to
be in a particular sequence only.

So I looked at a sample *datastore.xml* in another workspace and modified my
initialization script to
generate a ditto *datastore.xml* in *campusgis* wokspace.

regards,
-
Vivek M. Chaure

*Software Engineer,*
GISE <http://www.gise.cse.iitb.ac.in/> Advanced Research Lab,
C.S.E., IIT Bombay.



On Fri, Apr 1, 2011 at 9:15 PM, Vivek Chaure <[email protected]> wrote:

> Hi list,
>
> Hope you all are doing good.
>
> I am trying to write a script to publish postgis layers geoserver using
> cURL.
>
> The following line should add the table boundary_r1 as a layer on geoserver
> under
> workspace: campusgis
> datastore : campusgis
>
> curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d
> '<featureType><name>boundary_r1</name></featureType>'
> http://localhost:18080/geoserver/rest/workspaces/campusgis/datastores/campusgis/featuretypes
> -v
>
> but no layer is being created in the geoserver.
>
> the error log generated on geoserver is
>
> 01 Apr 21:03:10 INFO [catalog.rest] - POST workspace campusgis
> 01 Apr 21:03:10 INFO [org.geoserver] - Loaded store 'campusgis', enabled
> 01 Apr 21:03:10 INFO [catalog.rest] - POST data store campusgis
> 01 Apr 21:03:10 INFO [org.geoserver] - *Loaded feature type 'boundary_r1',
> disabled*
> 01 Apr 21:03:10 ERROR [geoserver.rest] - :null
> 01 Apr 21:03:10 ERROR [geoserver.rest] -
> org.geoserver.rest.RestletException: *java.io.IOException*
>
> Any pointers please?
>
> regards,
> -
> Vivek M. Chaure
>
> *Software Engineer,*
> GISE <http://www.gise.cse.iitb.ac.in/> Advanced Research Lab,
> C.S.E., IIT Bombay.
>
>
>
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to