Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Tomcat giving JDK Precedence Over JARs in WAR

david2

2007-08-09

Replies:


Gregor,

I am using the following:

  Tomcat 5.5.20
  Xalan 2.7.0
  Eclipse 3.2.2
  JDK build 1.6.0-b105

I already include xml-apis-1.3.03.jar in the WAR's WEB-INF/lib-directory.
However, while I need the class javax.xml.xpath.XPathFactory contained in
xml-apis-1.3.03.jar, this class also occurs in the SDK's rt.jar.

How can you be sure of which jar gets used by Tomcat for a WAR produced in a
Maven build?

-David



Gregor Schneider wrote:
>
> 1st, it would help if you let us know which Tomcat / Eclipse-Version...
>
> Anyways, it should work if you do the following:
>
> - Copy your xml-apis-1.3.03.jar into your application's
> WEB-INF/lib-directory, so that your application's classloader can find
> the corrosponding classes.
> Tomcat (at least until Tomcat 5.5) does not come with commons xml
>
> Cheers
>
> Gregor
> --
> what's puzzlin' you, is the nature of my game
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>

--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.