Alister Pillow | 1 Feb 04:00 2012
Picon

Installation upgrades

Greetings and salutations.

I want to upgrade an installation (v1.4.1) to the latest stable 1.4.x version, and I can see this happening
again when new patches are released. The process of downloading, building and customising on a staging
machine, and then installing and restoring from backup is fairly tedious - so I'm considering a full
checkout and build from source on the Client's server; this would enable me to run svn-update when needed
and rebuild in-situ. 

The disadvantage of this approach is that for the initial install, I can't run the full installer, which
performs some setup tasks like setting the Admin password and choosing a data directory.

Questions:
What are the dangers with this approach? (Other than foolishly running ./build.sh clean or clean-all.)
Is there a script that replicates the behaviour of the installer? 
(and if not, then...) What other tasks are performed by the installer?

Thanks,
Alister.

PS. I wish Prague was a little closer to South Australia!
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Casey Jordan | 1 Feb 04:10 2012

Re: Starting eXist through symlinks

On second examination, I take that back.

On some machines, this is not working. Complaining that: dirname: missing operand



On Wed, Jan 25, 2012 at 10:46 AM, Casey Jordan <casey.jordan <at> jorsek.com> wrote:
Forgot to follow up publically on this, but I agree with Ralf.


On Tue, Nov 8, 2011 at 9:25 PM, Casey Jordan <casey.jordan <at> jorsek.com> wrote:
I will test this tomorrow and let you know if this meets our requirements.

On Tue, Nov 8, 2011 at 7:20 PM, Adam Retter <adam <at> exist-db.org> wrote:
Okay when Ralf and Casey are in agreement, then please commit ;-)

On 7 November 2011 21:43, Ralf Jung <ralfjung-e <at> gmx.de> wrote:
> Hi everyone,
>
> Dimitar Popov on the BaseX mailing list came up with the following snipped
> that is quite short, and works well both for relative and absolute symlinks on
> both Mac and Linux:
>
> FILE="${BASH_SOURCE[0]}"
> while [ -h "$FILE" ] ; do
>  SOURCE="$(readlink "$FILE")"
>  FILE="$( cd -P "$(dirname "$FILE")" && \
>           cd -P "$(dirname "$SOURCE")" && pwd )/$(basename "$SOURCE")"
> done
> SCRIPTPATH="$( cd -P "$(dirname "$FILE")" && pwd )"
>
> I think that's the best one we got so far :D
>
> Kind regards,
> Ralf
>
> On Saturday 05 November 2011 08:35:55 Dmitriy Shabanov wrote:
>> On Sat, Nov 5, 2011 at 5:28 AM, Casey Jordan <casey.jordan <at> jorsek.com>wrote:
>> > I don't see a big need to support symlinks on mac, simply because the
>> > major use case for using symlinks when starting eXist is when its running
>> > as a service on a unix machine. But, that is just my opinion.
>> >
>> > Depending on how many places the functionally to resolve the real path
>> > would be needed I agree that maintaining the code I presented could get
>> > tedious if required in many places.
>> >
>> > Right now I have wrapper scripts that I wrote to control eXist anyway, so
>> > everything is encapsulated. This works great for us because we run in a
>> > single type of environment for production, if I need to change how it
>> > works I modify the wrapper scripts and I don't need to worry about
>> > putting my own code in the eXist shell scripts.
>>
>> This is common strategy that most of us use at production. And it's best
>> trade off, IMHO.
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam <at> exist-db.org
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open



--
--
Casey Jordan
easyDITA a product of Jorsek LLC
"CaseyDJordan" on LinkedIn, Twitter & Facebook
(585) 348 7399
easydita.com


This message is intended only for the use of the Addressee(s) and may
contain information that is privileged, confidential, and/or exempt from
disclosure under applicable law.  If you are not the intended recipient,
please be advised that any disclosure  copying, distribution, or use of
the information contained herein is prohibited.  If you have received
this communication in error, please destroy all copies of the message,
whether in electronic or hard copy format, as well as attachments, and
immediately contact the sender by replying to this e-mail or by phone.
Thank you.




--
--
Casey Jordan
easyDITA a product of Jorsek LLC
"CaseyDJordan" on LinkedIn, Twitter & Facebook
(585) 348 7399
easydita.com


This message is intended only for the use of the Addressee(s) and may
contain information that is privileged, confidential, and/or exempt from
disclosure under applicable law.  If you are not the intended recipient,
please be advised that any disclosure  copying, distribution, or use of
the information contained herein is prohibited.  If you have received
this communication in error, please destroy all copies of the message,
whether in electronic or hard copy format, as well as attachments, and
immediately contact the sender by replying to this e-mail or by phone.
Thank you.




--
--
Casey Jordan
easyDITA a product of Jorsek LLC
"CaseyDJordan" on LinkedIn, Twitter & Facebook
(585) 348 7399
easydita.com


This message is intended only for the use of the Addressee(s) and may
contain information that is privileged, confidential, and/or exempt from
disclosure under applicable law.  If you are not the intended recipient,
please be advised that any disclosure  copying, distribution, or use of
the information contained herein is prohibited.  If you have received
this communication in error, please destroy all copies of the message,
whether in electronic or hard copy format, as well as attachments, and
immediately contact the sender by replying to this e-mail or by phone.
Thank you.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Daniel Ebner | 1 Feb 13:10 2012
Picon

Adding a 'xmlns'-attribute to a node

Hi everyone,

I'm writing an xQuery Service using eXist returning a node in a  
namespace. The prefix of the namespace in the node should be able to  
be set dynamically when calling the service. But I have trouble with  
adding a attribute like 'xmlns:pre' to a node

I tried something like this in the Sandbox:

let $uri := 'http://mynamespaceuri.org'
let $prefix := 'pre'
let $xml-ns := concat('xmlns:', $prefix)
return
element pre:div
{
attribute {$xml-ns} { $uri }
}

err:XPST0081: No namespace defined for prefix xmlns

But I can declare the namespace xmlns:
declare namespace xmlns= "http://www.w3.org/2000/xmlns";

err:XQST0070: Namespace predefined prefix 'xmlns' can not be bound

So how can I add a namespace with a prefix to a node?
Any suggestions?

Cheers Daniel

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
"Stéphane S." | 1 Feb 13:48 2012
Picon
Picon

Catching exceptions on system:trigger-system-task ?

Hi,

Is it possible to report exceptions to the user when calling system:trigger-system-task user from an
XQuery script (using exist 1.4.1) ? I am particularly interested by reporting exceptions on
'org.exist.storage.BackupSystemTask'. 

I have tried using util:catch, which according to the documentation, returns the results from the
try-catch. So as the trigger-system-task function return type is empty(), I have tried to wrap it inside a
function returning true() to be able to insert it inside an if-then-else test. So I tried something like : 

declare function local:call-system-task() as xs:boolean() {
  let $params := <parameters>...</parameters>
  let $run := system:trigger-system-task('org.exist.storage.BackupSystemTask', $params)
  return
    true()
};

declare function local:report-exception() as xs:boolean() {
  false();
  (: here you may store $util:exception-message into the session for documenting the error :)
};

...

if (util:catch('*', local:call-system-task(), local:report-exception())) then
  <success>
    { ...return something on success... }
  </success>
else
  <error>
    { ...return something on error... }
  </error>

But with the code above, the execution always returns true(), even if the logs/exist.log file shows that an
exception is raised when executing system:trigger-system-task (*).

Is it possible that due to the nature of trigger-system-taks (e.g. maybe this is an asynchronous method
executing in a separate thread ?) it is not possible to catch the exceptions ? 

So to wrap it up, how would you do to report exceptions from "system:trigger-system-task" and return an
error message to the user ?

Thanks in advance,

Stéphane S.
---

(*) here is an example: 
2012-02-01 13:41:51,137 [P1-9] WARN  (SystemTaskManager.java [processTasks]:50) - System
maintenance task reported error: Invalid password for user 'admin' 
org.exist.EXistException: Invalid password for user 'admin'

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Ubbo Veentjer | 1 Feb 13:54 2012
Picon

Querying lucene for very frequent term nearly blocks eXist

Dear List,

its possible to slow down eXist to a very unresponsible state querying lucene for
a searchterm which would result in quite a lot hits. Imagine a collection which
hast the term "Artikel" in every document. When this searchterm is queried, eXist
is not usable for a longer time, with CPU-Load of 100%.

In my example i do a "count(//*[ft:query(., "Artikel")])" which results in the
number 166268. With 512MB of memory the query will fail with an "GC overhead limit
exceeded". With 2048 MB the number above is responded. Still eXist is unresponsive
for about two minutes, which is not good for production use.

Now I try to figure out a way to work around this. Is there a way to find out all
terms with more than lets say 100.000 hits without using the above
count()-construct, so the user could be bothered to retry with a more specific
search?

Do you now about this problems and how do you work around them?

Kind regards,
Ubbo

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Palmer, Eric | 1 Feb 14:43 2012

Re: Querying lucene for very frequent term nearly blocks eXist

Can you tell us which version of eXist and what Operating System?  Thanks
Eric

On 2/1/12 7:54 AM, "Ubbo Veentjer" <veentjer <at> sub.uni-goettingen.de> wrote:

>Dear List,
>
>its possible to slow down eXist to a very unresponsible state querying
>lucene for
>a searchterm which would result in quite a lot hits. Imagine a collection
>which
>hast the term "Artikel" in every document. When this searchterm is
>queried, eXist
>is not usable for a longer time, with CPU-Load of 100%.
>
>In my example i do a "count(//*[ft:query(., "Artikel")])" which results
>in the
>number 166268. With 512MB of memory the query will fail with an "GC
>overhead limit
>exceeded". With 2048 MB the number above is responded. Still eXist is
>unresponsive
>for about two minutes, which is not good for production use.
>
>Now I try to figure out a way to work around this. Is there a way to find
>out all
>terms with more than lets say 100.000 hits without using the above
>count()-construct, so the user could be bothered to retry with a more
>specific
>search?
>
>Do you now about this problems and how do you work around them?
>
>Kind regards,
>Ubbo
>
>
>
>--------------------------------------------------------------------------
>----
>Keep Your Developer Skills Current with LearnDevNow!
>The most comprehensive online learning library for Microsoft developers
>is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>Metro Style Apps, more. Free future releases when you subscribe now!
>http://p.sf.net/sfu/learndevnow-d2d
>_______________________________________________
>Exist-open mailing list
>Exist-open <at> lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/exist-open

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Joe Wicentowski | 1 Feb 15:09 2012
Picon

Re: Querying lucene for very frequent term nearly blocks eXist

Also, could you confirm that your interest is *not* in optimizing your query  (i.e. we should assume for the
sake of argument that you have already applied sane indexes and you have tuned your database memory and
cache settings and you have composed your query in the most efficient, ingenious way), and that you are
asking for ways to estimate hits quickly before running a full query?

Joe

Sent from my iPhone

On Feb 1, 2012, at 8:43 AM, "Palmer, Eric" <epalmer <at> richmond.edu> wrote:

> Can you tell us which version of eXist and what Operating System?  Thanks
> Eric
> 
> On 2/1/12 7:54 AM, "Ubbo Veentjer" <veentjer <at> sub.uni-goettingen.de> wrote:
> 
>> Dear List,
>> 
>> its possible to slow down eXist to a very unresponsible state querying
>> lucene for
>> a searchterm which would result in quite a lot hits. Imagine a collection
>> which
>> hast the term "Artikel" in every document. When this searchterm is
>> queried, eXist
>> is not usable for a longer time, with CPU-Load of 100%.
>> 
>> In my example i do a "count(//*[ft:query(., "Artikel")])" which results
>> in the
>> number 166268. With 512MB of memory the query will fail with an "GC
>> overhead limit
>> exceeded". With 2048 MB the number above is responded. Still eXist is
>> unresponsive
>> for about two minutes, which is not good for production use.
>> 
>> Now I try to figure out a way to work around this. Is there a way to find
>> out all
>> terms with more than lets say 100.000 hits without using the above
>> count()-construct, so the user could be bothered to retry with a more
>> specific
>> search?
>> 
>> Do you now about this problems and how do you work around them?
>> 
>> Kind regards,
>> Ubbo
>> 
>> 
>> 
>> --------------------------------------------------------------------------
>> ----
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> Exist-open mailing list
>> Exist-open <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/exist-open
> 
> 
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Florent Georges | 1 Feb 15:21 2012

Re : Adding a 'xmlns'-attribute to a node

Daniel Ebner wrote:

  Hi,

> let $xml-ns := concat('xmlns:', $prefix)
> [...]
> attribute {$xml-ns} { $uri }

  Namespace declarations are not attributes.  See the following blog entry for a work-around:

http://fgeorges.blogspot.com/2006/08/add-namespace-node-to-element-in.html 

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Jens Østergaard Petersen | 1 Feb 15:56 2012
Picon

Re: Re : Adding a 'xmlns'-attribute to a node

Hi Florent,

This works fine in Saxon, but does nothing in eXist 1.4.2 and trunk, as far as I can see.

Best,

Jens

On Feb 1, 2012, at 3:21 PM, Florent Georges wrote:

> Daniel Ebner wrote:
> 
>   Hi,
> 
> 
>> let $xml-ns := concat('xmlns:', $prefix)
>> [...]
>> attribute {$xml-ns} { $uri }
> 
>   Namespace declarations are not attributes.  See the following blog entry for a work-around:
> 
> http://fgeorges.blogspot.com/2006/08/add-namespace-node-to-element-in.html 
> 
>   Regards,
> 
> -- 
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
> 
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Dave Finton | 1 Feb 15:56 2012
Picon

Re: Re : Adding a 'xmlns'-attribute to a node

The thing about namespaces is that it's easy to fall into the trap of thinking they are some sort of pseudo-attribute of an XML structure. This is not the case. I like to think of a namespace as a Universe, and the XML structures as galaxies inside of that Universe. Thus, it is no more possible to "add" or "delete" a namespace from XML any more than it is to "add" or "delete" a Universe from a galaxy. It makes more sense to go to your new Universe and build a brand new galaxy over there.


The workaround is to simply construct a new XML structure within the new namespace using the source XML structure as a guide. The link that Florent Georges provided describes exactly how to do that.

On Wed, Feb 1, 2012 at 8:21 AM, Florent Georges <lists <at> fgeorges.org> wrote:
Daniel Ebner wrote:

  Hi,


> let $xml-ns := concat('xmlns:', $prefix)
> [...]
> attribute {$xml-ns} { $uri }

  Namespace declarations are not attributes.  See the following blog entry for a work-around:

http://fgeorges.blogspot.com/2006/08/add-namespace-node-to-element-in.html 

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open



--
David Finton
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane