0

I'm working with the Marklogic's DatahubFramework and I deployed the self made Javascript modules. When I invoke this resources through the 8010 port (STAGING DB) everythings seems to work fine but when the 8011 port (FINAL DB) is invoked I get always the same error:

"RESTAPI-INVALIDREQ: (err:FOER0000) Invalid request: reason: Extension test or a dependency does not exist: XDMP-MODNOTFOUND: (err:XQST0059) Module /marklogic.rest.resource/test/assets/resource.xqy not found . See the MarkLogic server error log for further detail."

The endpoint I'm invoking is the "http://localhost:8011/v1/resources/searchEvents"

How to fix this?

ZF007
  • 3,708
  • 8
  • 29
  • 48
capl
  • 1
  • 2
  • Have you checked in which database `/marklogic.rest.resource/test/assets/resource.xqy` is located ? Is this database the modules database of your final db? – Wagner Michael Apr 27 '19 at 11:02

1 Answers1

0

I found the problem, the gradle script "gradle mlDeploy" filled the property url rewriter with the wrong value and it was referencing another rewriter file. After fixing this value, everything worked as planned.

capl
  • 1
  • 2
  • I wonder though, how could that property end up wrong? Was it migrated from an earlier version of the datahub? – grtjn May 10 '19 at 11:10