Upgrading xerces.jar

2002-07-31 Thread Chris Ruegger


What do people do when they want to upgrade their version of xerces.jar?
Looks like I can just put the latest version in $CATALINA_HOME/common/lib.

If I put it in the WEB-INF/lib of my webapp, will that override Tomcat's default
Xerces JAR file?

Also, is there a way to find out the version of xerces given a JAR file?

Thanks




RE: Upgrading xerces.jar

2002-07-31 Thread Shapira, Yoav

Hi,
I'll go from back to front:

Also, is there a way to find out the version of xerces given a JAR
file?

Look at the manifest, if present.  If not, look at the compilation dates
of the files inside the JAR and compare with compilation dates inside
JARs of known versions.  So this isn't always trivial. ;)  However, you
could just look at the release notes, which tell you tomcat is using
Xerces 1.4.3 ;)  

If I put it in the WEB-INF/lib of my webapp, will that override
Tomcat's
default Xerces JAR file?

Only to your webapp.  So your webapp will see the version in its lib
directory.  Other webapps, and tomcat internals, will see the same
version they've been seeing.

What do people do when they want to upgrade their version of
xerces.jar?
Looks like I can just put the latest version in
$CATALINA_HOME/common/lib.

You could.  If you only need an updated Xerces jar for a specific
webapp, perhaps a better place to put the xerces jars is in that webapps
WEB-INF/lib directory.  

The general approach of having two versions of the same implementation
inside the same JVM, albeit in different class loaders, may lead to some
unexpected risks / behavior.  If you really don't want to use the Xerces
that comes with tomcat, you can move it from common/lib to server/lib.
There it will be visible to tomcat but not to your webapps.  You can
then put whatever parser jar you want to use across webapps in
common/lib.

Good luck,

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]