I am having an issue with when running my web applications through IntelliJ in that IntelliJ is not copying the context descriptors for existing webapps deployed under CATALINA_HOME into the temporary CATALINA_BASE directory it sets up under my user home.
(e.g. c:\Documents and Settings\bob
I have Tomcat setup at c:\java\tomcat5.0.28 (CATALINA_HOME) and it has a web application deployed under webapps called OMAR which has a custom context descriptor with resource definitions. This context descriptor resides in CATALINA_HOME\conf\Catalina\localhost. I also have 3 webapps which form the basis for my IntelliJ project. I have setup IntellIiJ to use the Tomcat instance at c:\java\tomcat5.0.28.
When I run Tomcat through IntelliJ, it correctly deploys all the webapps from the IntelliJ project, and it makes the webapps which are deployed under the Tomcat CATALINA_HOME available. BUT it does not use the custom context descriptor I have provided for the OMAR webapp. If I copy the custom context descriptor into the correct place under the temporary CATALINA_BASE directory after I have started Tomcat it runs fine, but this is becoming a real overhead to do this manually each time I run. Also, if I copy the context descriptor into the directory then restart Tomcat through Intellij, it will get deleted on the restart, so I cant just copy it there and leave it.
Is there a way for me to define additional context descriptors for webapps other than those in the project to be copied into the IntelliJ generated CATALINA_BASE\conf\Catalina\localhost directory.
I would create some kind of script or macro to do this on post-deploy, but the temporary CATALINA_BASE directory can have a different name each time.
Any help on this is greatly appreciated.