If you get the CVS edition of POI then all you'll need is the commons logging (hopefully not as a system library). Once it finds that then if it can't configure logging it just doesn't log.
-Andy On Thu, 2002-03-28 at 11:37, Steven Citron-Pousty wrote: > another update. It also works if I put the jars in \$tomcathome\lib. > This really makes me think its a tomcat issue. But if people have other > suggestions it would be great to hear them... > Steve > > 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. > > > > -- http://www.superlinksoftware.com http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound Document format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh
