Fixing HotSwap

My fellow developer and I were having trouble with the HotSwap feature ever since upgrading from IDEA 6.X to IDEA 7.0. We were getting a message about certain files missing. It did not make sense to us at the time that we should create these files, but upon actually doing so, the HotSwap feature started working again!
The two files were a WEB-INF/web.xml in a "preload" module that runs prior to deploying the main module, and a META-INF/context.xml in the path of the main module itself. I created these as bare XML stubs and that was enough for IDEA to go on.

My question is, if it was so simple to create these stubs and get HotSwap working, how come IDEA doesn't do the stub creation itself?

Please sign in to leave a comment.