Thanks Ian! Based on the logs the first issue was a permission denied and I was able to resolve it by changing ownership on .../Catalina/work from root to tomcat. The second issue was that my layer had spaces and brackets in it. When these are removed and the layer is called KP_Marker_C18 the shapefile export works! It would be a nice enhancement to have the function replace special characters with underscores during a shapefile export.
Thanks again, Vera For reference the second error was: -------------------- 2019-01-04 12:29:29,859 WARN [data.shapefile] - Error while writing featuretype 'KP Marker (C18)' to shapefile. java.io.IOException: Schema 'KP Marker (C18)' does not exist. at org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:535) ... etc. 2019-01-04 12:29:29,861 INFO [geoserver.servlets] - OutputStream was successfully aborted. 2019-01-04 12:29:29,861 ERROR [geoserver.ows] - java.io.IOException: java.io.IOException: Schema 'KP Marker (C18)' does not exist. at org.geotools.data.shapefile.ShapefileDumper.dump(ShapefileDumper.java:284) at org.geoserver.wfs.response.ShapeZipOutputFormat.write(ShapeZipOutputFormat.java:223) ... etc. Caused by: java.io.IOException: Schema 'KP Marker (C18)' does not exist. at org.geotools.data.store.ContentDataStore.ensureEntry(ContentDataStore.java:535) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:333) ... etc. On Fri, Jan 4, 2019 at 11:58 AM Ian Turton <ijtur...@gmail.com> wrote: > Try opening the file it probably contains the error message, or you can > look at the log file. > > Ian > > On Fri, 4 Jan 2019, 17:42 Vera Green <vera.green...@gmail.com wrote: > >> Hello, >> We are having an issue serving/exporting Shapefile files from >> GeoServer. Our environment is GeoServer 2.14.1 as a webapp in tomcat 8.5 >> on Centos7. >> >> When a user goes to the layer Preview page and selects Shapefile as the >> format a .zip file is provided but the file is of extremely small size (532 >> bites) and contains no data. The following error results when trying to >> extract the file: >> [image: image.png] >> >> Any suggestions appreciated, >> Vera >> _______________________________________________ >> Geoserver-users mailing list >> >> Please make sure you read the following two resources before posting to >> this list: >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> >> If you want to request a feature or an improvement, also see this: >> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >> >> >> Geoserver-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> >
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users