This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Spring and the fly likes Accessing property file from weblogic domain in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Accessing property file from weblogic domain in spring" Watch "Accessing property file from weblogic domain in spring" New topic
Author

Accessing property file from weblogic domain in spring

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Hi,

In my web application, I need to access property file located in weblogic domain. (<domain>/config/weblogic.properties)

Here is my code



I am getting file not found error. Any Idea how can I read file properly.

Thanks,

~ Anand,
SCJP 1.5, SCWCD 1.5
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

<domain>/config/weblogic.properties isn't on the classpath.

If you move it to <domain>/WEB-INF/classes/config/weblogic.properties it would be though.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing property file from weblogic domain in spring