java.lang.NoClassDefFoundError:org / apache / poi / ss / usermodel / RichTextString在org.primefaces.component.export.ExporterFactory.getExporterForType [英] java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/RichTextString at org.primefaces.component.export.ExporterFactory.getExporterForType
问题描述
< h:commandLink value =Excel >
< p:dataExporter type =xlstarget =dataTablefileName =boopageOnly =true/>
< / h:commandLink>
但不行。
在Internet Explorer浏览器中提供以下消息:
网页错误的详细信息消息:意外调用
方法或属性访问。
Mozilla Firefox中没有发生任何事情。
可能发生什么?
javax.servlet.ServletException:org / apache / poi / ss / usermodel / RichTextString
堆栈跟踪。我打赌根本原因是一个 NoClassDefFoundError
或 ClassNotFoundException
?在这种情况下,这只是意味着您忘记安装 Apache POI 。
下载这个Apache POI压缩文件,解压,将 poi-3.8-20120326.jar 放在 / WEB-INF / lib
文件夹并重建/重新部署/重新启动webapp。
I used the same sample code Primefaces has in its web page:
<h:commandLink value="Excel">
<p:dataExporter type="xls" target="dataTable" fileName="boo" pageOnly="true"/>
</h:commandLink>
But does not work. In Internet Explorer browser gives the following message:
Details of the errors of the web page Message: Unexpected call to method or property access.
Nothing ever happens in Mozilla Firefox.
What might be happening?
javax.servlet.ServletException: org/apache/poi/ss/usermodel/RichTextString
Look further down in the stacktrace. I bet that the root cause is either a NoClassDefFoundError
or ClassNotFoundException
? In that case, this just means that you forgot to install Apache POI.
Download this Apache POI zip file, extract it, put poi-3.8-20120326.jar in /WEB-INF/lib
folder and rebuild/redeploy/restart the webapp.
这篇关于java.lang.NoClassDefFoundError:org / apache / poi / ss / usermodel / RichTextString在org.primefaces.component.export.ExporterFactory.getExporterForType的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!