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

Carsten Ziegeler closed COCOON-2138.
------------------------------------

                 Resolution: Fixed
              Fix Version/s: 2.2-dev (Current SVN)
    Fix version (Component): Parent values: Components: Sitemap(10229). Level 1 
values: 1.0.0-RC3-dev(10306). 

A new Spring resource reloader handling urls and custom cocoon protocols has 
been added.


> 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
>            Assignee: Carsten Ziegeler
>            Priority: Blocker
>             Fix For: 2.2-dev (Current SVN)
>
>
> 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