You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Harlan Iverson <hj...@plauditdesign.com> on 2006/05/01 19:03:05 UTC
Re: resources from sitemaps nested in jar, strange behavior
top level:
<map:match pattern="cocoon-jar/**">
<map:mount src="resource://test/cocoon-jar/sitemap.xmap"
uri-prefix="cocoon-jar/" />
</map:match>
cocoon-jar/sitemap.xmap:
<map:match pattern="child-sitemap/**">
<map:mount src="child-sitemap.xmap"
uri-prefix="child-sitemap/"/>
</map:match>
The full example with ant script to build the jar is in the linked zip
below, also.
Harlan
Antonio Gallardo wrote:
> Hi Harlan,
>
> Please post the sitemap matcher.
>
> Best Regards,
>
> Antonio Gallardo.
>
> Harlan Iverson escribió:
>> Hello,
>>
>> I am trying to refactor some of my shared code into jars, which works
>> great until I try to use a resource from within a sitemap mounted by
>> another sitemap (say that 3 times fast). It gives me a
>> SourceNotFoundException, but the strange thing about it is the path it
>> gives:
>>
>> resource://test/cocoon-jar//resources/1.xml
>>
>> My setup is as follows:
>> sitemap.xmap
>> mount resource://test/cocoon-jar/sitemap.xmap, prefix = cocoon-jar/
>> mount child-sitemap.xmap, prefix = child-sitemap/
>>
>> requests:
>> 1.xml - works
>> cocoon-jar/1.xml - works
>> cocoon-jar/child-sitemap/1.xml - gives that exception
>>
>>
>> I can hardly speculate what the issue might be, but it seems like a
>> bug. Here is a link to reproduce code:
>> http://dev.plauditdesign.com/~hjiverson/drop/cocoon-sitemap-resources.zip
>> .
>>
>> Please advise if I'm doing something obviously wrong, otherwise I'll
>> file it in JIRA.
>>
>> Thanks,
>> Harlan Iverson
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org