nested exception is java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel /HSSFCellStyle
I am getting following exception while exporting jasper report in xls format.
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFCellStyle org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:899) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
December 8, 2008 | Filed Under Jasper
Related Post
Comments
3 Responses to “nested exception is java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel /HSSFCellStyle”
Leave a Reply
If you are exporting report in xls then you need to include poi.jar in the classpath. Poi.jar is Java API To Access Microsoft Format Files. Below is the download link
http://www.apache.org/dyn/closer.cgi/poi/dev/
Let me know if you still face the problem?
Hi there!
I am having this problem too.
I already have poi included in my project but I still get a runtime exception on line:
JRXlsExporter exporter = new JRXlsExporter();
Resulting in:
java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFCellStyle
Does anybody know what can be done to fix this issue?
Thanks and good luck!
Federico
It seems the classpath problem only. Recheck the classpath.