• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

classloader chain

Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there !
I'm fighting with a problem for a while and now I reached the
point from where I dont have any clue how to solve it.
I'm trying to create a custom classloader and put it into
chain with the default classloader, so if the default (systems)
classloader fails to find a class, this task schould be done
by my stunning custom classloader.
And here's how I try it:

What I expected this nice app will do is:
1. calling the default systems classloader to find my not existing class
2. the default systems classloader will fail to find the class and delegate
the request to my fabolous custom classloader by calling findClass
3. The console will show me 'custom loader trying to ...'
4. I will receive a ClassNotFoundException
Step 1 and 4 are doing great. But it seems like step 2 and 3
are missing. I debugged this app and it looks like the systems default
classloader isn't calling my custom classloader!
Does anyone have an idea why my code doesn't work?
I would be very thankful to receive some comments.
Thanx in advance!
- Thomas -
[ May 06, 2004: Message edited by: Thomas Rochon ]
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic