[MarkLogic Dev General] app-builder custom constraint module path
Danny.Sokolsky at marklogic.com
Tue Dec 21 14:57:22 PST 2010
It looks like your module path is trying to be resolved relative to the location of the search API code (because the path does not begin with a /).
So if you change the at attributes t0:
that might solve your problem.
You did not say if your App Server root is on the filesystem or in a database. If in a database, it must be inserted as a text document and the user executing the code must have a role corresponding to an execute permission.
Hopefully that helps a little.
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Frank Rubino
Sent: Tuesday, December 21, 2010 2:11 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] app-builder custom constraint module path
I am writing a custom constraint on 4.1-6.
I am following the docs that say:
To run a custom constraint that references the above custom code, put the above module in the
App Server root
So my custom facet code goes in my module scfacets.xqy, which is in my app server root.
But its location seems to get resolved incorrectly:
010-12-21 14:01:36.844 Notice: prod-search: XDMP-TEXTNODE: /MarkLogic/appservices/search/scfacets.xqy -- Server unable to build program from non-text document
The appbuilder code is looking for my custom facet code in appservices. I am making the reference inline in the appbuilder config.xqy:
<parse apply="parse" ns="scfacets" at="scfacets.xqy"/>
<start-facet apply="start-facet" ns="scfacets" at="scfacets.xqy"/>
<finish-facet apply="finish-facet" ns="scfacets" at="scfacets.xqy"/>
I also tried putting this mod at a different path and referencing it with relative path notation.
How come my path gets resolved this way?
This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please immediately return it to the sender and delete it from your system. Thank you
General mailing list
General at developer.marklogic.com
More information about the General