Exist REST Problems

classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Exist REST Problems

Ryan Puddephatt
All,
    I have noticed a problem in the current version of Exist, using the REST API. I am using the _query parameter and all my results have a default namespace, but when returning the data only the first result has the namespace. I have tried running the lastest stable build of Exist as a standalone webapp and this issue seems to have been resolved. I have tried changing replacing the exist jars with the new ones, but it says the XMLDB is locked by another instance of the db. Has anyone successfully updated the version of Exist in OPS? I would like some directions to see if this is a fix for my problem.

Thanks Ryan
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

mjgraham
Hi Ryan,

I'm using eXist 1.0.1 with the latest version of OPS. I found that I had
to add the antlr jar from eXist as well since the OPS one is in a
different namespace (package). I also came across the locked DB issue
initially but then realised that I had another app running eXist which
was pointing at the same db directory. As a last resort, I've also found
it useful to stop/kill all Tomcat processes and then delete the .lck
files in the eXist data directory.

    Cheers,

    Matthew

Ryan Puddephatt wrote:

> All,
>     I have noticed a problem in the current version of Exist, using
> the REST API. I am using the _query parameter and all my results have
> a default namespace, but when returning the data only the first result
> has the namespace. I have tried running the lastest stable build of
> Exist as a standalone webapp and this issue seems to have been
> resolved. I have tried changing replacing the exist jars with the new
> ones, but it says the XMLDB is locked by another instance of the db.
> Has anyone successfully updated the version of Exist in OPS? I would
> like some directions to see if this is a fix for my problem.
>
> Thanks Ryan
>  
>
> Ryan Puddephatt
> Software Engineer
>  
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>  
> e> [hidden email] <mailto:[hidden email]>
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
> w> www.teleflex.com <http://www.teleflex.com/>
>
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Matt,
        Thanks for the pointers, I'm trying to use 1.1.1 newcore, I've added
the antlr.jar and removed dbx_dir.lck and journal.lck from the exist_data,
but it just keeps replacing them when I start tomcat backup

Any ideas? I've searched Exists website, but its not very helpful

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Matthew Graham [mailto:[hidden email]]
>Sent: 06 November 2006 16:36
>To: [hidden email]
>Subject: Re: [ops-users] Exist REST Problems
>
>Hi Ryan,
>
>I'm using eXist 1.0.1 with the latest version of OPS. I found
>that I had to add the antlr jar from eXist as well since the
>OPS one is in a different namespace (package). I also came
>across the locked DB issue initially but then realised that I
>had another app running eXist which was pointing at the same
>db directory. As a last resort, I've also found it useful to
>stop/kill all Tomcat processes and then delete the .lck files
>in the eXist data directory.
>
>    Cheers,
>
>    Matthew
>
>Ryan Puddephatt wrote:
>> All,
>>     I have noticed a problem in the current version of Exist, using
>> the REST API. I am using the _query parameter and all my
>results have
>> a default namespace, but when returning the data only the
>first result
>> has the namespace. I have tried running the lastest stable build of
>> Exist as a standalone webapp and this issue seems to have been
>> resolved. I have tried changing replacing the exist jars
>with the new
>> ones, but it says the XMLDB is locked by another instance of the db.
>> Has anyone successfully updated the version of Exist in OPS? I would
>> like some directions to see if this is a fix for my problem.
>>
>> Thanks Ryan
>>  
>>
>> Ryan Puddephatt
>> Software Engineer
>>  
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>  
>> e> [hidden email] <mailto:[hidden email]>
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>> w> www.teleflex.com <http://www.teleflex.com/>
>>
>>  
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
Ryan,

I had similar problems in the past, when eXist was still using Java
native IO locking. But I haven't seen that issue recently. You can
find some information about locking in this message from Wolfgang (you
might also useful bits of information in the rest of the thread):

http://www.nabble.com/Another-process-has-locked-a-portion-of-the-file-tf2035536.html#a5822296

Alex

On 11/6/06, Ryan Puddephatt <[hidden email]> wrote:

> Matt,
>         Thanks for the pointers, I'm trying to use 1.1.1 newcore, I've added
> the antlr.jar and removed dbx_dir.lck and journal.lck from the exist_data,
> but it just keeps replacing them when I start tomcat backup
>
> Any ideas? I've searched Exists website, but its not very helpful
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: Matthew Graham [mailto:[hidden email]]
> >Sent: 06 November 2006 16:36
> >To: [hidden email]
> >Subject: Re: [ops-users] Exist REST Problems
> >
> >Hi Ryan,
> >
> >I'm using eXist 1.0.1 with the latest version of OPS. I found
> >that I had to add the antlr jar from eXist as well since the
> >OPS one is in a different namespace (package). I also came
> >across the locked DB issue initially but then realised that I
> >had another app running eXist which was pointing at the same
> >db directory. As a last resort, I've also found it useful to
> >stop/kill all Tomcat processes and then delete the .lck files
> >in the eXist data directory.
> >
> >    Cheers,
> >
> >    Matthew
> >
> >Ryan Puddephatt wrote:
> >> All,
> >>     I have noticed a problem in the current version of Exist, using
> >> the REST API. I am using the _query parameter and all my
> >results have
> >> a default namespace, but when returning the data only the
> >first result
> >> has the namespace. I have tried running the lastest stable build of
> >> Exist as a standalone webapp and this issue seems to have been
> >> resolved. I have tried changing replacing the exist jars
> >with the new
> >> ones, but it says the XMLDB is locked by another instance of the db.
> >> Has anyone successfully updated the version of Exist in OPS? I would
> >> like some directions to see if this is a fix for my problem.
> >>
> >> Thanks Ryan
> >>
> >>
> >> Ryan Puddephatt
> >> Software Engineer
> >>
> >>
> >> Teleflex Group - IT UK
> >> 1 Michaelson Square
> >> Livingston
> >> West Lothian
> >> Scotland
> >> EH54 7DP
> >>
> >> e> [hidden email] <mailto:[hidden email]>
> >> t> +44(0)1506 407 110
> >> f> +44(0)1506 407 108
> >> w> www.teleflex.com <http://www.teleflex.com/>
> >>
> >>
> >
> >
> >
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Alex,
        Thanks for pointing this out, I've tried restarting my PC after
moving over to the new exist jars, but no success. The lck files mentioned
in that email have been deleted, but they just get recreated. I'll take my
query to the exists list to see if they can help

Thanks

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf
>Of Alessandro Vernet
>Sent: 07 November 2006 00:39
>To: [hidden email]
>Subject: Re: [ops-users] Exist REST Problems
>
>Ryan,
>
>I had similar problems in the past, when eXist was still using
>Java native IO locking. But I haven't seen that issue
>recently. You can find some information about locking in this
>message from Wolfgang (you might also useful bits of
>information in the rest of the thread):
>
>http://www.nabble.com/Another-process-has-locked-a-portion-of-t
>he-file-tf2035536.html#a5822296
>
>Alex
>
>On 11/6/06, Ryan Puddephatt <[hidden email]> wrote:
>> Matt,
>>         Thanks for the pointers, I'm trying to use 1.1.1
>newcore, I've
>> added the antlr.jar and removed dbx_dir.lck and journal.lck from the
>> exist_data, but it just keeps replacing them when I start tomcat
>> backup
>>
>> Any ideas? I've searched Exists website, but its not very helpful
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>
>> e> [hidden email]
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>>
>>
>>
>> >-----Original Message-----
>> >From: Matthew Graham [mailto:[hidden email]]
>> >Sent: 06 November 2006 16:36
>> >To: [hidden email]
>> >Subject: Re: [ops-users] Exist REST Problems
>> >
>> >Hi Ryan,
>> >
>> >I'm using eXist 1.0.1 with the latest version of OPS. I
>found that I
>> >had to add the antlr jar from eXist as well since the OPS
>one is in a
>> >different namespace (package). I also came across the
>locked DB issue
>> >initially but then realised that I had another app running eXist
>> >which was pointing at the same db directory. As a last resort, I've
>> >also found it useful to stop/kill all Tomcat processes and then
>> >delete the .lck files in the eXist data directory.
>> >
>> >    Cheers,
>> >
>> >    Matthew
>> >
>> >Ryan Puddephatt wrote:
>> >> All,
>> >>     I have noticed a problem in the current version of
>Exist, using
>> >> the REST API. I am using the _query parameter and all my
>> >results have
>> >> a default namespace, but when returning the data only the
>> >first result
>> >> has the namespace. I have tried running the lastest
>stable build of
>> >> Exist as a standalone webapp and this issue seems to have been
>> >> resolved. I have tried changing replacing the exist jars
>> >with the new
>> >> ones, but it says the XMLDB is locked by another instance
>of the db.
>> >> Has anyone successfully updated the version of Exist in OPS? I
>> >> would like some directions to see if this is a fix for my problem.
>> >>
>> >> Thanks Ryan
>> >>
>> >>
>> >> Ryan Puddephatt
>> >> Software Engineer
>> >>
>> >>
>> >> Teleflex Group - IT UK
>> >> 1 Michaelson Square
>> >> Livingston
>> >> West Lothian
>> >> Scotland
>> >> EH54 7DP
>> >>
>> >> e> [hidden email] <mailto:[hidden email]>
>> >> t> +44(0)1506 407 110
>> >> f> +44(0)1506 407 108
>> >> w> www.teleflex.com <http://www.teleflex.com/>
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
>[hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:
>> http://www.objectweb.org/wws
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

mjgraham
Hi Ryan,

The lck files are present whenever an eXist instance is running - a
problem I have encountered, however, was that they did not get deleted
when eXist shutdown so the next time it started up, it complained about
locking. Is there a reason you are using eXist 1.1.1 in preference to
1.0.1? I encountered a number of problems with 1.1 RC2 which caused me
to switch to 1.0 RC2, even though they are supposed to be almost
identical under the hood (apart from the indexing algorithm).

    Cheers,

    Matthew

Ryan Puddephatt wrote:

> Alex,
> Thanks for pointing this out, I've tried restarting my PC after
> moving over to the new exist jars, but no success. The lck files mentioned
> in that email have been deleted, but they just get recreated. I'll take my
> query to the exists list to see if they can help
>
> Thanks
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>  
>
>  
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf
>> Of Alessandro Vernet
>> Sent: 07 November 2006 00:39
>> To: [hidden email]
>> Subject: Re: [ops-users] Exist REST Problems
>>
>> Ryan,
>>
>> I had similar problems in the past, when eXist was still using
>> Java native IO locking. But I haven't seen that issue
>> recently. You can find some information about locking in this
>> message from Wolfgang (you might also useful bits of
>> information in the rest of the thread):
>>
>> http://www.nabble.com/Another-process-has-locked-a-portion-of-t
>> he-file-tf2035536.html#a5822296
>>
>> Alex
>>
>> On 11/6/06, Ryan Puddephatt <[hidden email]> wrote:
>>    
>>> Matt,
>>>         Thanks for the pointers, I'm trying to use 1.1.1
>>>      
>> newcore, I've
>>    
>>> added the antlr.jar and removed dbx_dir.lck and journal.lck from the
>>> exist_data, but it just keeps replacing them when I start tomcat
>>> backup
>>>
>>> Any ideas? I've searched Exists website, but its not very helpful
>>>
>>> Ryan
>>>
>>> Ryan Puddephatt
>>> Software Engineer
>>>
>>> Teleflex Group - IT UK
>>> 1 Michaelson Square
>>> Livingston
>>> West Lothian
>>> Scotland
>>> EH54 7DP
>>>
>>> e> [hidden email]
>>> t> +44(0)1506 407 110
>>> f> +44(0)1506 407 108
>>>
>>>
>>>
>>>      
>>>> -----Original Message-----
>>>> From: Matthew Graham [mailto:[hidden email]]
>>>> Sent: 06 November 2006 16:36
>>>> To: [hidden email]
>>>> Subject: Re: [ops-users] Exist REST Problems
>>>>
>>>> Hi Ryan,
>>>>
>>>> I'm using eXist 1.0.1 with the latest version of OPS. I
>>>>        
>> found that I
>>    
>>>> had to add the antlr jar from eXist as well since the OPS
>>>>        
>> one is in a
>>    
>>>> different namespace (package). I also came across the
>>>>        
>> locked DB issue
>>    
>>>> initially but then realised that I had another app running eXist
>>>> which was pointing at the same db directory. As a last resort, I've
>>>> also found it useful to stop/kill all Tomcat processes and then
>>>> delete the .lck files in the eXist data directory.
>>>>
>>>>    Cheers,
>>>>
>>>>    Matthew
>>>>
>>>> Ryan Puddephatt wrote:
>>>>        
>>>>> All,
>>>>>     I have noticed a problem in the current version of
>>>>>          
>> Exist, using
>>    
>>>>> the REST API. I am using the _query parameter and all my
>>>>>          
>>>> results have
>>>>        
>>>>> a default namespace, but when returning the data only the
>>>>>          
>>>> first result
>>>>        
>>>>> has the namespace. I have tried running the lastest
>>>>>          
>> stable build of
>>    
>>>>> Exist as a standalone webapp and this issue seems to have been
>>>>> resolved. I have tried changing replacing the exist jars
>>>>>          
>>>> with the new
>>>>        
>>>>> ones, but it says the XMLDB is locked by another instance
>>>>>          
>> of the db.
>>    
>>>>> Has anyone successfully updated the version of Exist in OPS? I
>>>>> would like some directions to see if this is a fix for my problem.
>>>>>
>>>>> Thanks Ryan
>>>>>
>>>>>
>>>>> Ryan Puddephatt
>>>>> Software Engineer
>>>>>
>>>>>
>>>>> Teleflex Group - IT UK
>>>>> 1 Michaelson Square
>>>>> Livingston
>>>>> West Lothian
>>>>> Scotland
>>>>> EH54 7DP
>>>>>
>>>>> e> [hidden email] <mailto:[hidden email]>
>>>>> t> +44(0)1506 407 110
>>>>> f> +44(0)1506 407 108
>>>>> w> www.teleflex.com <http://www.teleflex.com/>
>>>>>
>>>>>
>>>>>          
>>>>
>>>>        
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>>      
>> [hidden email] mailing list.
>>    
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page:
>>> http://www.objectweb.org/wws
>>>
>>>
>>>
>>>      
>> --
>> Blog (XML, Web apps, Open Source):
>> http://www.orbeon.com/blog/
>>
>>
>>    
>
>
>  
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Matthew,
        Thanks, I'll try another version of Exist, I was trying to resolve a
REST API problem, which may have been fixed in an earlier released.

On another note, have you (or anyone) successfully used xxforms:username and
xxforms:password for the Exist REST API, I'm not sure if this is OPS or
Exist, but the authentication doesn't seem to be passed.

Thanks

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Matthew Graham [mailto:[hidden email]]
>Sent: 07 November 2006 14:10
>To: [hidden email]
>Subject: Re: [ops-users] Exist REST Problems
>
>Hi Ryan,
>
>The lck files are present whenever an eXist instance is
>running - a problem I have encountered, however, was that they
>did not get deleted when eXist shutdown so the next time it
>started up, it complained about locking. Is there a reason you
>are using eXist 1.1.1 in preference to 1.0.1? I encountered a
>number of problems with 1.1 RC2 which caused me to switch to
>1.0 RC2, even though they are supposed to be almost identical
>under the hood (apart from the indexing algorithm).
>
>    Cheers,
>
>    Matthew
>
>Ryan Puddephatt wrote:
>> Alex,
>> Thanks for pointing this out, I've tried restarting my PC after
>> moving over to the new exist jars, but no success. The lck files
>> mentioned in that email have been deleted, but they just get
>> recreated. I'll take my query to the exists list to see if they can
>> help
>>
>> Thanks
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>
>> e> [hidden email]
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>>
>>  
>>
>>  
>>> -----Original Message-----
>>> From: [hidden email] [mailto:[hidden email]] On Behalf Of
>>> Alessandro Vernet
>>> Sent: 07 November 2006 00:39
>>> To: [hidden email]
>>> Subject: Re: [ops-users] Exist REST Problems
>>>
>>> Ryan,
>>>
>>> I had similar problems in the past, when eXist was still using Java
>>> native IO locking. But I haven't seen that issue recently. You can
>>> find some information about locking in this message from Wolfgang
>>> (you might also useful bits of information in the rest of the
>>> thread):
>>>
>>> http://www.nabble.com/Another-process-has-locked-a-portion-of-t
>>> he-file-tf2035536.html#a5822296
>>>
>>> Alex
>>>
>>> On 11/6/06, Ryan Puddephatt <[hidden email]> wrote:
>>>    
>>>> Matt,
>>>>         Thanks for the pointers, I'm trying to use 1.1.1
>>>>      
>>> newcore, I've
>>>    
>>>> added the antlr.jar and removed dbx_dir.lck and
>journal.lck from the
>>>> exist_data, but it just keeps replacing them when I start tomcat
>>>> backup
>>>>
>>>> Any ideas? I've searched Exists website, but its not very helpful
>>>>
>>>> Ryan
>>>>
>>>> Ryan Puddephatt
>>>> Software Engineer
>>>>
>>>> Teleflex Group - IT UK
>>>> 1 Michaelson Square
>>>> Livingston
>>>> West Lothian
>>>> Scotland
>>>> EH54 7DP
>>>>
>>>> e> [hidden email]
>>>> t> +44(0)1506 407 110
>>>> f> +44(0)1506 407 108
>>>>
>>>>
>>>>
>>>>      
>>>>> -----Original Message-----
>>>>> From: Matthew Graham [mailto:[hidden email]]
>>>>> Sent: 06 November 2006 16:36
>>>>> To: [hidden email]
>>>>> Subject: Re: [ops-users] Exist REST Problems
>>>>>
>>>>> Hi Ryan,
>>>>>
>>>>> I'm using eXist 1.0.1 with the latest version of OPS. I
>>>>>        
>>> found that I
>>>    
>>>>> had to add the antlr jar from eXist as well since the OPS
>>>>>        
>>> one is in a
>>>    
>>>>> different namespace (package). I also came across the
>>>>>        
>>> locked DB issue
>>>    
>>>>> initially but then realised that I had another app running eXist
>>>>> which was pointing at the same db directory. As a last
>resort, I've
>>>>> also found it useful to stop/kill all Tomcat processes and then
>>>>> delete the .lck files in the eXist data directory.
>>>>>
>>>>>    Cheers,
>>>>>
>>>>>    Matthew
>>>>>
>>>>> Ryan Puddephatt wrote:
>>>>>        
>>>>>> All,
>>>>>>     I have noticed a problem in the current version of
>>>>>>          
>>> Exist, using
>>>    
>>>>>> the REST API. I am using the _query parameter and all my
>>>>>>          
>>>>> results have
>>>>>        
>>>>>> a default namespace, but when returning the data only the
>>>>>>          
>>>>> first result
>>>>>        
>>>>>> has the namespace. I have tried running the lastest
>>>>>>          
>>> stable build of
>>>    
>>>>>> Exist as a standalone webapp and this issue seems to have been
>>>>>> resolved. I have tried changing replacing the exist jars
>>>>>>          
>>>>> with the new
>>>>>        
>>>>>> ones, but it says the XMLDB is locked by another instance
>>>>>>          
>>> of the db.
>>>    
>>>>>> Has anyone successfully updated the version of Exist in OPS? I
>>>>>> would like some directions to see if this is a fix for
>my problem.
>>>>>>
>>>>>> Thanks Ryan
>>>>>>
>>>>>>
>>>>>> Ryan Puddephatt
>>>>>> Software Engineer
>>>>>>
>>>>>>
>>>>>> Teleflex Group - IT UK
>>>>>> 1 Michaelson Square
>>>>>> Livingston
>>>>>> West Lothian
>>>>>> Scotland
>>>>>> EH54 7DP
>>>>>>
>>>>>> e> [hidden email] <mailto:[hidden email]>
>>>>>> t> +44(0)1506 407 110
>>>>>> f> +44(0)1506 407 108
>>>>>> w> www.teleflex.com <http://www.teleflex.com/>
>>>>>>
>>>>>>
>>>>>>          
>>>>>
>>>>>        
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the
>>>>      
>>> [hidden email] mailing list.
>>>    
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> ObjectWeb mailing lists service home page:
>>>> http://www.objectweb.org/wws
>>>>
>>>>
>>>>
>>>>      
>>> --
>>> Blog (XML, Web apps, Open Source):
>>> http://www.orbeon.com/blog/
>>>
>>>
>>>    
>>
>>
>>  
>>
>----------------------------------------------------------------------
>> --
>>
>>
>> --
>> You receive this message as a subscriber of the
>[hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:
>> http://www.objectweb.org/wws
>>  
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

mjgraham
Hi,

I've tried both xxforms:username/password and user:pass@http:... in the
submissions from XForms to eXist REST API but it does not work so far.

    Cheers,

    Matthew

Ryan Puddephatt wrote:

> Matthew,
> Thanks, I'll try another version of Exist, I was trying to resolve a
> REST API problem, which may have been fixed in an earlier released.
>
> On another note, have you (or anyone) successfully used xxforms:username and
> xxforms:password for the Exist REST API, I'm not sure if this is OPS or
> Exist, but the authentication doesn't seem to be passed.
>
> Thanks
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>  
>
>  
>> -----Original Message-----
>> From: Matthew Graham [mailto:[hidden email]]
>> Sent: 07 November 2006 14:10
>> To: [hidden email]
>> Subject: Re: [ops-users] Exist REST Problems
>>
>> Hi Ryan,
>>
>> The lck files are present whenever an eXist instance is
>> running - a problem I have encountered, however, was that they
>> did not get deleted when eXist shutdown so the next time it
>> started up, it complained about locking. Is there a reason you
>> are using eXist 1.1.1 in preference to 1.0.1? I encountered a
>> number of problems with 1.1 RC2 which caused me to switch to
>> 1.0 RC2, even though they are supposed to be almost identical
>> under the hood (apart from the indexing algorithm).
>>
>>    Cheers,
>>
>>    Matthew
>>
>> Ryan Puddephatt wrote:
>>    
>>> Alex,
>>> Thanks for pointing this out, I've tried restarting my PC after
>>> moving over to the new exist jars, but no success. The lck files
>>> mentioned in that email have been deleted, but they just get
>>> recreated. I'll take my query to the exists list to see if they can
>>> help
>>>
>>> Thanks
>>>
>>> Ryan
>>>
>>> Ryan Puddephatt
>>> Software Engineer
>>>
>>> Teleflex Group - IT UK
>>> 1 Michaelson Square
>>> Livingston
>>> West Lothian
>>> Scotland
>>> EH54 7DP
>>>
>>> e> [hidden email]
>>> t> +44(0)1506 407 110
>>> f> +44(0)1506 407 108
>>>
>>>  
>>>
>>>  
>>>      
>>>> -----Original Message-----
>>>> From: [hidden email] [mailto:[hidden email]] On Behalf Of
>>>> Alessandro Vernet
>>>> Sent: 07 November 2006 00:39
>>>> To: [hidden email]
>>>> Subject: Re: [ops-users] Exist REST Problems
>>>>
>>>> Ryan,
>>>>
>>>> I had similar problems in the past, when eXist was still using Java
>>>> native IO locking. But I haven't seen that issue recently. You can
>>>> find some information about locking in this message from Wolfgang
>>>> (you might also useful bits of information in the rest of the
>>>> thread):
>>>>
>>>> http://www.nabble.com/Another-process-has-locked-a-portion-of-t
>>>> he-file-tf2035536.html#a5822296
>>>>
>>>> Alex
>>>>
>>>> On 11/6/06, Ryan Puddephatt <[hidden email]> wrote:
>>>>    
>>>>        
>>>>> Matt,
>>>>>         Thanks for the pointers, I'm trying to use 1.1.1
>>>>>      
>>>>>          
>>>> newcore, I've
>>>>    
>>>>        
>>>>> added the antlr.jar and removed dbx_dir.lck and
>>>>>          
>> journal.lck from the
>>    
>>>>> exist_data, but it just keeps replacing them when I start tomcat
>>>>> backup
>>>>>
>>>>> Any ideas? I've searched Exists website, but its not very helpful
>>>>>
>>>>> Ryan
>>>>>
>>>>> Ryan Puddephatt
>>>>> Software Engineer
>>>>>
>>>>> Teleflex Group - IT UK
>>>>> 1 Michaelson Square
>>>>> Livingston
>>>>> West Lothian
>>>>> Scotland
>>>>> EH54 7DP
>>>>>
>>>>> e> [hidden email]
>>>>> t> +44(0)1506 407 110
>>>>> f> +44(0)1506 407 108
>>>>>
>>>>>
>>>>>
>>>>>      
>>>>>          
>>>>>> -----Original Message-----
>>>>>> From: Matthew Graham [mailto:[hidden email]]
>>>>>> Sent: 06 November 2006 16:36
>>>>>> To: [hidden email]
>>>>>> Subject: Re: [ops-users] Exist REST Problems
>>>>>>
>>>>>> Hi Ryan,
>>>>>>
>>>>>> I'm using eXist 1.0.1 with the latest version of OPS. I
>>>>>>        
>>>>>>            
>>>> found that I
>>>>    
>>>>        
>>>>>> had to add the antlr jar from eXist as well since the OPS
>>>>>>        
>>>>>>            
>>>> one is in a
>>>>    
>>>>        
>>>>>> different namespace (package). I also came across the
>>>>>>        
>>>>>>            
>>>> locked DB issue
>>>>    
>>>>        
>>>>>> initially but then realised that I had another app running eXist
>>>>>> which was pointing at the same db directory. As a last
>>>>>>            
>> resort, I've
>>    
>>>>>> also found it useful to stop/kill all Tomcat processes and then
>>>>>> delete the .lck files in the eXist data directory.
>>>>>>
>>>>>>    Cheers,
>>>>>>
>>>>>>    Matthew
>>>>>>
>>>>>> Ryan Puddephatt wrote:
>>>>>>        
>>>>>>            
>>>>>>> All,
>>>>>>>     I have noticed a problem in the current version of
>>>>>>>          
>>>>>>>              
>>>> Exist, using
>>>>    
>>>>        
>>>>>>> the REST API. I am using the _query parameter and all my
>>>>>>>          
>>>>>>>              
>>>>>> results have
>>>>>>        
>>>>>>            
>>>>>>> a default namespace, but when returning the data only the
>>>>>>>          
>>>>>>>              
>>>>>> first result
>>>>>>        
>>>>>>            
>>>>>>> has the namespace. I have tried running the lastest
>>>>>>>          
>>>>>>>              
>>>> stable build of
>>>>    
>>>>        
>>>>>>> Exist as a standalone webapp and this issue seems to have been
>>>>>>> resolved. I have tried changing replacing the exist jars
>>>>>>>          
>>>>>>>              
>>>>>> with the new
>>>>>>        
>>>>>>            
>>>>>>> ones, but it says the XMLDB is locked by another instance
>>>>>>>          
>>>>>>>              
>>>> of the db.
>>>>    
>>>>        
>>>>>>> Has anyone successfully updated the version of Exist in OPS? I
>>>>>>> would like some directions to see if this is a fix for
>>>>>>>              
>> my problem.
>>    
>>>>>>> Thanks Ryan
>>>>>>>
>>>>>>>
>>>>>>> Ryan Puddephatt
>>>>>>> Software Engineer
>>>>>>>
>>>>>>>
>>>>>>> Teleflex Group - IT UK
>>>>>>> 1 Michaelson Square
>>>>>>> Livingston
>>>>>>> West Lothian
>>>>>>> Scotland
>>>>>>> EH54 7DP
>>>>>>>
>>>>>>> e> [hidden email] <mailto:[hidden email]>
>>>>>>> t> +44(0)1506 407 110
>>>>>>> f> +44(0)1506 407 108
>>>>>>> w> www.teleflex.com <http://www.teleflex.com/>
>>>>>>>
>>>>>>>
>>>>>>>          
>>>>>>>              
>>>>>>        
>>>>>>            
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the
>>>>>      
>>>>>          
>>>> [hidden email] mailing list.
>>>>    
>>>>        
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> ObjectWeb mailing lists service home page:
>>>>> http://www.objectweb.org/wws
>>>>>
>>>>>
>>>>>
>>>>>      
>>>>>          
>>>> --
>>>> Blog (XML, Web apps, Open Source):
>>>> http://www.orbeon.com/blog/
>>>>
>>>>
>>>>    
>>>>        
>>>  
>>>
>>>      
>> ----------------------------------------------------------------------
>>    
>>> --
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>>      
>> [hidden email] mailing list.
>>    
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page:
>>> http://www.objectweb.org/wws
>>>  
>>>      
>>
>>    
>
>
>  
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
In reply to this post by Ryan Puddephatt
On 11/7/06, Ryan Puddephatt <[hidden email]> wrote:
> On another note, have you (or anyone) successfully used xxforms:username and
> xxforms:password for the Exist REST API, I'm not sure if this is OPS or
> Exist, but the authentication doesn't seem to be passed.

Ryan,

In one application I have, I am using xxforms:username="" as I don't
to forward the user/password information of the user currently logged
in the application to eXist (for this application, the eXist REST
endpoint is not protected by login/password).

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
In reply to this post by mjgraham
On 11/7/06, Matthew Graham <[hidden email]> wrote:
> I've tried both xxforms:username/password and user:pass@http:... in the
> submissions from XForms to eXist REST API but it does not work so far.

Matthew,

Strange, I have been using this for a while now. Are you using a build
of Orbeon Forms that is more than a couple of months old? Have you
tried to look at what the HTTP request sent by Orbeon Forms to eXist
looks like with a tool like tcpmon?

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
In reply to this post by Ryan Puddephatt
On 11/7/06, Ryan Puddephatt <[hidden email]> wrote:
> Alex,
>         Thanks for pointing this out, I've tried restarting my PC after
> moving over to the new exist jars, but no success. The lck files mentioned
> in that email have been deleted, but they just get recreated. I'll take my
> query to the exists list to see if they can help

Ryan,

Sounds good. I had cases where I could not get eXist to re-open the
database, but that was a while ago (pre-1.0/1.1), and I didn't bother
too much as I had a quick way to recreate the database from scratch.
Let us know if you learn something about this issue from the eXist
list.

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

mjgraham
In reply to this post by Alessandro Vernet
Hi Alex,

I'm running PresentationServer Release 3.5.M1.200610302309 but will
check the HTTP request.

    Cheers,

    Matthew

Alessandro Vernet wrote:

> On 11/7/06, Matthew Graham <[hidden email]> wrote:
>> I've tried both xxforms:username/password and user:pass@http:... in the
>> submissions from XForms to eXist REST API but it does not work so far.
>
> Matthew,
>
> Strange, I have been using this for a while now. Are you using a build
> of Orbeon Forms that is more than a couple of months old? Have you
> tried to look at what the HTTP request sent by Orbeon Forms to eXist
> looks like with a tool like tcpmon?
>
> Alex
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

mjgraham
In reply to this post by Alessandro Vernet
Hi Alex,

I also checked with tcpmon what is going across the wire and it seems
that the autentications on wboint sureved tomight

Alessandro Vernet wrote:

> On 11/7/06, Matthew Graham <[hidden email]> wrote:
>> I've tried both xxforms:username/password and user:pass@http:... in the
>> submissions from XForms to eXist REST API but it does not work so far.
>
> Matthew,
>
> Strange, I have been using this for a while now. Are you using a build
> of Orbeon Forms that is more than a couple of months old? Have you
> tried to look at what the HTTP request sent by Orbeon Forms to eXist
> looks like with a tool like tcpmon?
>
> Alex
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Alex, Matthew,
        I looked round the Exist site and found this
http://sourceforge.net/tracker/index.php?func=detail&aid=1576760&group_id=17
691&atid=317691 which is a patch for REST Authentication. Perhaps once I get
the upgrade problem sorted I'll look into this

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Matthew Graham [mailto:[hidden email]]
>Sent: 08 November 2006 05:13
>To: [hidden email]
>Subject: Re: [ops-users] Exist REST Problems
>
>Hi Alex,
>
>I also checked with tcpmon what is going across the wire and
>it seems that the autentications on wboint sureved tomight
>
>Alessandro Vernet wrote:
>> On 11/7/06, Matthew Graham <[hidden email]> wrote:
>>> I've tried both xxforms:username/password and user:pass@http:... in
>>> the submissions from XForms to eXist REST API but it does
>not work so far.
>>
>> Matthew,
>>
>> Strange, I have been using this for a while now. Are you
>using a build
>> of Orbeon Forms that is more than a couple of months old? Have you
>> tried to look at what the HTTP request sent by Orbeon Forms to eXist
>> looks like with a tool like tcpmon?
>>
>> Alex
>>
>----------------------------------------------------------------------
>> --
>>
>>
>> --
>> You receive this message as a subscriber of the
>[hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:
>> http://www.objectweb.org/wws
>>  
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Alex,
        The advice from exists was to backup my data, then move over to the
new exist jars and restore it. Which works fine, it now also correctly
authenticates the REST API, but in a submission xxforms:username and
xxforms:password don't seem to get passed

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Ryan Puddephatt [mailto:[hidden email]]
>Sent: 08 November 2006 09:45
>To: [hidden email]
>Subject: RE: [ops-users] Exist REST Problems
>
>Alex, Matthew,
> I looked round the Exist site and found this
>http://sourceforge.net/tracker/index.php?func=detail&aid=157676
0&group_id=17

>691&atid=317691 which is a patch for REST Authentication.
>Perhaps once I get the upgrade problem sorted I'll look into this
>
>Ryan
>
>Ryan Puddephatt
>Software Engineer
>
>Teleflex Group - IT UK
>1 Michaelson Square
>Livingston
>West Lothian
>Scotland
>EH54 7DP
>
>e> [hidden email]
>t> +44(0)1506 407 110
>f> +44(0)1506 407 108
>
>
>
>>-----Original Message-----
>>From: Matthew Graham [mailto:[hidden email]]
>>Sent: 08 November 2006 05:13
>>To: [hidden email]
>>Subject: Re: [ops-users] Exist REST Problems
>>
>>Hi Alex,
>>
>>I also checked with tcpmon what is going across the wire and it seems
>>that the autentications on wboint sureved tomight
>>
>>Alessandro Vernet wrote:
>>> On 11/7/06, Matthew Graham <[hidden email]> wrote:
>>>> I've tried both xxforms:username/password and
>user:pass@http:... in
>>>> the submissions from XForms to eXist REST API but it does
>>not work so far.
>>>
>>> Matthew,
>>>
>>> Strange, I have been using this for a while now. Are you
>>using a build
>>> of Orbeon Forms that is more than a couple of months old? Have you
>>> tried to look at what the HTTP request sent by Orbeon Forms
>to eXist
>>> looks like with a tool like tcpmon?
>>>
>>> Alex
>>>
>>----------------------------------------------------------------------
>>> --
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>[hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page:
>>> http://www.objectweb.org/wws
>>>  
>>
>>
>>
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
Ryan,

In the use cases I had so far (both with and without eXist),
username/password is being sent to the server. You can find attached a
stand-alone file you can run in the sandbox. It retrieves a resource
from a protected resource on a publicly accessible server. If this
works for you like it does for me, but username/password does not
seems to be sent to eXist, it would be interesting if you could look
at the HTTP traffic in both cases and see what is different.

Alex

On 11/9/06, Ryan Puddephatt <[hidden email]> wrote:

> Alex,
>         The advice from exists was to backup my data, then move over to the
> new exist jars and restore it. Which works fine, it now also correctly
> authenticates the REST API, but in a submission xxforms:username and
> xxforms:password don't seem to get passed
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: Ryan Puddephatt [mailto:[hidden email]]
> >Sent: 08 November 2006 09:45
> >To: [hidden email]
> >Subject: RE: [ops-users] Exist REST Problems
> >
> >Alex, Matthew,
> >       I looked round the Exist site and found this
> >http://sourceforge.net/tracker/index.php?func=detail&aid=157676
> 0&group_id=17
> >691&atid=317691 which is a patch for REST Authentication.
> >Perhaps once I get the upgrade problem sorted I'll look into this
> >
> >Ryan
> >
> >Ryan Puddephatt
> >Software Engineer
> >
> >Teleflex Group - IT UK
> >1 Michaelson Square
> >Livingston
> >West Lothian
> >Scotland
> >EH54 7DP
> >
> >e> [hidden email]
> >t> +44(0)1506 407 110
> >f> +44(0)1506 407 108
> >
> >
> >
> >>-----Original Message-----
> >>From: Matthew Graham [mailto:[hidden email]]
> >>Sent: 08 November 2006 05:13
> >>To: [hidden email]
> >>Subject: Re: [ops-users] Exist REST Problems
> >>
> >>Hi Alex,
> >>
> >>I also checked with tcpmon what is going across the wire and it seems
> >>that the autentications on wboint sureved tomight
> >>
> >>Alessandro Vernet wrote:
> >>> On 11/7/06, Matthew Graham <[hidden email]> wrote:
> >>>> I've tried both xxforms:username/password and
> >user:pass@http:... in
> >>>> the submissions from XForms to eXist REST API but it does
> >>not work so far.
> >>>
> >>> Matthew,
> >>>
> >>> Strange, I have been using this for a while now. Are you
> >>using a build
> >>> of Orbeon Forms that is more than a couple of months old? Have you
> >>> tried to look at what the HTTP request sent by Orbeon Forms
> >to eXist
> >>> looks like with a tool like tcpmon?
> >>>
> >>> Alex
> >>>
> >>----------------------------------------------------------------------
> >>> --
> >>>
> >>>
> >>> --
> >>> You receive this message as a subscriber of the
> >>[hidden email] mailing list.
> >>> To unsubscribe: mailto:[hidden email]
> >>> For general help: mailto:[hidden email]?subject=help
> >>> ObjectWeb mailing lists service home page:
> >>> http://www.objectweb.org/wws
> >>>
> >>
> >>
> >>
> >
> >
> >
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

submission-protected.xhtml (2K) Download Attachment
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Alex,
        I have it working now, I think I had managed to confuse exist in the
XMLDB utility, so it wasn't working.

I now have another problem, the REST API always returns text/html. There is
a parameter that can change it, by adding the following to the EXistServlet

<init-param>
   <param-name>dynamic-content-type</param-name>
   <param-value>yes</param-value>
</init-param>

I haven't managed to get it to work, because I add my records in the same
way you do in the DMV Example. The xforms:submission throws an error when it
receives this content, is there any way of adapting xforms:submissions to
force a content type? If not what is the best way to implement this?

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf
>Of Alessandro Vernet
>Sent: 09 November 2006 16:46
>To: [hidden email]
>Subject: Re: [ops-users] Exist REST Problems
>
>Ryan,
>
>In the use cases I had so far (both with and without eXist),
>username/password is being sent to the server. You can find
>attached a stand-alone file you can run in the sandbox. It
>retrieves a resource from a protected resource on a publicly
>accessible server. If this works for you like it does for me,
>but username/password does not seems to be sent to eXist, it
>would be interesting if you could look at the HTTP traffic in
>both cases and see what is different.
>
>Alex
>
>On 11/9/06, Ryan Puddephatt <[hidden email]> wrote:
>> Alex,
>>         The advice from exists was to backup my data, then move over
>> to the new exist jars and restore it. Which works fine, it now also
>> correctly authenticates the REST API, but in a submission
>> xxforms:username and xxforms:password don't seem to get passed
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>
>> e> [hidden email]
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>>
>>
>>
>> >-----Original Message-----
>> >From: Ryan Puddephatt [mailto:[hidden email]]
>> >Sent: 08 November 2006 09:45
>> >To: [hidden email]
>> >Subject: RE: [ops-users] Exist REST Problems
>> >
>> >Alex, Matthew,
>> >       I looked round the Exist site and found this
>> >http://sourceforge.net/tracker/index.php?func=detail&aid=157676
>> 0&group_id=17
>> >691&atid=317691 which is a patch for REST Authentication.
>> >Perhaps once I get the upgrade problem sorted I'll look into this
>> >
>> >Ryan
>> >
>> >Ryan Puddephatt
>> >Software Engineer
>> >
>> >Teleflex Group - IT UK
>> >1 Michaelson Square
>> >Livingston
>> >West Lothian
>> >Scotland
>> >EH54 7DP
>> >
>> >e> [hidden email]
>> >t> +44(0)1506 407 110
>> >f> +44(0)1506 407 108
>> >
>> >
>> >
>> >>-----Original Message-----
>> >>From: Matthew Graham [mailto:[hidden email]]
>> >>Sent: 08 November 2006 05:13
>> >>To: [hidden email]
>> >>Subject: Re: [ops-users] Exist REST Problems
>> >>
>> >>Hi Alex,
>> >>
>> >>I also checked with tcpmon what is going across the wire and it
>> >>seems that the autentications on wboint sureved tomight
>> >>
>> >>Alessandro Vernet wrote:
>> >>> On 11/7/06, Matthew Graham <[hidden email]> wrote:
>> >>>> I've tried both xxforms:username/password and
>> >user:pass@http:... in
>> >>>> the submissions from XForms to eXist REST API but it does
>> >>not work so far.
>> >>>
>> >>> Matthew,
>> >>>
>> >>> Strange, I have been using this for a while now. Are you
>> >>using a build
>> >>> of Orbeon Forms that is more than a couple of months
>old? Have you
>> >>> tried to look at what the HTTP request sent by Orbeon Forms
>> >to eXist
>> >>> looks like with a tool like tcpmon?
>> >>>
>> >>> Alex
>> >>>
>>
>>>--------------------------------------------------------------------
>> >>--
>> >>> --
>> >>>
>> >>>
>> >>> --
>> >>> You receive this message as a subscriber of the
>> >>[hidden email] mailing list.
>> >>> To unsubscribe: mailto:[hidden email]
>> >>> For general help: mailto:[hidden email]?subject=help
>> >>> ObjectWeb mailing lists service home page:
>> >>> http://www.objectweb.org/wws
>> >>>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
>[hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:
>> http://www.objectweb.org/wws
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
On 11/10/06, Ryan Puddephatt <[hidden email]> wrote:
> I now have another problem, the REST API always returns text/html. There is
> a parameter that can change it, by adding the following to the EXistServlet

Ryan,

I don't have this problem. I am using a verbatim 1.1.1 deployed as a
separate war, and if I access http://localhost:8090/exist/rest/, the
response I get is:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 321
Date: Fri, 10 Nov 2006 21:50:24 GMT

<exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist">
...

Do you see anything that could be different in your case?

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Exist REST Problems

Ryan Puddephatt
Alex,
        Apart from the fact I'm using an internal exist the only difference
I can see is that I'm using the _query parameter to query the DB rather than
pulling a single document, I believe that this is the cause for the change
in content type

Thanks

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf
>Of Alessandro Vernet
>Sent: 10 November 2006 21:53
>To: [hidden email]
>Subject: Re: [ops-users] Exist REST Problems
>
>On 11/10/06, Ryan Puddephatt <[hidden email]> wrote:
>> I now have another problem, the REST API always returns text/html.
>> There is a parameter that can change it, by adding the following to
>> the EXistServlet
>
>Ryan,
>
>I don't have this problem. I am using a verbatim 1.1.1
>deployed as a separate war, and if I access
>http://localhost:8090/exist/rest/, the response I get is:
>
>HTTP/1.1 200 OK
>Server: Apache-Coyote/1.1
>Content-Type: text/xml;charset=UTF-8
>Content-Length: 321
>Date: Fri, 10 Nov 2006 21:50:24 GMT
>
><exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist">
>...
>
>Do you see anything that could be different in your case?
>
>Alex
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Exist REST Problems

Alessandro  Vernet
Administrator
Ryan,

Here I am posting the query from XForms. That is posting a query
embedded in a <query> document as the one shown on the page linked
below. Would you get the text/xml content type when doing a POST vs. a
GET? Is it OK in your case to do a POST?

http://exist.sourceforge.net/devguide.html#N10385

(Unless I am sending trivial queries, I don't like very much the idea
of sending them in a query string with a GET, because I know that one
day the query will become too long, exceed the URL length limit and
lead to a bug that is hard to find.)

Alex

On 11/10/06, Ryan Puddephatt <[hidden email]> wrote:

> Alex,
>         Apart from the fact I'm using an internal exist the only difference
> I can see is that I'm using the _query parameter to query the DB rather than
> pulling a single document, I believe that this is the cause for the change
> in content type
>
> Thanks
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: [hidden email] [mailto:[hidden email]] On Behalf
> >Of Alessandro Vernet
> >Sent: 10 November 2006 21:53
> >To: [hidden email]
> >Subject: Re: [ops-users] Exist REST Problems
> >
> >On 11/10/06, Ryan Puddephatt <[hidden email]> wrote:
> >> I now have another problem, the REST API always returns text/html.
> >> There is a parameter that can change it, by adding the following to
> >> the EXistServlet
> >
> >Ryan,
> >
> >I don't have this problem. I am using a verbatim 1.1.1
> >deployed as a separate war, and if I access
> >http://localhost:8090/exist/rest/, the response I get is:
> >
> >HTTP/1.1 200 OK
> >Server: Apache-Coyote/1.1
> >Content-Type: text/xml;charset=UTF-8
> >Content-Length: 321
> >Date: Fri, 10 Nov 2006 21:50:24 GMT
> >
> ><exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist">
> >...
> >
> >Do you see anything that could be different in your case?
> >
> >Alex
> >--
> >Blog (XML, Web apps, Open Source):
> >http://www.orbeon.com/blog/
> >
> >
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
12