boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - JSP How to Invoke the Specific version of Xerces-J
相关主题
classpath 和 lib/ext 的区别?
Axis1.2RC3问题
Re: JSP菜鸟一问
[转载] Urgent Help needed about Java Servlet?
Help!: tomcat classloading problem
Re: Help!: tomcat classloading problem
java & XML 2 example problem
如何从java中调用Matlab
where to execute java program?
com.sun.tools.javac.Main 问题
相关话题的讨论汇总
话题: xerces话题: invoke话题: web话题: jsp话题: specific
进入Java版参与讨论
1 (共1页)
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?

1 (共1页)
进入Java版参与讨论
相关主题
com.sun.tools.javac.Main 问题
土人问个J2EE的弱问题 *_<
Re: [转载] Questions on failover & Hot dep
[合集] How to get all classes under a package?
我现在把demo制作过程给写上去了 (转载)
问个eclipse装jar的入门问题
display an image from db along with other text on jsp
Re: Desperately need help on DB2 connection through jdbc in jsp page
大家愿意讨论一下log4j么
问个eclipse的问题
相关话题的讨论汇总
话题: xerces话题: invoke话题: web话题: jsp话题: specific