Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 70934 invoked from network); 29 Sep 2000 01:01:32 -0000 Received: from pop.systemy.it (194.20.140.28) by locus.apache.org with SMTP; 29 Sep 2000 01:01:32 -0000 Received: from apache.org (pv4-pri.systemy.it [194.21.255.4]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id DAA22521; Fri, 29 Sep 2000 03:01:29 +0200 Message-ID: <39D3E337.C09FE890@apache.org> Date: Fri, 29 Sep 2000 02:32:55 +0200 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en,it MIME-Version: 1.0 To: cocoon-dev@xml.apache.org CC: tomcat-dev@jakarta.apache.org Subject: Re: [bug] linking error References: <39CFC571.F7C89E23@eng.sun.com> <20000925.21584800@sahuc-s.imediation.com> <39CFD5C7.70CAF511@apache.org> <39CFF2AA.8D474DD7@eng.sun.com> <39D0C964.F51394F@bali.ac> <39D0FC2B.58DDB1F4@eng.sun.com> <39D1D563.587061AE@apache.org> <39D3C80A.DC8A4ED8@eng.sun.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N "Craig R. McClanahan" wrote: > > Stefano Mazzocchi wrote: > > > "Craig R. McClanahan" wrote: > > > > > > However, I agree that shared libraries are badly defined in the W3C/XML world. > > > > a) The classes from W3C were never properly packaged and maintained into JAR > > > > files. Every user tend to put them into their own JARs > > > > b) The same classes are not compatible between versions. I can not simply replace > > > > them with the latest version (by compiling and putting them in a JAR in the > > > > lib/ext/ directory) which would temporarily solve my problems. > > > > > > > > But I guess you are on top of this... > > > > > > I wouldn't say necessarily "on top of" -- more "suffering the consequences of" along > > > with everyone else :-). > > > > We appear to suffer more consequences of this than planned. > > > > Here is another pretty serious bug report: > > > > 1) downloaded Tomcat 4.0M1 > > 2) latest Cocoon2 from CVS > > > > when executed (Sun JDK 1.3 under Win2k) I get > > > > java.lang.LinkageError: Class org/xml/sax/Attributes violates loader > > constraints > > at > > _C_._Code._apache_org._jakarta_tomcat_4_0_m1._webapps._cocoon._sitemap_xmap.setConfiguration(_sitemap_xmap.java:480) > > at > > org.apache.cocoon.sitemap.SitemapHandler.run(SitemapHandler.java:149) > > at java.lang.Thread.run(Thread.java:479) > > > > but if I remove xerces.jar from /lib everything works just fine. > > > > NOTE: cocoon/WEB-INF/lib *does* include Xerces_1.2.jar along with the > > right SAX classes. > > > > How about that? > > > > I was able to reproduce this, but it fails for me under all three circumstances (xerces.jar in both places, xerces.jar > in $CATALINA_HOME/lib only, and xerces.jar in the Cocoon WEB-INF/lib only). In the latter case, it complained about a > different class (org.w3c.dom.Document) instead. > > A few comments and questions. > > * According to the Javadocs, a LinkageError means that > a class was changed this class depended on, without > recompiling this class. Is there any chance at all that the > xerces.jar (from the 1.2 binary download) was not built from > scratch (build clean then build dist or whatever)? > > * I turned on debugging output in the Catalina class loader. > It appears that the actual generated sitemap class is being > started on another thread, using a different classloader. If > so, what class is being used, and how is it being configured? > I don't know enough Cocoon internals to track this down. Oh, shit you're right... didn't think of this... Giacomo, did you use a different classloader for the compiling thread? > * Likewise, I don't see anywhere in the code that is writing the > LinkageError exception message to System.out in the first > place. Any ideas where this is coming from? (The stack trace > sent back to the browser is a NullPointerException). It's out from the above sitemap compiling thread and the NPE is due to a bug since the two thread are not well communicating... we need to fix that soon. -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- Missed us in Orlando? Make it up with ApacheCON Europe in London! ------------------------- http://ApacheCon.Com ---------------------