You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Rice Yeh <ri...@gmail.com> on 2006/09/17 22:46:15 UTC
cannot be in sitemap.xml anymore?
Hi,
I tried the myBlock example with the latest trunk. jetty gets up
successfully and I use browser to connect it. The following error message is
shown on browser. Does it mean that <map:components> cannot be in
sitemap.xml anymore? I have <map:components> removed, then it goes well.
Unexpected element components at
file:/C:/tmp/cocoon/yourBlock/target/yourBlock/sitemap.xmap:17:19
Rice
Re: cannot be in sitemap.xml anymore?
Posted by Carsten Ziegeler <cz...@apache.org>.
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 <lg...@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/
Re: cannot be in sitemap.xml anymore?
Posted by Rice Yeh <ri...@gmail.com>.
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 <lg...@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
>
Re: cannot be in sitemap.xml anymore?
Posted by Leszek Gawron <lg...@mobilebox.pl>.
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
Re: cannot be in sitemap.xml anymore?
Posted by Rice Yeh <ri...@gmail.com>.
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.
Rice
On 9/18/06, Rice Yeh <ri...@gmail.com> wrote:
>
> Hi,
> I tried the myBlock example with the latest trunk. jetty gets up
> successfully and I use browser to connect it. The following error message is
> shown on browser. Does it mean that <map:components> cannot be in
> sitemap.xml anymore? I have <map:components> removed, then it goes well.
>
> Unexpected element components at file:/C:/tmp/cocoon/yourBlock/target/yourBlock/sitemap.xmap:17:19
>
>
> Rice
>