You'll need to get a CVS copy of POI (which uses commons logging to get around this problem). Otherwise you'll have to recompile POI to work with specific versions of log4j.
We'll be releasing 1.5 shortly so the CVS edition is close to that level. -Andy Steven Citron-Pousty wrote: > Greetings all: > I built poi from source after pulling from CVS on tuesday this week. I > am using tomcat 4.0.3 on a win2k box with tomcat starting as a > service. J2sdk1.4. I put the log4j (v1.1.3) and the two poi jars in > \$tomcat_home\common\lib. > I can run the poi code no problem as a stand alone application with > the 3 jars in my classpath. > When I run it in the servlet I get the following runtime error: > > root cause > java.lang.NoClassDefFoundError: org/apache/log4j/Logger > at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:115) > at ssrsServlet.Data.extractData(Unknown Source) > at ssrsServlet.Data.doPost(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > This goes away when I put the 3 jars in \$javahome\jre\lib\ext, which > makes me think its a tomcat issue. Any thoughts or help on how to get > around this error without having to put the jars in the jvm directory > would be greatly appreciated. > Thanks, > Steve > BTW Poi ROCKS!!! Thanks so much for a wonderful piece of software. > >
