Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing module "versioning.xqm" #5

Closed
dovikos opened this issue Mar 23, 2017 · 0 comments
Closed

Missing module "versioning.xqm" #5

dovikos opened this issue Mar 23, 2017 · 0 comments

Comments

@dovikos
Copy link

dovikos commented Mar 23, 2017

What is the problem

The versioning.xqm module is missing from target/xquery-versioning-module-1.1.2-exist.jar, when you built the project from the sources.

What did you expect

I expect to have the versioning.xqm in the built target/xquery-versioning-module-1.1.2-exist.jar, in order to use it in eXist.

Describe how to reproduce or add a test

  • Compile the project as explained here (with the Java 8 and Maven 3 requirement).

  • Copy the built target/xquery-versioning-module-1.1.2-exist.jar into $EXIST_HOME/lib/user.

  • In $EXIST_HOME/conf.xml, add the following line in the <builtin-modules> element as explained here:
    <module uri="http://exist-db.org/xquery/versioning" class="org.exist.versioning.xquery.VersioningModule"/>.
    Add also the utility API module: <module uri="http://exist-db.org/versioning" src="resource:org/exist/versioning/xquery/versioning.xqm"/> (paragraph Direct Installation into eXist-db (.jar)).
    Note: In previous eXist 2.2, the module was located at this path). I think the README miss some explanations about how to cleanly add this module configuration into eXist-db, paragraph Direct Installation into eXist-db (.jar).

  • Restart eXist-db.

  • Try to use any functions of the utility API module (example: v:revisions) and see that the module is not found:

Cannot compile xquery: err:XQST0059 error found while loading module v: Source for module 'http://exist-db.org/versioning' not found module location hint URI 'resource:org/exist/versioning/xquery/versioning.xqm'.

Context information

  • eXist-db version + Git Revision hash: eXist-db 3.1 / c679cd8
  • xquery-versioning-module version + Git Revision hash: 1.1.2 / 1c1bfba
  • Java version: Java8u121
  • Operating system: Windows 7
  • 64 bit
  • Custom changes: in conf.xml, I added the following line in the <builtin-modules> element as explained here:
    <module uri="http://exist-db.org/xquery/versioning" class="org.exist.versioning.xquery.VersioningModule"/>
    I also added the utility API module: <module uri="http://exist-db.org/versioning" src="resource:org/exist/versioning/xquery/versioning.xqm"/>
    I also enabled the serialized filter as explained here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant