I'm having some problem trying to read an Excel file, using Apache POI
Here's the exception: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/WorkbookFactory$CreateWorkbook0
I've done some research and found many stackoverflow solutions, that i tried to apply without results. I also checked all the imported jars under the buil path -> Library -> maven dependency and all the suggested jars are in place. The dependency added to the project are:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>4.1.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.15</version>
</dependency>
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.3</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.20</version>
</dependency>
I'm i missing something?
Any help is appreciated