C**********r 发帖数: 75 | 1 Our server has different versions of Xerces-J installed, from 1.9 to 2.8
My project has to use Xerces-J 2.8 and I have Xerces-J.2.8.jar under my
project /WEB-INF/lib
How can I make my project invoke /WEB-INF/lib/ 2Xerces-J.2.8.jar without
changing system's classpath? |
r*****l 发帖数: 2859 | 2 In one sentence: you should not put xerces.jar in classpaths
that are loaded by the web application's parent classloader.
It should not be put in the java ext library path, $CLASSPATH,
web/app servers common lib, domain lib and maybe more. If
other apps need to use this jar, they should have their own.
【在 C**********r 的大作中提到】 : Our server has different versions of Xerces-J installed, from 1.9 to 2.8 : My project has to use Xerces-J 2.8 and I have Xerces-J.2.8.jar under my : project /WEB-INF/lib : How can I make my project invoke /WEB-INF/lib/ 2Xerces-J.2.8.jar without : changing system's classpath?
|
t*******e 发帖数: 684 | 3 It depends on how classloader is implemented by the web server. For example,
WebLogic allows you to specify from which classloader you want to load the
jar. |
m******t 发帖数: 2416 | 4
Configure your appserver so that the web app classloader will only ask
the parent classloader if it can't find a resource by itself. Note that
that is the opposite of the java classloading delegation protocol.
【在 C**********r 的大作中提到】 : Our server has different versions of Xerces-J installed, from 1.9 to 2.8 : My project has to use Xerces-J 2.8 and I have Xerces-J.2.8.jar under my : project /WEB-INF/lib : How can I make my project invoke /WEB-INF/lib/ 2Xerces-J.2.8.jar without : changing system's classpath?
|