NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Obsolete logging dependency in toolsUI.jar

Hi Lak:

Try leaving out log4j.jar and just use nlog4j.jar.

Thanks for reporting, I am looking at upgrading nlog4j to use the unbundled
slf4j libraries. One problem is that log4j version 1.3 has been abandoned.


Valliappa Lakshmanan wrote:
> I tried  toolsUI-4.0.jar because I was having problems getting earlier
> versions of the netcdf API to read Grib2 files.
>
> However, the toolsUI version seems to have a logging problem, and when I run
> my code (which uses log4j via Apache Commons), I get the following
> exception:
>
>   [java] Exception in thread "main" java.lang.IncompatibleClassChangeError:
> Class org.apache.log4j.Logger does not implement the requested interface
> org.slf4j.Logger
>      [java]     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:635)
>      [java]     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:335)
>      [java]     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:305)
>      [java]     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:292)
>      [java]     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:280)
>
> ( I do have slf4j-api-1.1.0.jar and slf4j-log4j12-1.1.0.jar in my classpath
> )
>
> Searching on the internet for the error indicates (see:
> http://www.nabble.com/Trying-to-use-log4j-over-slf4j-td20249172.html )
> that it's because toolsUI.jar bundles the contents of nlog4.jar which is
> obsolete.
>
> I can avoid the error by using netcdf-4.0.jar (which is what I did), but
> thought I'd report the problem.
>
> Lak
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: