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));
I tried to add the jar files of different versions of Apache POI but nothing worked. Without the JSP environment my programs works.
This is my code: XWPFDocument docx = new XWPFDocument(new FileInputStream(folderName + fileName));
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
Thank you in advance.