Hi Andy,
note that the specific message you are seeing should be related to a
WARNING reporting that the NetCDF-4 native library is missing.

Which NetCDF format Datasets would you like to handle?
NetCDF3 datasets are handled through simple java code so that you may
ignore that warning being reported by the ucar library about the missing
native lib.
In addition GeoServer may support NetCDF4-C (C=Classic) which is a special
format based on HDF5 to provide same data compression and chunking
capabilities of that format, having however same limitations of NetCDF3
data model. Some more info about the NetCDF4Classic is available here:
http://www.digitalpreservation.gov/formats/fdd/fdd000339.shtml

If you need to handle NetCDF4Classic dataset, or you want to write a
NetCDF4-C output file through WCS2.0, then you need the NetCDF-4 native
libraries being installed on your system. In that case, did you have
already taken a look to the related GeoServer documentation?
http://docs.geoserver.org/2.8.1/user/extensions/netcdf-out/nc4.html

Please, let us know.
Cheers,
Daniele








On Wed, Oct 19, 2016 at 3:06 PM, Andy Gabey <a.m.ga...@reading.ac.uk> wrote:

> 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
>
>


-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
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