File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Class Loading Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Class Loading Question " Watch "Class Loading Question " New topic

Class Loading Question

asdasd asddad

Joined: May 09, 2005
Posts: 1
i am facing a problem where i currently dont have a test condition , unless i change a development box , which will affect all developers.
If any one has come accross the below condition before.Could you please clarify on what would happen??

1)I am working on Websphere App server 4.0
2)Default delegation mode for all ears on this servers has been set
to "Parent_Last".
3)Lets consider a jar ( name as ranch.jar for easy understanding)
This jar is present both in the ear and in the app extension directory
i.e lib/app.
Diagram :

App Ext Class loader ( lib/app ) --> ranch.jar
Application Class Loader ( ear ) --> ranch.jar

If i create a class say "Moose" ( which is contained in the ranch.jar
only) in lib/app
and send it to ear.
What will happen
1) i will get a class loader visibilty exception?
2) i wont get any exceptions it will work .

Your inputs would be greatly appreciated.

Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704

Check this article:

I think, therefore I exist -- Rene Descartes
I agree. Here's the link:
subject: Class Loading Question
It's not a secret anymore!