Hi Mohanraj,

Out of the box MLJAM is configured to listen to url patterns starting with 
/mljam/. If you haven't changed any of the basic configuration, try replacing 
/meta/meta with /mljam/mljam.

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 Mohanraj
> Sent: dinsdag 18 mei 2010 9:27
> To: [email protected]
> Subject: [MarkLogic Dev General] Regarding MLJAM
>
> Hi,
>
> I am facing a big problem while using MLJAM.
>
> I have setup the MLJAM server in Glassfish Server. But i
> tested using Apache tomcat Server also.
>
> If i execute the MLJAM client x-query code, i am getting 404 error.
>
> Sample X-Query code as follows :
>
> jam:start("http://localhost:8080/meta/meta
> <https://mail.laserwords.com/Redirect/localhost:8080/meta/meta
> > ","admin","admin"), jam:eval-get("1+1"),
> jam:end()
>
> Error text as follows :
>
> 500 Internal Server Error
>
> query evaluated in TestDatabase at file::TestFolder as 0.9-ml
>  (cq v4.1-6)
>
> [0.9-ml] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
> <https://mail.laserwords.com/Redirect/www.w3.org/TR/xhtml1/DTD
> /xhtml1-strict.dtd> "><html><head><title>GlassFish v3 - Error
> report</title><style type="text/css"><!--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;}HR {color :
> #525D76;}--></style> </head><body><h1>HTTP Status 404 -
> </h1><hr/><p><b>type</b> Status
> report</p><p><b>message</b></p><p><b>description</b>The
> requested resource () is not available.</p><hr/><h3>GlassFish
> v3</h3></body></html>
>
> Stack trace:
>
> in /MarkLogic/mljam/jam.xqy line 578:
> jam:_call("post", "temp:3149319122335693559", "eval-get", (), "1+1")
>
> $method := "post"
> $context := "temp:3149319122335693559"
> $verb := "eval-get"
> $name := ()
> $body := "1+1"
> $base := "http://localhost:8080/meta/meta
> <https://mail.laserwords.com/Redirect/localhost:8080/meta/meta> "
> $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/meta/meta/temp:3149319122335693559/eval
> -ge...
> <https://mail.laserwords.com/Redirect/localhost:8080/meta/meta
> /temp:3149319122335693559/eval-ge...> "
> $response :=
> xdmp:http-post("http://localhost:8080/meta/meta/temp:314931912
> 2335693559/eval-ge...
> <https://mail.laserwords.com/Redirect/localhost:8080/meta/meta
> /temp:3149319122335693559/eval-ge...> ", <options
> xmlns="xdmp:http"><authentication><username>admin</username><p
> assword>admin</passw...</options>)
> $code := 404
>
> in /MarkLogic/mljam/jam.xqy line 302:
> jam:eval-get-in("1+1", "temp:3149319122335693559")
>
> $expr := "1+1"
> $context := "temp:3149319122335693559"
>
> in /MarkLogic/mljam/jam.xqy line 632:
> jam:eval-get("1+1")
>
> $expr := "1+1"
>
> line 5:
> 3:
> 4: jam:start("http://localhost:8080/meta/meta
> <https://mail.laserwords.com/Redirect/localhost:8080/meta/meta
> > ","admin","admin"),
> 5: jam:eval-get("1+1"),
> 6: jam:end()
>
> xdmp:eval("import module namespace jam =
> &quot;http://xqdev.com/jam&quot;&#...
> <https://mail.laserwords.com/Redirect/Anchor/.../xqdev.com/jam
> %22&> ", (), <options
> xmlns="xdmp:eval"><database>8117475335247613548</database><roo
> t>TestFolder</root><...</options>)
>
>
> in /cq/eval.xqy line 111:
>
> Please guide me on this. Help me!!
>
> Regards,
> Mohanraj
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to