This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes FileNotFoundException with specifying Properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply locked New topic
Author

FileNotFoundException with specifying Properties file

Danny Tran
Greenhorn

Joined: Mar 02, 2003
Posts: 8
hi,
I have a properties file "application.properties" and i put it in config directory from the application root (web-inf/classes/config/application.properties) and deploy the application in weblogic 7.0.2
in the same directory (config) i have a Configurator class (Congurator.class) that tries to read this file. however i could not figure out how to specify the path for the properties file
currently i have:
properties.load(new FileInputStream("/config/application.properties"));
but this returns FileNotFoundException. i tried with other path ("application.properties") but it return the same exception.
if anyone know how to fix this, please help me.. this one really drives me crazy =(
many thanks.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
Danny, please don't post the same question in multiple forums. It wastes time for evceryone involved if they aren't aware of other answers that have been posted. Please post follow-ups here. Thanks.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: FileNotFoundException with specifying Properties file
 
Similar Threads
Portable pathnames
Exception with specifying properties file path in application
referencing folders from within build.xml
unusual exception with properties file path --- please help
help me with specify properties file please