In environments where parallel deployment is heavily used, having easy access to the Context Version would be really useful for logging/debugging purposes. Maybe a ServletContext attribute with the name "webappVersion" or "org.apache.tomcat.contextVersion" or something like that. Right now I have to use a (ugly) workaround found in this stackoverflow question: https://stackoverflow.com/questions/8230310/tomcat-7-retrieve-the-version-of-a-webapp-versioned-war
This is a duplicate of BZ 59232. I plan to add all context information as in here: http://mo-tomcat-ext.sourceforge.net/apidocs/net/sf/michaelo/tomcat/extras/listeners/ContextNamingInfoListener.html
Sort of. JNDI isn't always enabled so there is a use case for this stand-alone feature as well. Fixed in: - master for 10.0.0-M2 onwards - 9.0.x for 9.0.32 onwards - 8.5.x for 8.5.52 onwards - 7.0.x for 7.0.101 onwards
Many thanks.