Load my own Xalan implementation where an older Xalan is loaded to the parent classloader?

Try doing: ClassLoader oldContextClassLoader = Thread.currentThread(). GetContextClassLoader(); Thread.currentThread(). SetContextClassLoader(childClassLoader); try{ // do xml parsing }finally{ Thread.currentThread().

SetContextClassLoader(oldContextClassLoader); }.

Will try and write back... – Eran Medan Mar 26 at 13:44 I tried the above, it didn't seem to work – Eran Medan Mar 26 at 17:52.

Have you tried loading the classes of your framework and Xerces libs as a part of the ExtClassLoader by placing them in path corresponding to the java.ext. Dirs system property? This way the framework's version of Xerces implementation will be loaded by the ExtClassLoader.

You can then place your version of Xerces implementation in the path corresponding to the java.class. Path system property to be loaded by the AppClassLoader. I have not tried this myself, but considering the class loading hierarchy this should work.

You can learn more about the class loading hierarchy here - onjava.com/pub/a/onjava/2005/01/26/class....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions