该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
poi 将Server上的word文档 转化为HTML文件或者xml 文件,网上好多都只能在本地进行转化,如果将Server上的Word文件进行转化,会抛出如下异常!
十月 23, 2014 4:11:31 下午 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [DocumentServlet] in context with path [/jpw1.1] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: org/apache/poi/hwpf/HWPFDocument
at com.jpw.utils.Word2Html$$M$c26be1d9.convert2Html__RS__(Word2Html.java:63)
at com.jpw.utils.Word2Html$$A$c26be1d9.convert2Html__RS__()
at com.jpw.utils.Word2Html.convert2Html(Word2Html.java)
at com.jpw.document.service.impl.DocumentServiceImpl$$M$c2ed340c.upload(DocumentServiceImpl.java:75)
at com.jpw.document.service.impl.DocumentServiceImpl$$A$c2ed340c.upload()
at com.jpw.document.service.impl.DocumentServiceImpl.upload(DocumentServiceImpl.java)
at com.jpw.document.servlet.DocumentServlet$$M$9bafa503.add(DocumentServlet.java:39)
at com.jpw.document.servlet.DocumentServlet$$A$9bafa503.add()
at com.jpw.document.servlet.DocumentServlet.add(DocumentServlet.java:40)
at com.jpw.document.servlet.DocumentServlet$$M$9bafa503.doPost(DocumentServlet.java:26)
at com.jpw.document.servlet.DocumentServlet$$A$9bafa503.doPost()
at com.jpw.document.servlet.DocumentServlet.doPost(DocumentServlet.java:30)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at com.jpw.document.servlet.DocumentServlet.service(DocumentServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at com.jpw.document.servlet.DocumentServlet.service(DocumentServlet.java)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
实在是没法了!