I had this exact problem, and had to download log4j 1.2beta4.   FOR ME, the
problems did not completely go away, until I REBUILT the POI distribution
with log4j 1.2beta4.  The version in CVS when 1.4583 was built ( someone
correct me if wrong ) I believe is log4j 1.2alpha7.  The differences between
1.2beta4 and 1.2alpha7 made the difference.  Unfortunately, just changing
the log4j jar at runtime wasn't enough for me.

That's the dangers with building with alpha/beta stuff.

Good news is, the problems went away after I rebuilt with 1.2beta4!  

-----Original Message-----
From: Reto Badertscher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 10:20 AM
To: [EMAIL PROTECTED]
Subject: Version 1.4583 & Log4j


Hello,

i'm trying to use the 1.4583 and get errors regarding Log4j. Could please
someone tell me which version to use?
With 1.2 beta i get the following error:
java.lang.NoSuchFieldError: org.apache.log4j.Priority: field INFO not found
        at org.apache.poi.util.POILogFactory.<init>(POILogFactory.java:120)
        at org.apache.poi.hssf.HSSFLog.<init>(HSSFLog.java:85)
        at org.apache.poi.hssf.HSSFLog.getPOILogger(HSSFLog.java:92)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>(HSSFWorkbook.java:115)
        at
pep.report.EmissionReport.writeDustEmission(EmissionReport.java:121)
        at pep.report.ReportWriter.main(ReportWriter.java:35)
Exception in thread "main"

With the 1.1.3 version i get

java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>(HSSFWorkbook.java:115)
        at
pep.report.EmissionReport.writeDustEmission(EmissionReport.java:121)
        at pep.report.ReportWriter.main(ReportWriter.java:35)
Exception in thread "main" Process terminated with exit code 1

Thanks for any help

Reply via email to