WO 5.3 and Tomcat property files?
WO 5.3 and Tomcat property files?
- Subject: WO 5.3 and Tomcat property files?
- From: Dave Elsner <email@hidden>
- Date: Fri, 19 May 2006 16:39:13 +1000
Hi,
What the best approach to use property files from development in and
for deployment within tomcat? Because it seems they are not being
read in at run time
System.getProperty("foo") always returns null under tomcat, but
works perfectly in development in Xcode.
I tried printing out System.getProperties() and none of my
application properties have been loaded only the built in Java ones
are there.
How does every one else handle this?
1) Manually add properties as <env-entry> in the web.xml file?
2) Avoid properties altogether ?
3) Something else?
I had a quick look at LEConfigServletEnvEntryMergeTool from lejstuff
from Andrew Lindesay and it looks promising. As it appears to convert
property files to <env-entry> in the web.xml file, but running it out
of the box I got IO.exceptions.
- Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden