I've just spent a couple of hours experimenting with this, and I can't find a way to get it to work. When I try to start a Tomcat session, IDEA pops up an error dialog saying "Neither exploded directory nor jar file are configured for the web module".
I shouldn't need either, as the module content is already set up in exploded dir format. I've tried making my source 'context root' (the directory containing WEB-INF in my source tree) the content root for the module; I've tried making a parent directory the content root and set the appropriate sub-directory as a Resource Directory mapped to '/' under Web Module Settings.
I've also tried setting the Web Module War File and Exploded Directory paths under J233 Build Settings (setting them each individually, or both together). IDEA can build me a duplicate exploded directory or WAR file where I tell it to, but still tells me neither option is set when I try to launch Tomcat.
I've tried everything I can think of, up down and sideways, and just can't for the life of me figure out what's going on.
Here's my project structure (in summary):
+ lib --libs needed to compile/test
+ java --main application src files
+ resources --additional resources
+ tests --Java src for unit tests
+ images --static content,
+ jsps --jsp files, etc
+ lib --runtime libs
+ web.xml --deployment descriptor
I would expect to be able to create a Web module in 'webapp' and have it 'just work', without any exploded directories or WAR files configured. I certainly expect it to work if I do configure either of those.
So, what on earth am I doing wrong here??
Thanks for any help!