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 72081 invoked from network); 26 Sep 2000 00:15:10 -0000 Received: from pop.systemy.it (194.20.140.28) by locus.apache.org with SMTP; 26 Sep 2000 00:15:10 -0000 Received: from apache.org (pv24-pri.systemy.it [194.21.255.24]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id CAA31334; Tue, 26 Sep 2000 02:15:08 +0200 Message-ID: <39CFD6E5.E4CA8257@apache.org> Date: Tue, 26 Sep 2000 00:51:17 +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: Giacomo Pati Subject: Re: re directorygenerator on latest cvs build (25-09-00)@4 References: <39CFC410.27539D0A@pwr.ch> <20000925.21443500@sahuc-s.imediation.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Sebastien Sahuc wrote: > > YAHOOOOO !!!! I'm happy not to be the only one. I'm was precisely writing > a post explaining why IMHO something smells bad in these classlaoder > issues and design. There is no bad design in Catalina's classloader... the problem is simple: a servlet engine is a damn complex beast and Cocoon2 pushes this to the ultimate limits. > See below for an explanation of your linkage error. > > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > > On 9/25/00, 11:30:56 PM, Giacomo Pati wrote regarding > re directorygenerator on latest cvs build (25-09-00)@4: > > > Giacomo Pati wrote: > > > > > > Stefano Mazzocchi wrote: > > > > > > > > Giacomo Pati wrote: > > > > > > > > > > --- WAS Online wrote: > > > > > > Hi there, > > > > > > > > > > > > finally i got C2 to work with catalina... (phew) which cost me a > > lot > > > > > > of > > > > > > nerves, since the repositories do not seem to be in a > > 'synchronized' > > > > > > state at all, as i had to edit a lot of files to get all that > > > > > > components > > > > > > to work whith each other. Anyway, may problem is of another > > kind: > > > > > > > > > > Can you explain your problems? I usually compile Tomcat-4.0 with > > 'build > > > > > dist', put all jars from [cocoon2]/lib (except ant and stylebook I > > > > > think) into dist/tomcat-4.0/lib and put the cocoon.war file into > > > > > dist/tomcat-4.0/webapps (I remember having expanded the cocoon.war > > > > > manualy into a cocoon directory) > > > > > > > > Please, stop doing this. > > > > > > > > The Catalina ./lib directory _MUST_ remain clean... you should not > > put > > > > the C2 libraries there...otherwise how can we have feedback on > > Servlet > > > > 2.2 application behavior? > > > > > > > > The "right way" of installing C2 on catalina should be > > > > > > > > ./build.sh -Dinstall.war=../build/tomcat-4.0/webapps > > > > -Dinclude.webapp.libs=yes install > > > > > > Yes, I know how it should be, but at the moment it seems not to run > > that > > > way (almost not for me) because of a ClassLoader problem in catalina. > > > Have you got it running? > > > The above happens when I run catalina out of the ../dist/tomcat-4.0 > > directory. > > > If I use the ../build/tomcat-4.0 directory there is still something > > wrong with the sitemap engine. > > The logs/catalina.out tells me something about > > > java.lang.LinkageError: Class org/xml/sax/Attributes violates loader > > constraints > > at > > _cvs._build._tomcat_4_0._webapps._cocoon._sitemap_xmap.setConfiguration( > > _sitemap_xmap.java:519) > > at > > org.apache.cocoon.sitemap.SitemapHandler.run(SitemapHandler.java, > > Compiled Code) > > at java.lang.Thread.run(Thread.java, Compiled Code) > > > and the error notifier tells me something totally different ?! > > Basicaly you're getting this error because you have Xerces in too many > places : > One in your System classpath and another time in your web-inf/lib of your > web application (currently cocoon2). This shouldn't make any difference since the classpath passed to javac has the local classpath (web-inf/lib) *before* the system classpath. > So by removing the Xerces jar from your web-inf/lib, you should be able > to make cocoon2 works again ... (though your XSP pages won't compile > because of missing DOM and SAX packages...) How come everything works smoothly on my system? Did you clean your lib/ext directory? -- 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 ---------------------