You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/07/31 13:35:09 UTC

[jira] [Assigned] (CAMEL-4285) Imported Xquery modules will not resolve using classpath

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

Claus Ibsen reassigned CAMEL-4285:
----------------------------------

    Assignee: Claus Ibsen

> Imported Xquery modules will not resolve using classpath
> --------------------------------------------------------
>
>                 Key: CAMEL-4285
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4285
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-saxon
>    Affects Versions: 2.8.0
>         Environment: All
>            Reporter: Jay mann
>            Assignee: Claus Ibsen
>         Attachments: camel-saxon.patch
>
>
> When using an xquery endpoint that uses an xquery file like this:
> <camel:to uri="xquery:com/test/xquery/manual.xq"/> 
> If the manual.xq file contains imported modules such as:
> import module namespace utils = "myutils" at "classpath:/com/test/utils.xq"; 
> they will not resolve relative to the classpath.
> This is a big problem when using OSGI or any other situation where your Xquery files are inside your package/jar.
> I've created a patch so that it will resolve the imports in the same way that the component resolves resources using resolveMandatoryResource.
> I've tested the patch successfully using "classpath:/", "file://", and "http://" uri formats.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira