camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay mann (JIRA)" <>
Subject [jira] [Created] (CAMEL-4285) Imported Xquery modules will not resolve using classpath
Date Sat, 30 Jul 2011 16:10:09 GMT
Imported Xquery modules will not resolve using classpath

                 Key: CAMEL-4285
             Project: Camel
          Issue Type: Bug
          Components: camel-saxon
    Affects Versions: 2.8.0
         Environment: All
            Reporter: Jay mann

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:


View raw message