Hi Shri,

It looks like Tomcat is returning a 404. Are you sure you are using the correct 
path to mljam? Can you provide us with more details on how you installed MLJAM? 
You import it from /MarkLogic/cpf/jam.xqy, did you put it there yourself? As 
far as I know MLJAM is not part of the regular distribution. Some more details 
on the Tomcat configuration might help as well..

Kind regards,
Geert

>


drs. G.P.H. (Geert) Josten
Consultant


Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk

T +31 (0)10 850 1200
F +31 (0)10 850 1199

mailto:[email protected]
http://www.daidalos.nl/

KvK 27164984

P Please consider the environment before printing this mail.
De informatie - verzonden in of met dit e-mailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.

> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> SrinivasanM
> Sent: woensdag 17 februari 2010 7:47
> To: [email protected]
> Subject: [MarkLogic Dev General] Error in context id while
> connecting MLJAM
>
> Hello All,
>
>
>
>                 I received the following error while
> connecting MLJAM with my XQuery. How to rectify it? I think
> the problem is in Context id. I have my java interface
> "MLJAM.java" is in the folder "C:\Program Files (x86)\Apache
> Software Foundation\Tomcat 6.0\webapps\mljam\server\src\com\xqdev\jam"
>
>
>
> Code:
>
> xquery version "0.9-ml"
>
> import module namespace jam = "http://xqdev.com/jam"; at
> "/MarkLogic/cpf/jam.xqy"
>
> define function test($x as xs:string)
>
>  {
>
> jam:start("http://localhost:8080/mljam";, "user", "pass"),
>
> jam:set("x", 5),
>
> jam:end()
>
>                 }
>
> test("sss")
>
>
>
> ErrorReport:
>
> [0.9-ml] <html><head><title>Apache Tomcat/6.0.16 - Error
> report</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-co
> lor:#525D76;font-size:22px;} H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-co
> lor:#525D76;font-size:16px;} H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-co
> lor:#525D76;font-size:14px;} BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-co
> lor:white;} B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-co
> lor:#525D76;} P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:bl
> ack;font-size:12px;}A {color : black;}A.name {color :
> black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
> Status 404 -
> /mljam/temp:5973502579509668868/set-string</h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status
> report</p><p><b>message</b>
> <u>/mljam/temp:5973502579509668868/set-string</u></p><p><b>des
> cription</b> <u>The requested resource
> (/mljam/temp:5973502579509668868/set-string) is not
> available.</u></p><HR size="1" noshade="noshade"><h3>Apache
> Tomcat/6.0.16</h3></body></html>
>
> Stack trace:
>
> in /MarkLogic/cpf/jam.xqy line 619:
> jam:_call("post", "temp:5973502579509668868", "set-string", "x", "s")
>
> $method := "post"
> $context := "temp:5973502579509668868"
> $verb := "set-string"
> $name := "x"
> $body := "s"
> $base := "http://localhost:8080/mljam";
> $user := "admin"
> $pass := "admin"
> $authentication := <authentication
> xmlns="xdmp:http"><username>admin</username><password>admin</p
> assword></authentication>
> $options := <options
> xmlns="xdmp:http"><authentication><username>admin</username><p
> assword>admin</passw...</options>
> $url :=
> "http://localhost:8080/mljam/temp:5973502579509668868/set-string?...";
> $response := (<response
> xmlns="xdmp:http"><code>404</code><message>/mljam/temp:5973502
> 579509668868/set-str...</response>,
> document{text{"<html><head><title>Apache Tomcat/6.0.16 -
> Error report</title><s..."}}) $code := 404
>
> in /MarkLogic/cpf/jam.xqy line 128:
> jam:set-in("x", "s", "temp:5973502579509668868")
>
> $var := "x"
> $value := "s"
> $context := "temp:5973502579509668868"
>
> in /MarkLogic/cpf/jam.xqy line 659:
> jam:set("x", "s")
>
> $var := "x"
> $value := "s"
>
> line 8:
>
> 6: {
> 7: jam:start("http://localhost:8080/mljam";, "admin", "admin"),
> 8: jam:set("x","s"),
> 9: jam:end()
> 10: }
>
>
>
>
>
> Thanks
>
> Shri
>
>
>
>
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to