Have run into an issue where I was getting lots of ClassDefNotFound classloader problems, but only when loading the app via IDEA launcher. If I drop the .war into tomcat and start it the application runs without issue. Also the classes it was saying where not present, where in WEB-INF/lib and the same .war functions (tried resetting my local maven cache anyway - which didn't help).
Turns it this webapp had a META-INF/context.xml file with a loader defintion in it:
<?xml version="1.0" encoding="UTF-8"?>
This setting is for atmosphere, Comet functionality of navigator
to be able to run under Tomcat
The Loader delegate="true" seems to be causing all the classloader problems when launching inside an embedded tomcat container? is that right? (tomcat 7.0.39 under centos 6.5).
Not sure why this is required here, app seems to have had atmosphere support at some point, I'm not sure if this loader/context is required for this app or not, but IDEA doesn't like it.