Xerces Classpath Issue

P

Praveen Chhangani

Folks,

I have run into a bit of an issue, so let me see if I can explain this
to the best of ability.

I currently have a thick application (java) that contains mini java
programs within (plug-ins). Each plugin requires a set of .jar files
that it makes use of. I have a particular plug-in (mini java program)
that calls an EJB to generate .pdf files. - The developers who
support the EJB have upgraded the xerces.jar to a newer version and
this requires that we upgrade our classpath to contain the new
xerces.jar package as well. The problem is that when we do that we
have other java plug-ins with the thick java application that start
throwing out exceptions. The reason for this is because IBM
apparently hard-coded a lot of the stuff in the older xerces.jar,
whereas in the new xerces.jar a lot of the hard-coded code has been
removed.

So here's the question of the day, how to I fix this? I have come up
with a quick fix for this and that is to run separate instances of the
thick java application, however that is not something I want to do for
too long.

Can anything think of a way to fix this issue? Any input is
appreciated!

Thanks,
Praveen
 
D

David Zimmerman

Load your plug-ins each with its own classloader. That way each can use
the version of xerces it needs. Look at URLClassLoader
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top