I am running Tomcat 4.1.12 on Linux and Win2k.  I do not install the
"LE" version.  I install the "full" version, which already has
activation.jar and mail.jar in common/lib and xercesImpl.jar and
xmlParserAPIs.jar in common/endorsed.

I have no idea why Tomcat 4.1 has problems loading java.* from webapps.

As for Xerces in common/lib.  Given the endorsement as defined by Sun, I
would think you would still load the interfaces for org.w3.dom, etc.,
from your 1.4 JDK.  However, factories for creating parsers are in JAXP,
I believe, which would be javax.* packages, which are not part of
endorsement, so they are fine coming from a non-endorsed source.  As I
read Sun's docs, this seems in line with the endorsement concept, which
only covers third-party APIs that Sun happens to ship as part of the
JDK/JRE.

Scott Nichol

----- Original Message -----
From: "Steve Loughran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 04, 2002 2:52 PM
Subject: Re: activation.jar


> Oops, replied before finishing.
>
>
> in catalina_home\bin\setclasspath.bat, we see that only the endorsed
dir is
> being endorsed
>
> rem Set the default -Djava.endorsed.dirs argument
> set JAVA_ENDORSED_DIRS=%BASEDIR%\bin;%BASEDIR%\common\endorsed
>
> And a look at the doc on the subject
> http://java.sun.com/j2se/1.4/docs/guide/standards/ provides extra
confusion,
> as it only talks about sax, dom, javvax.rmi.Corba and org.omg
> implementations.
>
> This leads me to suspect that the fact that tc4.1 doesnt load in
java.*
> files in a webapp is not an artifact of endorsement (it cant be, given
> common\lib works), so much as an artifact of their classloader
> implementation (just like Ant1.5.x's <java> task doesnt get access to
> "sun.*" or many other classes in rt.jar, only the java.* and javax.*
sets)
>
>
> So finger pointing at Sun may not be appropriate; we should change our
docs
> accordingly.
>
> One thing that confuses me: add xerces to common\lib and everyone gets
> xerces, which is at odds with the endorsement concept.
>
> -steve
>
>

Reply via email to