I need to debug a web application under Tomcat 6 and Intellij Idea 12.1.4 Ultimate.
When I try to deploy my web app as an exploded WAR file, I get following exception:
java.lang.NoClassDefFoundError: ru/mycompany/MyClass
I looked into the directory with the exploded WAR (File -> Project structure -> Artifacts -> MyApp exploded -> Output directory equal to C:\dev\myapp\exploded) and found MyClass.class file in the C:\dev\myapp\exploded\ru\mycompany directory.
Since I'm getting the aforementioned error, this location is wrong.
Where should the MyClass.class be located inside the exploded WAR directory in order for Tomcat 6 to find it?