Hi Mary,

The Duplicate appserver name is caused by the fact that you gave your second 
HTTP app server the exact same name. Add a 2 behind it if you like, and that 
should be solved, or delete your first HTTP server before retrying. App server 
names, like many other names within MarkLogic Server, must be unique. That way 
you don't need to use obscure id's within your XQuery code.

About your CQ problem. If you make a call to the HTTP server like 
'http://localhost:8010/cq', which is equivalent to 'http://localhost:8010/cq/', 
then it expects a folder named 'cq' in your HTTP server's root folder. To be 
more precise, it will be looking for a 'default.xqy' within that folder, and 
attempt to execute that. If neither is found, you get the 404.

Could it be you didn't create a cq subfolder, but dropped the cq files directly 
under your HTTP server's root? You can test that by leaving out the 'cq' from 
your url, so just: 'http://localhost:8010/'

Not sure about your localhost:8008 problem though. Did you configure a 
MarkLogic App server with that port number?

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


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
> Mary Astarita
> Sent: zondag 28 november 2010 22:47
> To: General MarkLogic Developer Discussion
> Cc: [email protected]
> Subject: [MarkLogic Dev General] Problems creating the HTTP server
>
> Good Afternoon, All,
>
> Newbie here again. I've been working my way through the
> tutorials, getting help where needed (thanks to this
> supportive community).
>
>
> At this point I'm having trouble creating the HTTP server. I
> followed the instructions in the "Hands-on" tutorial (see
> below). I put my files in C:/Documents and Settings/mary
> astarita/My Documents/Downloads, and then I inserted this
> path into the root field of the "Create HTTP" page. However,
> when I test CQ by going to http://localhost:8010/cq
> <http://localhost:8010/cq> , I get a 404 error(cannot be
> found). In an attempt to correct whatever error I introduced,
> I copied the files and pasted them in a new location
> (C:/Documents and Settings/mary astarita/My
> Documents/MarkLogic) and placed the new name in the root
> field, but I get an error message: "Invalid input: Duplicate
> appserver name: BibleCollection."
>
>
> I considered starting over, with a new port (I'm now using
> 8010), but I'm concerned that I'll get the same error message
> (Duplicate appserver name).
>
>
> BTW, when I submit the Web services tester for query, I get
> the following error message: "Unable to connect. Firefox
> can't establish a connection to the server at localhost:8008."
>
>
> So what did I do wrong, and how do I correct my error?
>
>
> TIA,
>
>
> Mary
>
>
> Getting Started with CQ
>
>
> OK. That was easy enough. However, like most programmers, I'm
> somewhat skeptical. Sure, we checked the status page and it
> says that there is now one document in the database but how
> do I know that it's my document? We also setup the HTTP
> server and that seemed to go well but I haven't tested it
> yet. Well, we can use CQ to help us verify that the HTTP
> server is working and that our document is in the database
> (and to do lots of other stuff as well). CQ is basically a
> web based programming environment for the MarkLogic server.
> To get started go ahead and download the latest release of CQ
> from here <http://xqzone.marklogic.com/svn/cq/releases/> .
>
>
> Once the download is complete, installation couldn't be
> simpler. All we need to do is to unzip the file into the root
> directory that we specified for the HTTP server we just
> created. For me that meant unzipping into
> /Users/clarkrichey/Documents/MarkLogic/Education/Tutorial
> 1/code/. Now, under that "code" directory there is a "cq"
> directory where the CQ application lives.
>
> Now that CQ is installed let's verify that everything is
> working as expected. We can access CQ by going to
> http://localhost:8010/cq. Remember that if you didn't use
> 8010 as the port for your HTTP server you will have to adjust
> the URL accordingly. CQ lives in a folder directly underneath
> the root of our HTTP server so we have to provide that path
> (/cq) in our URL. You have probably noticed that while we
> specified a directory in our URL we didn't ask for a specific
> web page. The server will, in those cases, look for a file
> named default.xqy and serve up the content from that page.
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to