Thanks for pointing that out Martin.

What you really want to do is put your application code somewhere outside of 
where the server is installed.  MarkLogic will look relative to the 
installation directory, but the best practice is to put your code either 
somewhere else on the filesystem (for example, in a directory named 
/space/mycode or c:/space/mycode) or in a modules datatbase.

That was just an error in the doc.  And the doc is fixed now:

http://docs.marklogic.com/guide/getting-started/xquery#id_70912

Thanks,
-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Martin Vollmix
Sent: Friday, June 05, 2015 2:55 AM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] Create Http Server Tutorial

Hi Geert,

I tried various variations on my one, but not this one.

Now it works as expected. Thanks for taking care. Maybe the tutorial should be 
a little bit "less vague" about this. :)

Thanks

Martin

Von: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] Im Auftrag von Geert Josten
Gesendet: Freitag, 5. Juni 2015 11:50
An: MarkLogic Developer Discussion
Betreff: Re: [MarkLogic Dev General] Create Http Server Tutorial

Hi Martin,

Maybe the tutorial is a little vague about this, but if the full path of your 
load.xqy is C:\Program Files\MarkLogic\Apps\Test\load.xqy, then your Root 
should be Apps/Test, and the http url to it would be 
http://localhost:8005/load.xqy. I hope that clears things up for you..

Cheers,
Geert

From: Martin Vollmix <voll...@hotmail.com<mailto:voll...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Date: Friday, June 5, 2015 at 11:32 AM
To: 'MarkLogic Developer Discussion' 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Create Http Server Tutorial

Hi Geert,

In the Create http Server Dialog: I just typed in Test like described in the 
tutorial.

I created a Test Directory in C:\Program Files\MarkLogic\Apps as described in 
the tutorial.

In the newly created Test Directory I put the xqy files into this directory

Thanks

Martin

Von: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] Im Auftrag von Geert Josten
Gesendet: Freitag, 5. Juni 2015 10:06
An: MarkLogic Developer Discussion
Betreff: Re: [MarkLogic Dev General] Create Http Server Tutorial

Hi Martin,

What did you specify as Root in your app server, and at which filesystem path 
did you put your load.xqy?

Cheers,
Geert

From: "Martin Vollmer (hotmail)" 
<voll...@hotmail.com<mailto:voll...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Date: Friday, June 5, 2015 at 9:32 AM
To: "general@developer.marklogic.com<mailto:general@developer.marklogic.com>" 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Create Http Server Tutorial

Dear MarkLogic Devs,

I started to create a http Server in MarkLogic 8 on Windows exactly following 
the steps in here:

http://docs.marklogic.com/guide/getting-started/xquery#id_70912

But when I try to call the xqy Files via http://localhost:8005/Test/load.xqy I 
always get a 404. I tried it on two different machines.

BTW I can access the xqy file when I am using 
http://localhost:8000/Test/load.xqy but then the Doc is stored in the 
AppServices DB.

Any Hints?

Martin Vollmer
Staufener Str. 6
81245 München
Tel.:       +49 89 354 5283
Mobil:   +49 176 993 994 38

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to