Hi all
I'm having trouble getting the NetCDF (for data sources) plugin to work on
Geoserver 2.9.2 (Jetty) under Ubuntu (and also Amazon) Linux. The problem is
always the same: it can't find the C library. The library is definitely
installed (at /usr/lib/libnetcdf.so), and I've even tried compiling my own
version in a home directory but with no success. Is there something simple that
I'm failing to understand?
As well as this, I've tried various iterations of the LD_LIBRARY_PATH and
JNA_PATH environment variables (Geoserver picks up changes to the latter as
shown below) but no luck.
Any assistance would be appreciated
Error log from server startup is below:
19 Oct 12:59:14 WARN [serverStartup] - Nc4Iosp: NetCDF-4 C library not present
(jna_path='/usr/lib', libname='netcdf').
java.lang.NoClassDefFoundError: com/sun/jna/Library
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at
org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
at ucar.nc2.jni.netcdf.Nc4Iosp.load(Nc4Iosp.java:172)
at ucar.nc2.jni.netcdf.Nc4Iosp.isClibraryPresent(Nc4Iosp.java:196)
at
org.geotools.imageio.netcdf.utilities.NetCDFUtilities.<clinit>(NetCDFUtilities.java:373)
at
org.geotools.imageio.netcdf.NetCDFImageReaderSpi.<clinit>(NetCDFImageReaderSpi.java:123)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
Thanks
Andy
------------------------------------------------------------------------------
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