Your target URL looks like it's two URLs.

And did you really install the target servlet as "meta" because usually people 
install it as "mljam".

-jh-

On May 18, 2010, at 12:27 AM, Mohanraj wrote:

> 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-color:#525D76;font-size:22px;}
>  H2 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
>  H3 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
>  BODY 
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B 
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P 
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;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</password></authentication>
> $options := <options 
> xmlns="xdmp:http"><authentication><username>admin</username><password>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:3149319122335693559/eval-ge...
>  
> <https://mail.laserwords.com/Redirect/localhost:8080/meta/meta/temp:3149319122335693559/eval-ge...>
>  ", <options 
> xmlns="xdmp:http"><authentication><username>admin</username><password>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><root>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

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

Reply via email to