java - ClassNotFoundException with Apache POI -


i using apache poi v3.9 , following statement giving classdefinitionnotfound exception

       hwpfdocument document=new hwpfdocument(file);   java.lang.classnotfoundexception: org.apache.poi.hwpf.hwpfdocument     @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1680)     @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1526)     @ com.anz.actions.converteraction.execute(converteraction.java:39)     @ org.apache.struts.chain.commands.servlet.executeaction.execute(executeaction.java:58)     @ org.apache.struts.chain.commands.abstractexecuteaction.execute(abstractexecuteaction.java:67)     @ org.apache.struts.chain.commands.actioncommandbase.execute(actioncommandbase.java:51)     @ org.apache.commons.chain.impl.chainbase.execute(chainbase.java:191)     @ org.apache.commons.chain.generic.lookupcommand.execute(lookupcommand.java:305)     @ org.apache.commons.chain.impl.chainbase.execute(chainbase.java:191)     @ org.apache.struts.chain.composablerequestprocessor.process(composablerequestprocessor.java:283)     @ org.apache.struts.action.actionservlet.process(actionservlet.java:1913)     @ org.apache.struts.action.actionservlet.dopost(actionservlet.java:462)     @ javax.servlet.http.httpservlet.service(httpservlet.java:643)     @ javax.servlet.http.httpservlet.service(httpservlet.java:723)     @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:290)     @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206)     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:233)     @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191)     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127)     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103)     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109)     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:293)     @ org.apache.coyote.http11.http11processor.process(http11processor.java:861)     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:606)     @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489)     @ java.lang.thread.run(unknown source) 

even though have included jars in build path:

poi poi-scratchpad poi-ooxml poi-ooxml-schemas  poi-examples  ooxml-schemas 

sometimes libraries may corrupted... please remove jars , add again, clean , run app..


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -