java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/RichTextString at org.primefaces.component.export.ExporterFactory.getExporterForType

前端 未结 2 631
逝去的感伤
逝去的感伤 2021-01-22 21:43

I used the same sample code Primefaces has in its web page:

                     
  

        
2条回答
  •  心在旅途
    2021-01-22 22:29

    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.

提交回复
热议问题