According to the documentation for context.xml configuration in Tomcat6, I should be able to use
<Environment/> element in the context.xml file under the /conf folder to set an environment variable. I do not want to use web.xml and set per app. I need to set for the whole server.
I tried this:
<Environment name="env" value="DEV" type="java.lang.String"/>
But my variable isn't recognized.
I also tried changing web.xml on the application level using the <env-entry> element. This did not work either.
Am I supposed to use <context-param>? I'm following what is in the Tomcat docs.
<Environment/> element in the context.xml file under the /conf folder to set an environment variable. I do not want to use web.xml and set per app. I need to set for the whole server.
I tried this:
<Environment name="env" value="DEV" type="java.lang.String"/>
But my variable isn't recognized.
I also tried changing web.xml on the application level using the <env-entry> element. This did not work either.
Am I supposed to use <context-param>? I'm following what is in the Tomcat docs.