I need different classloaders to be able to unload classes. But i need to share objects between them (actually i am getting ClassCastException). So what are the solutions to deal with this?. Thanks
Objects from different classloaders can interact with each other through interfaces and classes loaded by a common classloader.