cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: <map:components> cannot be in sitemap.xml anymore?
Date Thu, 28 Sep 2006 12:36:27 GMT
Thanks for spotting this bug! It's correct now.

Carsten

Rice Yeh wrote:
> Index:
> C:/apache/cocoon.home/svn/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/core/container/spring/avalon/SitemapHelper.java
> ===================================================================
> ---
> C:/apache/cocoon.home/svn/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/core/container/spring/avalon/SitemapHelper.java
> (revision 447720)
> +++
> C:/apache/cocoon.home/svn/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/core/container/spring/avalon/SitemapHelper.java
> (working copy)
> @@ -200,7 +200,7 @@
>          final String factoryRole = config.getAttribute("factory-role",
> ClassLoaderFactory.ROLE);
> 
>          // Create a new classloader
> -        ClassLoaderConfiguration configBean =
> AvalonUtils.createConfiguration(sitemapResolver, config);
> +        ClassLoaderConfiguration configBean =
> AvalonUtils.createConfiguration(sitemapResolver, classPathConfig);
>          ClassLoaderFactory clFactory =
> (ClassLoaderFactory)parentFactory.getBean(factoryRole);
>          return clFactory.createClassLoader(Thread.currentThread
> ().getContextClassLoader(),
>                                             configBean,
> 
> On 9/19/06, Leszek Gawron <lgawron@mobilebox.pl> wrote:
>> Rice Yeh wrote:
>>> I find this problem is because of a bug at line 203 in
>>> org.apache.cocoon.core.container.spring.avalon.SitemapHelper, where
>>> classPathConfig shoud be passed as argument to method
>>> AvalonUtils.createConfiguration, intead of config.
>> Could you provide a patch?
>>
>> --
>> Leszek Gawron, IT Manager                          MobileBox sp. z o.o.
>> +48 (61) 855 06 67                              http://www.mobilebox.pl
>> mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65
>>
> 


-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message