tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Maucherat" <r...@apache.org>
Subject Re: Tomcat 4.0.3 ClassLoader Problem
Date Fri, 08 Mar 2002 22:42:03 GMT
> My app used to work on Tomcat 4.0.1, but now I get a
> java.lang.NoClassDefFoundError whenever the application tries to use one
of
> our custom tags: in particular, it's a tag that uses XSLT transformations.
> The class that is not found is
> javax.xml.transform.TransformerConfigurationException, which is located in
> the xml-apis.jar file, located in our webapp's WEB-INF/lib directory.
This
> file came with Xalan.

Yes, it's a well known issue.

> I've attached a stack trace below.  Notice that the error happens in
> introspecting on the Tag bean.  From this I infer that whatever class is
> introspecting on the bean was loaded by a ClassLoader that does not have
> visibility to classes loaded from the webapp's WEB-INF/lib directory.
(Can
> someone confirm this?)
>
> Is this a bug or a feature?  Can anyone confirm that my analysis above is
> correct, or else explain where I've failed to analyze the situation
> properly?  Does anyone have any suggestions as to how I can fix this
> problem?

That's a feature gone wrong. Sorry for the trouble ...
Move Xalan to common/lib, or upgrade to 4.0.4-b1.

Remy


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message