Is there something that I could add to my context.xml file to add the 
"EnvironmentVariables" to my directory tree?  I am attempting to keep from 
modifying my code because it runs in Websphere in production and I am using 
Tomcat in my local environment.  Thanks in advance for any help.  Sorry next 
time I will post with a more meaningful subject line.

Thanks,

Marc Marshall

-----Original Message-----
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Friday, October 22, 2010 1:21 PM
To: Tomcat Users List
Subject: RE: Question

> From: Marshall, Marc [mailto:marc.marsh...@sug.com]
> Subject: RE: Question

> I am defining each of the Environment Variables in an <Environment>
> Tag inside of the context.xml like:
> <Context>
> ...
>  <Environment name="email.abc.signup.subject" value="Sign Up for the ABC Plan"
>               type="java.lang.String" override="false" />
> ...
> </Context>

If I've interpreted the spec correctly, you should be looking for 
java:comp/env/email.abs.signup.subject; AFAICT, there's no 
"EnvironmentVariables" level in the directory tree defined in the spec.

Also, where is your context.xml file?  Note that Tomcat copies the <Context> 
element to conf/Catalina/[host]/[appName].xml, which from that point on 
overrides the one in the webapp's META-INF/context.xml file.  So if you modify 
the latter, it will be ignored until you redeploy the webapp or delete the copy.

 - Chuck

P.S.  In the future, use a subject line a bit more meaningful that "Question".


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Private and confidential as detailed here: 
http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the 
link, please e-mail sender.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to