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 34976 invoked from network); 9 Oct 2000 18:26:11 -0000 Received: from web120.yahoomail.com (205.180.60.121) by locus.apache.org with SMTP; 9 Oct 2000 18:26:11 -0000 Received: (qmail 21846 invoked by uid 60001); 9 Oct 2000 18:26:11 -0000 Message-ID: <20001009182611.21845.qmail@web120.yahoomail.com> Received: from [24.91.197.190] by web120.yahoomail.com; Mon, 09 Oct 2000 11:26:11 PDT Date: Mon, 9 Oct 2000 11:26:11 -0700 (PDT) From: Davanum Srinivas Reply-To: dims@yahoo.com Subject: Re: [C2] ComponentHolderFactory.java broken ? To: cocoon-dev@xml.apache.org, "Marcus Crafter \(OSA\)" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Marcus, Here's a diff which will enable you to continue working....till this is fixed. Index: src/org/apache/cocoon/sitemap/ComponentHolderFactory.java =================================================================== RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ComponentHolderFactory.java,v retrieving revision 1.1.2.2 diff -r1.1.2.2 ComponentHolderFactory.java 16c16 < import org.apache.avalon.SingleThreaded; --- > //import org.apache.avalon.SingleThreaded; 30,32c30,36 < if (ClassUtils.implementsInterface (componentName, Poolable.class.getName())) { < return new PoolableComponentHolder (componentName, configuration, manager); < } else if (ClassUtils.implementsInterface (componentName, SingleThreaded.class.getName())) { --- > //if (ClassUtils.implementsInterface (componentName, Poolable.class.getName())) { > // return new PoolableComponentHolder (componentName, configuration, manager); > //} else if (ClassUtils.implementsInterface (componentName, SingleThreaded.class.getName())) { > // return new DefaultComponentHolder (componentName, configuration, manager); > //} else if (ClassUtils.implementsInterface (componentName, ThreadSafe.class.getName())) { > // return new ThreadSafeComponentHolder (componentName, configuration, manager); > //} else { 34,38c38 < } else if (ClassUtils.implementsInterface (componentName, ThreadSafe.class.getName())) { < return new ThreadSafeComponentHolder (componentName, configuration, manager); < } else { < return new DefaultComponentHolder (componentName, configuration, manager); < } --- > //} Thanks, dims --- Marcus Crafter wrote: > Hi All, > > The latest version of ComponentHolderFactory in the C2 CVS seems to be > broken at build time. The code contains imports of some avalon classes > (org.apache.avalon.SingleThreaded) which are not located in the > AvalonAware or avalonapi jar files: > > compile: > [javac] Compiling 1 source files to > /home/crafterm/workarea/xml-cocoon2/build/cocoon/classes > [javac] > /home/crafterm/workarea/xml-cocoon2/build/cocoon/src/org/apache/cocoon/sitemap/ComponentHolderFactory.java:16: > Class org.apache.avalon.SingleThreaded not found in import. > [javac] import org.apache.avalon.SingleThreaded; > [javac] ^ > [javac] 1 error > > Do the lib/{AvalonAware,avalonapi}.jar jars still need to be updated ? > (I couldn't find this file in the Avalon 2.1-dev source ?) > > Cheers, > > Marcus > > -- > ..... > ,,$$$$$$$$$, Marcus Crafter > ;$' '$$$$: Computer Systems Engineer > $: $$$$: Open Software Associates GmbH > $ o_)$$$: 82-84 Mainzer Landstrasse > ;$, _/\ &&:' 60327 Frankfurt Germany > ' /( &&& > \_&&&&' Email : Marcus.Crafter@osa.de > &&&&. Business Hours : +49 69 9757 200 > &&&&&&&: After Hours : +49 69 49086750 > > __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/