Man I had a fun fight between idea and Tomcat today.
I know others have run into this situation, and it seems like maybe the
feature is just plain missing.
In Tomcat (unfortunately that's what we use right now... Orion or Resin
are not an option) you have the ability to have a file called
context.xml which sits in META-INF. Normally when the webapp is
deployed Tomcat is supposed to know what to do with this file, rename it
to your context's name and use its contents to drive your context
Right now the only solution I seem to find while using is to setup an
ant task which I fire off before I run my tomcat config, and that copies
a file called abminer.xml to Catalina/localhost, then the app server
If I do it this way, I get my database connection and everything is
happy. (the only thing we're specifying in the context.xml is the JNDI
While this works, it seems that there should be a way for IDEA to do
this for us. Is there one that I missed?
Have you guys figured out a better way to do this?
If I add the file to the additional descriptors, nothing happens, it
doesn't get deployed right.
If I add a META-INF/context.xml file, nothing happens on deployment.
Any help for a good solution, besides copying the darn thing, would be