Could you show us the snippet of your extension module, particularly how you 
import the JSON library ?
Also what version of ML are you running.

The default search path for modules will differ depending on your application 
but I don't know how using a different user for deployment would affect it.
Could you include the full error and stack trace for the exemption and any 
associated output in ErrorLog.txt
It might be complaining about a different module ...

A proper include should fully specify the path to the JSON library like this:

import module namespace json = "http://marklogic.com/xdmp/json"; at 
"/MarkLogic/json/json.xqy";


-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
[email protected]
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com<http://www.marklogic.com/>

From: [email protected] 
[mailto:[email protected]] On Behalf Of Fabian Jaramillo
Sent: Monday, December 15, 2014 10:35 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Problem Importing MarkLogic modules from the 
REST API

Hello,

I’m trying to use the module JSON (http://marklogic.com/xdmp/json) from one 
Extension REST API and I get an error XDMP-MODNOTFOUND, but if I use the admin 
user to deploy everything works, somebody knows what is the permission that I 
have to add to my default user to allow use these kind of modules?

Thanks,

FABIAN JARAMILLO  Software Architect
Yuxi Pacific LLC, Cr 48 N 20-34, Centro Empresarial Ciudad del Río, Oficina 
1014, Medellín, Colombia.
[email protected]<mailto:[email protected]>
Office:  +19177252076
Mobile: (57) 300-209-8933
Skype: yuxi-fabian

[cid:[email protected]]<http://www.twitter.com/YuxiPacific> 
<http://www.twitter.com/YuxiPacific> [cid:[email protected]] 
<http://www.linkedin.com/company/yuxi-pacific?trk=company_name>  
<http://www.linkedin.com/company/yuxi-pacific?trk=company_name> 
[cid:[email protected]] <http://www.youtube.com/user/yuxipacific>  
<http://www.youtube.com/user/yuxipacific> [cid:[email protected]] 
<http://www.facebook.com/yuxipacific?fref=ts>
<http://www.facebook.com/yuxipacific?fref=ts>
[cid:[email protected]]<http://www.yuxipacific.com>

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to