• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WO 5.3 and Tomcat property files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: WO 5.3 and Tomcat property files?
      • From: David Aspinall <email@hidden>
  • Prev by Date: Re: PK Generation in MySQL
  • Next by Date: Re: Setting a Default toOne Relationship
  • Previous by thread: Re: DB connection failing.
  • Next by thread: Re: WO 5.3 and Tomcat property files?
  • Index(es):
    • Date
    • Thread