Have you modified jam.xqy? If so, I suggest you go back to the original.

Then tell the app server to default to 0.9-ml. That's the dialect in which jam.xqy was written. In the next release I'll update the code to explicitly state that.

-jh-

On Dec 11, 2008, at 3:58 PM, David Scott Gurney wrote:

I’m having some difficulty getting MLJAM setup and working. I’ve followed the tutorial and have setup the server successfully and copied the jam.xqy to my project.

Running the tutorial code shown below (in cq) results in an error. Can someone tell me why it “Cannot import Main Module /modules/ jam.xqy” ?

The modules database is configured to use the file system and I’ve verified that jam.xqy is in the correct place. (Other includes do work correctly) It appears that jam.xqy is version “0.9-ml” since I run into other problems if I use “1.0-ml”.

I’ve also put jam.xqy into the modules database and I get the same error. I’ve also tried the various “default xquery version” settings on the application server, but it doesn’t seem to help.

jam.xqy was obtained from the SVN trunk today. I’m running Windows XP and MarkLogic 4.0-1

Thanks
David


Code:
-----------------------------------------------------------------------------------------------------------
xquery version "0.9-ml"
import module namespace jam = "http://xqdev.com/jam"; at "/modules/ jam.xqy"
jam:start("http://localhost:8080/mljam";, "mljam", "secret"),
jam:eval-get("1+1"),
jam:end()

Results:
--------------------------------------------------------------------------------------------------------------------------------
query evaluated in Documents at file::D:\data\projects\MarkLogicTest \ as 0.9-ml (cq v4.0-1.1)
[0.9-ml] XDMP-IMPORTMOD: Cannot import Main Module /modules/jam.xqy
Stack trace:
line 2:
1: xquery version "0.9-ml"
2: import module namespace jam = "http://xqdev.com/jam"; at "/modules/ jam.xqy"
3: jam:start("http://localhost:8080/mljam";, "mljam", "secret"),
4: jam:eval-get("1+1"),

xdmp:eval("xquery version &quot;0.9-ml&quot;&#13;&#10;import module namespa...", (), <options xmlns="xdmp:eval"><database>14122743583118606133</ database><modules>0</modules><de...</options>)

in /cq/eval.xqy line 93:



NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

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

Reply via email to