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 Weblogic Classloader Problem 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 Bookmark "Weblogic Classloader Problem" Watch "Weblogic Classloader Problem" New topic
Author

Weblogic Classloader Problem

Manjunatha N.S.
Greenhorn

Joined: Dec 30, 2003
Posts: 16
I have webservices and Cron Job(impelments ServletContextListener) packaged into a Ear. Cron Job uses the Properties file to configure itself and property file is packaged in Ear.

But I have problem in loading of Properties using getResourceStream(). If I places Properties file under userDomain it is working fine for Thread.currentThread().getContextClassLoader() and ClassLoader.getSystemClassLoader().getResourceAsStream. Can you please explain why it is not loading Properties file from the Ear.


thanks
Manju
Ajay Reddy
Ranch Hand

Joined: Apr 08, 2005
Posts: 43
As far as I understand, the property file should not be part of the ear. It should be seperate and can be placed anywhere in your weblogic domain.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Weblogic Classloader Problem
 
Similar Threads
where to put xml file so it gets built in ear
Deployment Problems with EJB- RemoteException
Urgent: cannot find property file in war when packaged in ear
TimerTask and servlet container
How to reference resources within EAR ?