[ 
https://issues.apache.org/jira/browse/COCOON-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532364
 ] 

Grzegorz Kossakowski commented on COCOON-2138:
----------------------------------------------

I'm wondering if it's really blocker. I don't think that mounting sitemap from 
locations other than filesystem is not the critical functionality of Cocoon.

What do you think?

> Unable to mount sitemap from Source
> -----------------------------------
>
>                 Key: COCOON-2138
>                 URL: https://issues.apache.org/jira/browse/COCOON-2138
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Vadim Gritsenko
>            Priority: Blocker
>
> Currently it is possible to mount/load sitemaps only when they are residing 
> on a file system (or in classpath). But if sitemap location is a Source (any 
> source supported by Cocoon, such as xmldb:), sitemap location will be 
> incorrectly resolved by Spring and it will fail with exception.
> Reproduced by: http://localhost:8888/cocoon-xmldb-sample/xmount/
> Exception:
> Caused by: java.io.FileNotFoundException: ServletContext resource 
> [/xmldb:xindice-embed:///db/cocoon/sitemap] cannot be resolved to URL because 
> it does not exist
>         at 
> org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:112)
>         at 
> org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.convertSitemap(ConfigurationReader.java:222)
>         at 
> org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.readSitemap(ConfigurationReader.java:100)
>         at 
> org.apache.cocoon.core.container.spring.avalon.SitemapElementParser.readConfiguration(SitemapElementParser.java:67)
>         at 
> org.apache.cocoon.core.container.spring.avalon.BridgeElementParser.parse(BridgeElementParser.java:74)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to