1

I am trying to create a datastore for shapefile in GeoServer using REST API but I am unable to create a datastore for shapefile.

http://localhost:8080/geoserver/rest/workspaces/cite/datastores

<dataStore>
 <name>Test</name>
  <type>Shapefile</type>
  <enabled>true</enabled>
    <workspace>
    <name>cite</name>
  </workspace>
  <url>file:///home/ubuntu/mapfiles/test/shapefile.shp</url>
</dataStore>

ERROR: 500 Server Error

When I follow same procedure for GeoTIFF files everything works fine.

closed as unclear what you're asking by Ian Turton Aug 8 '17 at 17:55

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What does the log file say? What is the command you are using? – Ian Turton Aug 8 '17 at 17:55