Hi,

>I'm working with Apache Tomcat/5.0.19.
>In the \Tomcat 5.0\common\endorsed\ directory,
>I've got 2 libraries : xerces.jar (I think it's an old Xerces, I didn't
put
>myself
>there : someone else need it) and xercesImpl.jar (a newer version of
>xerces).

It's either or, not both.  If you put them both there, you're asking for
trouble.

>I coded a class that need xerces2, but when I launch it (via a servlet)
in
>my Tomcat, it throws a NoSuchMethoError cause it doesn't take the good
jar
>!
>How can I "force" Tomcat to take the librairy  j want ?

The best option is to only have one (the one that ships with Tomcat)
xerces in common/endorsed.

Consider having two Tomcat instances, one for "someone else" with the
old xerces, and one with the default Tomcat parser for other
applications.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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

Reply via email to