title: How to add Apache POI to JSP correctly to perform XWPFDocument in Eclipse?
body: <p>I added the jar files of apache poi to the build path of my project but still have an error when trying XWPFDocument docx = new XWPFDocument(new FileInputStream(folderName + fileName));</p>
  
  <p>I tried to add the jar files of different versions of Apache POI but nothing worked. Without the JSP environment my programs works.</p>
  
  <p>This is my code: XWPFDocument docx = new XWPFDocument(new FileInputStream(folderName + fileName));</p>
  
  <p>This is my error message:
  org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Servlet.service() for servlet [jsp] in context with path [/MYPACKAGENAME] threw exception [javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/poi/xwpf/usermodel/XWPFDocument] with root cause</p>
  
  <p>Thank you in advance.</p>