versioning.xqm not found in fresh SVN checkout

View: New views
8 Messages — Rating Filter:   Alert me  

versioning.xqm not found in fresh SVN checkout

by Christian Wittern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

A few minutes ago, I built a new exist from SVN.  I enabled versioning, but
when I now try to use the web-based admin, I am greated with a blue screen
and the following error message:

Error found
error found while loading module rev: Error while loading module
versions.xqm: error found while loading module v: source for module
'http://exist-db.org/versioning' not found at
'resource:org/exist/versioning/xquery/versioning.xqm': Source not found:
org/exist/versioning/xquery/versioning.xqm

I followed the instructions on how to enable versioning and I had it working
earlier, so I am confused and surprised by this state of affairs.  Is this a
bug or am I doing something wrong?

Christian


--
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christian,

I just confirmed on a clean build that the versioning works as
expected. The XQuery module versioning.xqm is now compiled into
exist-versioning.jar and loaded in conf.xml by default:

<!-- Versioning -->
<module src="resource:org/exist/versioning/xquery/versioning.xqm"
  uri="http://exist-db.org/versioning"/>

Please check if you have the jar and the above lines in your conf.xml.
Within your XQuery code, just import the module without providing a
location in the at clause:

import module namespace v="http://exist-db.org/versioning";

Wolfgang

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Christian Wittern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Wolfgang,

Thanks for looking into this.

Wolfgang Meier wrote:
> Hi Christian,
>
> I just confirmed on a clean build that the versioning works as
> expected. The XQuery module versioning.xqm is now compiled into
> exist-versioning.jar and loaded in conf.xml by default:
>  
I used the dist-zip target (installer did not work for me) following a
clean checkout; there is no exist-versioning.jar.  How would I enable
the building?  I can't find a target for this.
> <!-- Versioning -->
> <module src="resource:org/exist/versioning/xquery/versioning.xqm"
>   uri="http://exist-db.org/versioning"/>
>
> Please check if you have the jar and the above lines in your conf.xml.
>  
I do have these lines, however I think it would also worth mentioning
this in http://www.exist-db.org/versioning.html (and if you add it
there, you might also change the title of this document, which is
'Lucene Index Module').

All the best,

Christian


> Within your XQuery code, just import the module without providing a
> location in the at clause:
>
> import module namespace v="http://exist-db.org/versioning";
>
> Wolfgang
>
>  


--
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christian,

> I used the dist-zip target (installer did not work for me) following a clean
> checkout; there is no exist-versioning.jar.  How would I enable the
> building?  I can't find a target for this.

The target is "extension-versioning", but it should be included in the
default build, so just calling build.sh once should be sufficient.

I think the dist-zip target doesn't copy the file. I didn't use this
target for a while. It either has to be fixed or removed. The
installer (call target "installer-exe") now requires the SVN version
of IzPack.

> I do have these lines, however I think it would also worth mentioning this
> in http://www.exist-db.org/versioning.html (and if you add it there, you
> might also change the title of this document, which is 'Lucene Index
> Module').

Ok.

Wolfgang

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Dannes Wessels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christian,

On 3 Nov 2009, at 12:18 , Christian Wittern wrote:

I used the dist-zip target (installer did not work for me) following a 
clean checkout; there is no exist-versioning.jar.  How would I enable 
the building?  I can't find a target for this.

I try to reproduce the issue you described, but I think I do not fully understand the issue. When I run "build.sh dist-zip" on a clean checkout, the generated file contains the required jar file and the file contains the xquery module.

Please could you help me to understand the issue you have?

Kind regards

Dannes

--
eXist-db Native XML Database - http://exist-db.org









------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Joe Wicentowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christian,

> I used the dist-zip target (installer did not work for me) following a
> clean checkout; there is no exist-versioning.jar.  How would I enable
> the building?  I can't find a target for this.
>> <!-- Versioning -->
>> <module src="resource:org/exist/versioning/xquery/versioning.xqm"
>>   uri="http://exist-db.org/versioning"/>
>>
>> Please check if you have the jar and the above lines in your conf.xml.
>>
> I do have these lines, however I think it would also worth mentioning
> this in http://www.exist-db.org/versioning.html (and if you add it
> there, you might also change the title of this document, which is
> 'Lucene Index Module').

Do you have a file in $exist_home/extensions/ called
local.build.properties?  If so, see if it contains a line like:

#Versioning extensions for eXist
include.feature.versioning = false

If so, try changing it to true, and rebuild.  I may be wrong, but I
believe that if you've created this 'local' version of
build.properties, it will override the default.

Joe

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Christian Wittern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dannes,



Dannes Wessels wrote:
> I try to reproduce the issue you described, but I think I do not fully
> understand the issue. When I run "build.sh dist-zip" on a clean
> checkout, the generated file contains the required jar file and the
> file contains the xquery module.
To confirm the issue, I just did the following:

* Deleted exist svn checkout completely and did a fresh co like so:
   svn co https://exist.svn.sourceforge.net/svnroot/exist/trunk/eXist 
exist-new

* issued the command ./build.sh dist-zip  in the exist checkout root

* confirmed that eXist-1.40rc/lib/extensions contains only exist-modules.jar

don't think this matters, but this is on Mac OS 10.5.8.  I hope this
helps you identifying the issue.

All the best,

Christian


--
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: versioning.xqm not found in fresh SVN checkout

by Christian Wittern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joe,

Thank you for your help.

Joe Wicentowski wrote:

>
> Do you have a file in $exist_home/extensions/ called
> local.build.properties?  If so, see if it contains a line like:
>
> #Versioning extensions for eXist
> include.feature.versioning = false
>
> If so, try changing it to true, and rebuild.  I may be wrong, but I
> believe that if you've created this 'local' version of
> build.properties, it will override the default.
>  
There is no trace of a local properties file around and the
build.properties there sets the value to true for the versioning module.

best,  Christian

--
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open