I'm running tomcat 5.5.20 and I'm unable to retrieve Environment variables that are defined in the DefaultContext. I know this isn't working because if I alter the DefaultContext tag to a Context one and run the same webapp, the Environment variables are retrieved successfully by the app. This is a problem because multiple auto-deployed apps need to share the same Environment variables. The only available workaround is to repeat the Environment tags within explicit Context tags for each known webapp deployed in the Host's appBase. This has been tested in Linux using jdk 1.6 and in Windows using jdk 1.5.
There is no DefaultContext tag in TC 5.5+
Please could the tomcat 5.5 documentation be updated to reflect this? because I do not know what to use as an alternative. I noticed the DefaultContext page was taken offline, but all the remaining documentation still refers to it. In the meantime, could I have a hint as to how to replace the DefaultContext? Thank you v much!! :)
Hint: $CATALINA_BASE/conf/context.xml *** This bug has been marked as a duplicate of 40633 ***
How do you define default contexts for auto-deployed apps in multiple vhosts, where each vhost requires different defaults?