Hello,
Is there any known problem with any version of the jdk1.4.2???
I'm trying to create a HSSFWorkbook from within a servlet and read it, and in 
several environments it works OK.

It works in an Apache Tomcat 5.5, jdk 1.5.0_04 in a Windows XP machine.
It works in an Apache Tomcat 4.0.6, jdk 1.4.2_06 in a Linux machine.

But I need to install my app in a machine with the Ensim Control Panel, with 
this configuration:
Tomcat 4.0.6 (a special version), jdk 1.4.2 (don't know exactly the build) in 
Linux.

Here is the code that triggers the java.lang.NoClassDefFoundError:

   POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(fileName));
   HSSFWorkbook workbook = new HSSFWorkbook(fs);

With the Stack Trace I think I tracked down the error to this line of the 
source code, in the
org.apache.poi.hssf.usermodel.HSSFWorkbook class:

   List records = RecordFactory.createRecords(stream);

I think the problem is when trying to access the class 
org.apache.poi.hssf.record.RecordFactory.
The Stack Trace is below these lines.
Rings any bell?

------------------------------------

java.lang.NoClassDefFoundError
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:130)
at org.apache.jsp.import3$jsp._jspService(import3$jsp .java:187)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWra 
pper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.catalina.core.ApplicationDispatcher.inv 
oke(ApplicationDispatcher.java:683)
at org.apache.catalina.core.ApplicationDispatcher.doI 
nclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.acc 
ess$100(ApplicationDispatcher.java:115)
at org.apache.catalina.core.ApplicationDispatcher$Pri 
vilegedInclude.run(ApplicationDispatcher.java:146) 
at java.security.AccessController.doPrivileged(Native Method)
....

Reply via email to