Eddie D | 1 Dec 06:57 2005
Picon

Update 0 modifications

I'm still having problems with the update. The ""insert update <test/> into /eforms/forms works fine in the exist client but within my code through the REST interface i keep geting the response 0 modifications. I have tryed puting the doc() or document() tags in as well and that didn't make any difference.
 
Request:
 
<?xml version="1.0"?>
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
 <xupdate:append select="/eforms/forms" child="last()">
  <xupdate:element name="form">
   <test>TEST</test>
  </xupdate:element>
 </xupdate:append>
</xupdate:modifications>
 
Response:
 
<?xml version='1.0'?>
<exist:modifications mlns:exist='http://exist.sourceforge.net/NS/exist' count='0'>0modifications processed.</exist:modifications>
Request:
<?xml version="1.0" encoding="UTF-8"?>
<query xmlns="http://exist.sourceforge.net/NS/exist"  start='1' max='5000'>
 <text>
  <![CDATA[update insert <test></test> into /eforms/forms]]>
 </text>
 <properties>
  <property name="indent" value="yes"/>
  <property name="encoding" value="UTF-8"/>
 </properties>
</query>
 
Response:
 
<exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="0" exist:start="1" exist:count="0"/>
 
URL:  http://localhost:8080/exist/servlet/db/eforms/dr/filledforms/
File Name: eforms.xml
File Contents: <?xml version="1.0" encoding="UTF-8"?><forms/>
 
thanks eddie

------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

Christoph Hermann | 1 Dec 09:37 2005
Picon

Persistence Layer like OJB/Hibernate for working with eXist?

Hello,

i wanted to ask if someone knows of a persistence Layer like
OJB/Hibernate which has the capabilities to save/retrieve/update Java
Objects from/to an XML Database like eXist?

I read about JaxMe, but it doesn't seem to be very mature.

Basically i'm searching for sth where i can do the following (pseudocode):

DAO = new DAO();
DAO.configure(...);
obj = new MyObject();
obj.setID(2);
DAO.retrieve(obj);
obj.setName(someOtherName);
DAO.update(obj);
DAO.delete(obj);

I have the possiblity with xmlbeans or jaxme, etc. to generate java
classes from my xml schema, this would be the first step. But then, i
want to be able to easily insert/update/retrieve/delete those objects
from an xml db like eXist.

So if anyone knows and tells me, i would be happy :-)
Christoph

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Golgoth 14 | 1 Dec 10:26 2005
Picon

Re: Persistence Layer like OJB/Hibernate for working with eXist?

Hi,

I use JAXB from Sun for the Java/XML marshalling and I've written my own DAO
to store, update and remove document from eXist.

It's easy to write a simple DAO using the eXist API.

Stephane

Christoph Hermann wrote:

>Hello,
>
>i wanted to ask if someone knows of a persistence Layer like
>OJB/Hibernate which has the capabilities to save/retrieve/update Java
>Objects from/to an XML Database like eXist?
>
>I read about JaxMe, but it doesn't seem to be very mature.
>
>Basically i'm searching for sth where i can do the following (pseudocode):
>
>DAO = new DAO();
>DAO.configure(...);
>obj = new MyObject();
>obj.setID(2);
>DAO.retrieve(obj);
>obj.setName(someOtherName);
>DAO.update(obj);
>DAO.delete(obj);
>
>I have the possiblity with xmlbeans or jaxme, etc. to generate java
>classes from my xml schema, this would be the first step. But then, i
>want to be able to easily insert/update/retrieve/delete those objects
>from an xml db like eXist.
>
>So if anyone knows and tells me, i would be happy :-)
>Christoph
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>_______________________________________________
>Exist-open mailing list
>Exist-open <at> lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/exist-open
>
>
>  
>

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Myriam Delperier | 1 Dec 10:44 2005

Call to undeclared function: util:eval

Hello,
i'm using exist in a cocoon context.
I wanted to update exist to it's new version so i've downloaded the 
eXist-snapshot-20051026.jar .
To make my application work, with new exist i've replaced  :
    - exist.jar
    - exist-optional.jar
    - xmldb.jar
    - xmlrpc-1.2patched.jar
    - xml-apis.jar
    - xercesimpl.jar
   and added :
     - exist-modules.jar.

At first sight it seems to work .
Unfortunately each time I want to run an xquery using function like 
util:* or xmldb:* and so on,
i get the error : Call to undeclared function: util:*
or
Call to undeclared function: xmldb:*.

does somebody know what i should do ?

Here is an exemple of a xquery not working for me :

xquery version "1.0";

declare namespace util="http://exist-db.org/xquery/util";

<docs>{
let $result := util:eval("for $r in /*return $r")
let $count := count($result)
return <valids number="{$count}"/>
}</docs> 

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Pierrick Brihaye | 1 Dec 10:55 2005
Picon

Re: Call to undeclared function: util:eval

Hi Myriam,

Myriam Delperier wrote:

> i'm using exist in a cocoon context.
> I wanted to update exist to it's new version so i've downloaded the 
> eXist-snapshot-20051026.jar .
> To make my application work, with new exist i've replaced  :
>    - exist.jar
>    - exist-optional.jar
>    - xmldb.jar
>    - xmlrpc-1.2patched.jar
>    - xml-apis.jar
>    - xercesimpl.jar
>   and added :
>     - exist-modules.jar.
> 
> At first sight it seems to work .
> Unfortunately each time I want to run an xquery using function like 
> util:* or xmldb:* and so on,
> i get the error : Call to undeclared function: util:*
> or
> Call to undeclared function: xmldb:*.
> 
> does somebody know what i should do ?

Just use a correct configuration file :

http://cvs.sourceforge.net/viewcvs.py/exist/eXist-1.0/conf.xml?annotate=1.81

(lines 126+)

Cheers,

--

-- 
Pierrick Brihaye, informaticien
Service régional de l'Inventaire / DRAC Bretagne
mailto:pierrick.brihaye <at> culture.gouv.fr / tél : +33 (0)2 99 29 67 78
http://usenet-fr.news.eu.org/fr-chartes/rfc1855.html#31. L'avez-vous lu ?

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
Jean-Christophe Kermagoret | 1 Dec 11:35 2005

Re: Persistence Layer like OJB/Hibernate for working with eXist?

Hello,
an alternative solution may be based on xquery for SGBDR.

You may have a look a http://xquare.objectweb.org/index.html
It's an open source project that permits to query SGBDR with xquery 
language.

I haven't used it yet but it sounds interesting.

HTH

Golgoth 14 a écrit :
> Hi,
> 
> I use JAXB from Sun for the Java/XML marshalling and I've written my own 
> DAO
> to store, update and remove document from eXist.
> 
> It's easy to write a simple DAO using the eXist API.
> 
> Stephane
> 
> Christoph Hermann wrote:
> 
>> Hello,
>>
>> i wanted to ask if someone knows of a persistence Layer like
>> OJB/Hibernate which has the capabilities to save/retrieve/update Java
>> Objects from/to an XML Database like eXist?
>>
>> I read about JaxMe, but it doesn't seem to be very mature.
>>
>> Basically i'm searching for sth where i can do the following 
>> (pseudocode):
>>
>> DAO = new DAO();
>> DAO.configure(...);
>> obj = new MyObject();
>> obj.setID(2);
>> DAO.retrieve(obj);
>> obj.setName(someOtherName);
>> DAO.update(obj);
>> DAO.delete(obj);
>>
>> I have the possiblity with xmlbeans or jaxme, etc. to generate java
>> classes from my xml schema, this would be the first step. But then, i
>> want to be able to easily insert/update/retrieve/delete those objects
>> from an xml db like eXist.
>>
>> So if anyone knows and tells me, i would be happy :-)
>> Christoph
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
>> files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>> _______________________________________________
>> Exist-open mailing list
>> Exist-open <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>
>>
>>  
>>
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open

--

-- 

BlueXML
Jean-Christophe Kermagoret
Directeur associé
jck <at> bluexml.org

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
Golgoth 14 | 1 Dec 11:55 2005
Picon

Re: Persistence Layer like OJB/Hibernate for working with eXist?

I've tested XQuark and its very usefull for reading data from a 
relational database.
Updating and removing are not provided by XQuark. You must use SQL or a DAO.

Stéphane

Jean-Christophe Kermagoret wrote:

> Hello,
> an alternative solution may be based on xquery for SGBDR.
>
> You may have a look a http://xquare.objectweb.org/index.html
> It's an open source project that permits to query SGBDR with xquery 
> language.
>
> I haven't used it yet but it sounds interesting.
>
> HTH
>
> Golgoth 14 a écrit :
>
>> Hi,
>>
>> I use JAXB from Sun for the Java/XML marshalling and I've written my 
>> own DAO
>> to store, update and remove document from eXist.
>>
>> It's easy to write a simple DAO using the eXist API.
>>
>> Stephane
>>
>> Christoph Hermann wrote:
>>
>>> Hello,
>>>
>>> i wanted to ask if someone knows of a persistence Layer like
>>> OJB/Hibernate which has the capabilities to save/retrieve/update Java
>>> Objects from/to an XML Database like eXist?
>>>
>>> I read about JaxMe, but it doesn't seem to be very mature.
>>>
>>> Basically i'm searching for sth where i can do the following 
>>> (pseudocode):
>>>
>>> DAO = new DAO();
>>> DAO.configure(...);
>>> obj = new MyObject();
>>> obj.setID(2);
>>> DAO.retrieve(obj);
>>> obj.setName(someOtherName);
>>> DAO.update(obj);
>>> DAO.delete(obj);
>>>
>>> I have the possiblity with xmlbeans or jaxme, etc. to generate java
>>> classes from my xml schema, this would be the first step. But then, i
>>> want to be able to easily insert/update/retrieve/delete those objects
>>> from an xml db like eXist.
>>>
>>> So if anyone knows and tells me, i would be happy :-)
>>> Christoph
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc. Do you grep through 
>>> log files
>>> for problems?  Stop!  Download the new AJAX search engine that makes
>>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>>> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>>> _______________________________________________
>>> Exist-open mailing list
>>> Exist-open <at> lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>>
>>>
>>>  
>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through 
>> log files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>> _______________________________________________
>> Exist-open mailing list
>> Exist-open <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>
>

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Victor Esquivel | 1 Dec 01:18 2005
Picon

Java App Connecting to Exist

Hi.

I am doing a small project at college, for which I
need to create a little java application that connects
to exist.  I have installed and tested exist and
everything looks fine.  If I send a query using the
servlet in IE, it works.  However, when I try to run
the Retrieve example, copying it into Eclipse and
adding the exist.jar and xmldb.jar files, but when it
tries to instantiate the DatabaseImpl class I get an
error from ClassLoader.class saying source not found. 
Does anyone have an idea what I am doing wrong, what I
am missing, or have any little application that
connects to exist???

Thanks

Victor

		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Adam Retter | 1 Dec 12:38 2005
Picon

Re: Update 0 modifications

Have you considered using the newer XQuery update extensions instead?

http://exist-db.org/update_ext.html

On Wed, 2005-11-30 at 21:57 -0800, Eddie D wrote:
> I'm still having problems with the update. The ""insert update <test/>
> into /eforms/forms works fine in the exist client but within my code
> through the REST interface i keep geting the response 0 modifications.
> I have tryed puting the doc() or document() tags in as well and that
> didn't make any difference.
>  
> Request:
>  
> <?xml version="1.0"?>
> <xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate"
> version="1.0">
>  <xupdate:append select="/eforms/forms" child="last()">
>   <xupdate:element name="form">
>    <test>TEST</test>
>   </xupdate:element>
>  </xupdate:append>
> </xupdate:modifications>
>  
> Response:
>  
> <?xml version='1.0'?>
> <exist:modifications
> mlns:exist='http://exist.sourceforge.net/NS/exist'
> count='0'>0modifications processed.</exist:modifications>
> Request:
> <?xml version="1.0" encoding="UTF-8"?>
> <query xmlns="http://exist.sourceforge.net/NS/exist"  start='1'
> max='5000'>
>  <text>
>   <![CDATA[update insert <test></test> into /eforms/forms]]>
>  </text>
>  <properties>
>   <property name="indent" value="yes"/>
>   <property name="encoding" value="UTF-8"/>
>  </properties>
> </query>
>  
> Response:
>  
> <exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist"
> exist:hits="0" exist:start="1" exist:count="0"/>
>  
> URL:  http://localhost:8080/exist/servlet/db/eforms/dr/filledforms/
> File Name: eforms.xml 
> File Contents: <?xml version="1.0" encoding="UTF-8"?><forms/>
>  
> thanks eddie
> ------------------------------------------------------- This SF.net
> email is sponsored by: Splunk Inc. Do you grep through log files for
> problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________ Exist-open mailing
> list Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Myriam Delperier | 1 Dec 12:47 2005

Permissions on the creation of a resource

Hello,
if I add a document in a document in a delection, by default the 
permissions on the doc are :
rwur-ur-- 
and I need to have :
rwurwur-- instead.
Is there something i can do to change this ? 

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

Gmane