Hi Geoserver Users,
I am facing a weird issue. Using geoserver version 2.3.4
When I create a layer using the following command (I have left out content type, data path etc ):
curl -v -XPUT “http://hostname/geoserver/rest/workspaces/test/datastores/states2/file.shp?configure=all” the layer is created and I am able to view them immediately in the layer preview list (without any reload)
But when I create a layers using the following command :
curl -v -XPUT “http://hostname/mytest/geoserver/rest/workspaces/test/datastores/states2/file.shp?configure=all” the layer is created in file system but I am not able to view it in the layer preview list. I have to actually hit “reload of configuration and catalog” to view them.
Note “Mytest” is nothing but contextPath which is again pointing to geoserver webapp.
My requirement is to able to view the layers without performing any exclusively reload. If the request to geoserver comes context /mytest/geoserver why does not not create and deploy the layers ? why does it need a separate reload ?
Appreciate your help or pointers .
Thanks a lot,
Ravi