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

查看:3400
本文介绍了java.lang.NoClassDefFoundError:org / apache / poi / ss / usermodel / RichTextString在org.primefaces.component.export.ExporterFactory.getExporterForType的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了Primefaces在其网页中的相同示例代码:

 < 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆