Thanks Geert (sorry I got your name wrong previously!), By booster I'm referring to http://code.google.com/p/booster-xqy/ it's a lightweight HTTP wrapper around some marklogic admin tasks that we're using. My feeling would be to prefer using a purposeful http endpoint rather than posting arbitrary xquery to eval.xqy. I'd prefer my automation scripts to not have to have any xquery in them if possible so I think I will try modifying booster first.
Thanks, Pat -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Geert Josten Sent: 24 August 2012 10:21 To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] importing package.xml failing to setmodules-directory Hi Pat, Not sure what you mean by booster? You can post to qconsole to eval a piece of code of yourself. Better than scraping the admin interface.. :) Kind regards, Geert -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens Downey, Pat (RBI-UK) Verzonden: vrijdag 24 augustus 2012 11:06 Aan: [email protected] Onderwerp: Re: [MarkLogic Dev General] importing package.xml failing to set modules-directory Hi Gert, Thanks for the response. Sorry for the new thread, but I'd sillily thought that even though I was subscribed as digest replies to my messages would be cc'd to my address. But anyway. I'm calling the install URL with a HTTP POST on Marklogic 5.0-3. I've had a look at the manual import (that's the one at http://localhost:8002/manage/v1/package/install right?) and can't see the message that you're mentioning, but I might be looking in the wrong place. If I need to hackaround with scraping the admin interface and submitting the form then that's ok (bit of a pain, but no more so than automating the initial setup). Any pointers would be appreciated though. Also I think booster could be extended to provide this capability - do you think that would be worthwhile? Thanks, Pat ------------------------------------------------------------------------ -------- Date: Thu, 23 Aug 2012 15:10:17 +0200 From: Geert Josten <[email protected]> Subject: Re: [MarkLogic Dev General] importing package.xml failing to set modules-directory and default-user To: MarkLogic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="windows-1252" Hi Pat, Import of default-user is not supported. If you check the messages at manual import (using the Packaging interface) that are shown on the outer right side, then it should state that. Import of modules-database, as well as schema-database I believe, are broken, I filed a bug report for that a few weeks ago.. There are ways around, but there aren?t very pretty. Are you using the interface, or calling the install url with an HTTP POST call? Kind regards, Geert *Van:* [email protected] [mailto: [email protected]] *Namens *Downey, Pat (RBI-UK) *Verzonden:* donderdag 23 augustus 2012 12:57 *Aan:* [email protected] *Onderwerp:* [MarkLogic Dev General] importing package.xml failing to set modules-directory and default-user Hi all, I?m trying to setup a new application server based on the contents of a package.xml file (that I've previously exported) and am running into an issue where it doesn?t appear that the modules-directory or default-user are being set as I would expect. The snippet of xml from the package.xml file that I'm using is below. When I import this xml file using (POST?ing it to http://<server>/:8002/manage/v1/package/install/) The default-user ends up as ?nobody?, and the modules-database points to ?file-system?. <pkg:package> <package-http-server> ... <links> <group-name>Default</group-name> <modules-database>Modules</modules-database> <database>some-database</database> <default-user>admin</default-user> </links> </package-http-server> </pkg:package> Has anyone else run into this issue? Or am I just doing something silly? Thanks! Pat ===================== DISCLAIMER ====================== This message is intended only for the use of the person(s) ("Intended Recipient") to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any dissemination, distribution, copying or other use of this message or any of its content by any person other than the Intended Recipient may constitute a breach of civil or criminal law and is strictly prohibited. If you are not the Intended Recipient, please contact the sender as soon as possible. Reed Business Information Limited. Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK. Registered in England under Company No. 151537 ======================================================= _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
