cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2] ComponentHolderFactory.java broken ?
Date Mon, 09 Oct 2000 18:26:11 GMT
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 <crafterm@dresdnerbank.de> 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/

Mime
View raw message