java poi xml转word文档_poi 将Server上的word文档 转化为HTML文件或者xml 文件

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

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)

实在是没法了!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值