I am trying to use the GDAL extension with GeoServer. I installed GeoServer
2.11.1 and the GDAL extension. I also followed the instructions to download
the GDAL native libraries and add them to the PATH environment variable.
I'm using Windows 7 and Java 8u121 64-bit.

After installing the extension, GeoServer fails to start. Here is the
exception stack trace.

2017-06-19 10:03:05.908:WARN:oejuc.AbstractLifeCycle:main: FAILED
o.e.j.w.WebAppContext@5b464ce8{/geoserver,file:/C:/dev/geoserver/tmp/geoserver-2.11.1/webapps/geoserver/,STARTING}{C:\dev\geoserver\tmp\geoserver-2.11.1\webapps\geoserver}:
java.util.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi:
Provider
it.geosolutions.imageio.plugins.jp2kakadu.JP2GDALKakaduImageWriterSpi could
not be instantiated
java.util.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi:
Provider
it.geosolutions.imageio.plugins.jp2kakadu.JP2GDALKakaduImageWriterSpi could
not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:210)
at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at
org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:185)
...
Caused by:
java.lang.NoClassDefFoundError: org/gdal/gdal/gdal
at
it.geosolutions.imageio.gdalframework.GDALUtilities.loadGDAL(GDALUtilities.java:624)
at
it.geosolutions.imageio.gdalframework.GDALImageWriterSpi.<clinit>(GDALImageWriterSpi.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:210)
at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at
org.geoserver.GeoserverInitStartupListener.contextInitialized(GeoserverInitStartupListener.java:185)

It looked like a missing jar, so I downloaded imageio-ext-1.1.17-jars.zip
and copied imageio-ext-gdal-bindings-1.9.2.jar to
webapps/geoserver/WEB-INF/lib.This fixes the error and I can use the GDAL
extension in GeoServer.

Is this a bug in the GDAL extension packaging and should
imageio-ext-gdal-bindings-1.9.2.jar be added
to geoserver-2.11.1-gdal-plugin.zip?

Thanks,
Corey
------------------------------------------------------------------------------
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to