Problems with Log4jThank you for the very detailed report.
>From a quick look it seems that commons logging has problems with
log4j1.1.3.
And it clearly shows that we need an indipendent way of setting the logging.
I will look into this and report ASAP.
--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
----- Original Message -----
From: Gus Power
To: '[EMAIL PROTECTED]'
Sent: Friday, April 05, 2002 3:26 PM
Subject: Problems with Log4j
...
Case 6. [POI built from CVS with Log4j 1.1.3, Commons Logging 1.0] Removed
build and dist directories Deleted log4j-core.jar in lib\optional directory
Added log4j.jar from jakarta-log4j-1.1.3.tar.gz into lib\optional directory
Built POI jar: build.bat -> selected 'compile' target; created jar manually
[jar -cvf jakarta-poi-05042002.jar *.*] (Well actually I typed 'tar -cvf
...' and sat there wondering why until my sanity kicked back in again for a
bit)
Exception:
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.poi.util.POILogFactory.<clinit>(POILogFactory.java:76)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<clinit>(HSSFWorkbook.java:113)
...
Jars Used:
jakarta-poi-05042002.jar [Freshly built] commons-logging-1.0.jar log4j.jar
from jakarta-log4j-1.1.3.tar.gz
Thanks & Regards,
Gus Power.