Hello GeoServer Users, I recently had some trouble figuring out how to get GeoServer 2.11.1 working with GDAL 2.2 under Tomcat 9. I eventually found a way to get it to work and wanted to update everyone in this thread with a possible solution.
In my case I installed GDAL 2 from the UbuntuGIS/unstable PPA with the Java bindings, then copying the jar files to GeoServer's WEB-INF/lib directory (along with the GDAL plugin jar files). I kept getting errors about gdaljni not being found, and my problems were solved by starting Tomcat 9 with certain environment variables: $ sudo -u tomcat9 GDAL_DATA=/usr/share/gdal/2.2 JAVA_OPTS="-Djava.library.path=/usr/lib/jni" /opt/tomcat9/bin/startup.sh It seems the JNI files in "/usr/lib/jni" are what needed to be included. I summarized more of the setup in a document on a GitHub repo: https://github.com/GeoSensorWebLab/geoserver-gdal-demo Hope this helps others getting GDAL 2 running. Sincerely, James Badger PS — I am not sure if I properly replied to a thread that existed before I subscribed to the mailing list. In case my message isn't properly threaded, here is a link to the thread: https://sourceforge.net/p/geoserver/mailman/message/35950218/ > Hello everyone, > > I tried to install GeoServer with GDAL extension on Geoservwer, but I am not > ablel to make it run. I Ubuntu 16.4 as operating system. When I run gdalinfo > I receive the following message: > Usage: gdalinfo [--help-general] [-json] [-mm] [-stats] [-hist] [-nogcp] > [-nomd] > [-norat] [-noct] [-nofl] [-checksum] [-proj4] > [-listmdd] [-mdd domain|`all`]* > [-sd subdataset] [-oo NAME=VALUE]* datasetname > > FAILURE: No datasource specified. > When I run > http://localhost:8080/geoserver/rest/about/status > , I get the > following message: > Module name: ImageI/O-Ext GDAL Coverage Extension > > Module : gs-gdal > Component : GridCoverage2DReader > Version : 1.1.17 > Enabled : true > Available : false > Message : JNI GDAL Wrapper Version: unavailable > java.library.path: /var/lib/tomcat7/webapps/geoserver/WEB-INF/lib/ > > In SERVER STATUS/Modules I get the following message: > Module Name: ImageI/O-Ext GDAL Coverage Extension > Module ID: gs-gdal > Version: 1.1.17 > Component: GridCoverage2DReader > Message: > > JNI GDAL Wrapper Version: unavailable > java.library.path: /var/lib/tomcat7/webapps/geoserver/WEB-INF/lib/ > > > I tried different solutions, nothing worked. Any tip is very much > appreciated. :) > > Kind regards, > Corina > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
