When trying to use classes of the org.apache.commons.collections4 jar in my web application deployed on TomEE 1.6.0.2 (Tomcat 7.0.53) I get a ClassNotFoundException.
I stripped down the web application to just one simple HttpServlet doing nothing else but calling a method on CollectionUtils. In the pom.xml there's nothing else but the dependency to org.apache.commons.collections4. When deployed, the jar is in WEB-INF/lib. But the exception is still being thrown.
When using the classes from apache commons collections 3.2.1, everything is fine.
Any tips and hints that help to find the problem's origin are much appreciated! Thanks, Felix
I had to add openejb.classloader.forced-load=org.apache.commons.collections4 in conf/system.properties