java.lang.ClassNotFoundException: org.apache.poi.POIXMLTypeLoader

java.lang.ClassNotFoundException: org.apache.poi.POIXMLTypeLoader
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
at org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDocument1$Factory.newInstance(Unknown Source)
at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentCreate(XWPFDocument.java:279)
at org.apache.poi.xwpf.usermodel.XWPFDocument.(XWPFDocument.java:131)
at com.hundsun.hsbpm.common.action.PrintReportAction.report(PrintReportAction.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:180)



解决办法:

引入poi的3.15以上的版本。


org.apache.poi
poi
3.15


org.apache.poi
poi-ooxml-schemas
3.15


org.apache.poi
poi-ooxml
3.15

你可能感兴趣的:(java.lang.ClassNotFoundException: org.apache.poi.POIXMLTypeLoader)