File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Weblogic Classloader Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic Classloader Problem" Watch "Weblogic Classloader Problem" New topic

Weblogic Classloader Problem

Manjunatha N.S.

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.

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:
subject: Weblogic Classloader Problem
It's not a secret anymore!