Re: [Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-28 Thread Bram Luyten
Hi Patrick,

these ones:

https://jspace.atlassian.net/wiki/display/DSPACEAPI/DSpace+REST+API+Home

The documentation for GET /communities is here:
https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_communities

Documentation for the other endpoints (over 60 in total):
https://jspace.atlassian.net/wiki/display/DSPACEAPI/API+Documentation

best regards,

Bram

-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>


On Fri, Jun 28, 2013 at 5:33 PM, Patrick West  wrote:

> You say "the documentation in in his links above." … what links above?
>
> On Jun 27, 2013, at 12:07 PM, Michael Guthrie 
> wrote:
>
> Hi Ying, and all those interested in the REST API
>
> Just to let you know, we are updating the REST API to be compatible with
> 3.1 and should be available next week.
>
> As Bram said, the documentation is in his links above.
>
> I'll post another message when we release the 3.1 upgrade.
>
> Best,
>
> Michael
>
>
>
>
> On 24 June 2013 02:59, Gary Browne  wrote:
>
>> Hi Ying,
>>
>> I think you need to provide the format, like:
>>
>> http://path/to/rest/api/communities.xml
>>
>> or
>>
>> http://path/to/rest/api/communities.json
>>
>> Regards,
>> Gary
>>
>> GARY BROWNE | Development Programmer
>> Library IT Services | Fisher Library F03
>> THE UNIVERSITY OF SYDNEY
>>
>> T +61 2 9351 5946  | M +61 405 647 868
>> E gary.bro...@sydney.edu.au  | W http://sydney.edu.au
>> Sent from my plain old desktop computer.
>>
>> CRICOS 00026A
>> This email plus any attachments to it are confidential. Any unauthorised
>> use is strictly prohibited. If you receive this email in error, please
>> delete it and any attachments.
>> Please think of our environment and only print this e-mail if necessary.
>>
>>
>> -Original Message-
>> From: Ying Jin [mailto:ying@rice.edu]
>> Sent: Saturday, 22 June 2013 5:14 AM
>> To: dspace-tech@lists.sourceforge.net
>> Subject: [Dspace-tech] DSpace REST API on DSpace 3.1
>>
>> Hi,
>>
>> Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the
>> API installed and used the rest-client 3.2 tested it.
>> https://code.google.com/p/rest-client/wiki/Running
>>
>> However, if I send GET with /communities, I get HTTP/1.1 200 OK and some
>> header response, but body or test result are all empty. I suppose I should
>> get a list of community returned.
>>
>> Could anyone give me a hint?
>>
>> Thanks in advance for any help,
>> Ying
>>
>> --
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>>
>> --
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
> --
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
>
> http://p.sf.net/sfu/windows-dev2dev___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
>
> --
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-28 Thread Patrick West
You say "the documentation in in his links above." … what links above?

On Jun 27, 2013, at 12:07 PM, Michael Guthrie  wrote:

> Hi Ying, and all those interested in the REST API
> 
> Just to let you know, we are updating the REST API to be compatible with 3.1 
> and should be available next week.
> 
> As Bram said, the documentation is in his links above. 
> 
> I'll post another message when we release the 3.1 upgrade.
> 
> Best,
> 
> Michael
> 
> 
> 
> 
> On 24 June 2013 02:59, Gary Browne  wrote:
> Hi Ying,
> 
> I think you need to provide the format, like:
> 
> http://path/to/rest/api/communities.xml
> 
> or
> 
> http://path/to/rest/api/communities.json
> 
> Regards,
> Gary
> 
> GARY BROWNE | Development Programmer
> Library IT Services | Fisher Library F03 
> THE UNIVERSITY OF SYDNEY
> 
> T +61 2 9351 5946  | M +61 405 647 868  
> E gary.bro...@sydney.edu.au  | W http://sydney.edu.au
> Sent from my plain old desktop computer.
> 
> CRICOS 00026A
> This email plus any attachments to it are confidential. Any unauthorised use 
> is strictly prohibited. If you receive this email in error, please delete it 
> and any attachments.
> Please think of our environment and only print this e-mail if necessary.
> 
> 
> -Original Message-
> From: Ying Jin [mailto:ying@rice.edu]
> Sent: Saturday, 22 June 2013 5:14 AM
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] DSpace REST API on DSpace 3.1
> 
> Hi,
> 
> Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the API 
> installed and used the rest-client 3.2 tested it. 
> https://code.google.com/p/rest-client/wiki/Running
> 
> However, if I send GET with /communities, I get HTTP/1.1 200 OK and some 
> header response, but body or test result are all empty. I suppose I should 
> get a list of community returned.
> 
> Could anyone give me a hint?
> 
> Thanks in advance for any help,
> Ying
> --
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> 
> --
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> 
> --
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-27 Thread Michael Guthrie
Hi Ying, and all those interested in the REST API

Just to let you know, we are updating the REST API to be compatible with
3.1 and should be available next week.

As Bram said, the documentation is in his links above.

I'll post another message when we release the 3.1 upgrade.

Best,

Michael




On 24 June 2013 02:59, Gary Browne  wrote:

> Hi Ying,
>
> I think you need to provide the format, like:
>
> http://path/to/rest/api/communities.xml
>
> or
>
> http://path/to/rest/api/communities.json
>
> Regards,
> Gary
>
> GARY BROWNE | Development Programmer
> Library IT Services | Fisher Library F03
> THE UNIVERSITY OF SYDNEY
>
> T +61 2 9351 5946  | M +61 405 647 868
> E gary.bro...@sydney.edu.au  | W http://sydney.edu.au
> Sent from my plain old desktop computer.
>
> CRICOS 00026A
> This email plus any attachments to it are confidential. Any unauthorised
> use is strictly prohibited. If you receive this email in error, please
> delete it and any attachments.
> Please think of our environment and only print this e-mail if necessary.
>
>
> -Original Message-
> From: Ying Jin [mailto:ying@rice.edu]
> Sent: Saturday, 22 June 2013 5:14 AM
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] DSpace REST API on DSpace 3.1
>
> Hi,
>
> Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the
> API installed and used the rest-client 3.2 tested it.
> https://code.google.com/p/rest-client/wiki/Running
>
> However, if I send GET with /communities, I get HTTP/1.1 200 OK and some
> header response, but body or test result are all empty. I suppose I should
> get a list of community returned.
>
> Could anyone give me a hint?
>
> Thanks in advance for any help,
> Ying
>
> --
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> --
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-23 Thread Gary Browne
Hi Ying,

I think you need to provide the format, like:

http://path/to/rest/api/communities.xml

or

http://path/to/rest/api/communities.json

Regards,
Gary

GARY BROWNE | Development Programmer 
Library IT Services | Fisher Library F03    

THE UNIVERSITY OF SYDNEY

T +61 2 9351 5946  | M +61 405 647 868  
E gary.bro...@sydney.edu.au  | W http://sydney.edu.au 
Sent from my plain old desktop computer.

CRICOS 00026A
This email plus any attachments to it are confidential. Any unauthorised use is 
strictly prohibited. If you receive this email in error, please delete it and 
any attachments.
Please think of our environment and only print this e-mail if necessary.


-Original Message-
From: Ying Jin [mailto:ying@rice.edu] 
Sent: Saturday, 22 June 2013 5:14 AM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] DSpace REST API on DSpace 3.1

Hi,

Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the API 
installed and used the rest-client 3.2 tested it. 
https://code.google.com/p/rest-client/wiki/Running

However, if I send GET with /communities, I get HTTP/1.1 200 OK and some header 
response, but body or test result are all empty. I suppose I should get a list 
of community returned.

Could anyone give me a hint?

Thanks in advance for any help,
Ying
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-22 Thread Bram Luyten
Hi Ying,

the wijiti REST API is 3.0 compatible so chances are good it will work with
3.1 as well:

https://jspace.atlassian.net/wiki/display/DSPACEAPI/DSpace+REST+API+Home

The documentation for GET /communities is here:
https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_communities

Documentation for the other endpoints (over 60 in total):
https://jspace.atlassian.net/wiki/display/DSPACEAPI/API+Documentation

hope this helps,

Bram

-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com


On Fri, Jun 21, 2013 at 11:03 PM, Peter Dietz  wrote:

> Hi Ying,
>
> I've had good luck using the Hedtek REST API, you can see it in action at:
> http://demo.dspace.org/rest-hedtek
>  Github: https://github.com/hedtek/dspace-rest
>
> Its /community index is:
> http://demo.dspace.org/rest-hedtek/communities.json
> And a specific community is:
> http://demo.dspace.org/rest-hedtek/communities/1.json
>
> There is a sample client-app that queries this API.
> The homepage is the community index:
> http://dspace-rest-client-play.herokuapp.com/
> And a specific community is:
> http://dspace-rest-client-play.herokuapp.com/community/1
>
>
> There is a group working on evaluating the existing REST API solutions,
> understanding community requirements of an API, and working on a solution
> that might be ready for a future DSpace release.
> https://wiki.duraspace.org/display/DSPACE/DSpace+Futures+-+REST+API
>
>
>
> Peter Dietz
>
>
> On Fri, Jun 21, 2013 at 3:13 PM, Ying Jin  wrote:
>
>> Hi,
>>
>> Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the
>> API installed and used the rest-client 3.2 tested it.
>> https://code.google.com/p/rest-client/wiki/Running
>>
>> However, if I send GET with /communities, I get HTTP/1.1 200 OK and some
>> header response, but body or test result are all empty. I suppose I should
>> get a list of community returned…
>>
>> Could anyone give me a hint?
>>
>> Thanks in advance for any help,
>> Ying
>>
>> --
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
>
> --
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-21 Thread Peter Dietz
Hi Ying,

I've had good luck using the Hedtek REST API, you can see it in action at:
http://demo.dspace.org/rest-hedtek
Github: https://github.com/hedtek/dspace-rest

Its /community index is: http://demo.dspace.org/rest-hedtek/communities.json
And a specific community is:
http://demo.dspace.org/rest-hedtek/communities/1.json

There is a sample client-app that queries this API.
The homepage is the community index:
http://dspace-rest-client-play.herokuapp.com/
And a specific community is:
http://dspace-rest-client-play.herokuapp.com/community/1


There is a group working on evaluating the existing REST API solutions,
understanding community requirements of an API, and working on a solution
that might be ready for a future DSpace release.
https://wiki.duraspace.org/display/DSPACE/DSpace+Futures+-+REST+API



Peter Dietz


On Fri, Jun 21, 2013 at 3:13 PM, Ying Jin  wrote:

> Hi,
>
> Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the
> API installed and used the rest-client 3.2 tested it.
> https://code.google.com/p/rest-client/wiki/Running
>
> However, if I send GET with /communities, I get HTTP/1.1 200 OK and some
> header response, but body or test result are all empty. I suppose I should
> get a list of community returned…
>
> Could anyone give me a hint?
>
> Thanks in advance for any help,
> Ying
>
> --
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] DSpace REST API on DSpace 3.1

2013-06-21 Thread Ying Jin
Hi,

Does anyone ever tested the DSpace REST API under DSpace 3.1? I have the API 
installed and used the rest-client 3.2 tested it. 
https://code.google.com/p/rest-client/wiki/Running

However, if I send GET with /communities, I get HTTP/1.1 200 OK and some header 
response, but body or test result are all empty. I suppose I should get a list 
of community returned…

Could anyone give me a hint?

Thanks in advance for any help,
Ying
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] DSpace REST API

2013-05-08 Thread Hayden Young
Wijiti has released the REST API for DSpace 1.8 and 3.0.

The latest update includes new features such as the ability to add new 
items and delete existing items and bitstreams. Please note that the 
item create feature requires a modification to the core DSpace code; 
full details will be provided on the JSpace wiki page shortly with 
another mailing list post to follow the when it is ready.

Details, downloads and documentation are available at 
https://jspace.atlassian.net/wiki/display/DSPACEAPI.

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 8 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] dspace-rest api and dSpace 3.0

2012-12-17 Thread helix84
Hi Wesley,

the Hedtek version of the REST API should soon be available for 1.8 (by Jorum).
As od 3.0, a REST API is not yet an official part of the DSpace
distribution, but the DSpace commiters would certainly like to include
a REST API for 4.0 if there's cooperation from developers of such API
(there certainly is interest). Currently there are 2 versions that
build on the original GSoC project - the Hedtek version [1] and the
Wijiti version [2] [3]. The Wijiti version is already available for
1.8. Currently none is available for 3.0, but I'd expect it to be,
eventually.


[1] https://github.com/hedtek/dspace-rest
[2] https://github.com/wijiti/dspace-rest-api
[3] https://jspace.atlassian.net/wiki/display/DSPACEAPI/DSpace+REST+API+Home


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] dspace-rest api and dSpace 3.0

2012-12-17 Thread Wesley Alan Wright
Hello, World:

I have a bibliographic application written in php that leverages the 
dspace-rest api available here

https://github.com/hedtek/dspace-rest

and our oh-so-out-of-date dSpace 1.6.2 installation.

With the advent of dSpace 3.x, I figure maybe it's time to upgrade to at lease 
1.8.x -- but I don't want to break my php application.

So:

o will the hedtek dspace-rest API work for dSpace 1.X, where X > 6?
o is there a better choice? For 1.x or 3.x ?
o has an 'official' API yet been bundled with dSpace 3.0 ?

Google shows several dspace-rest api projects, but offers no assistance in 
choosing

 
---
| Wesley Alan Wright    |
| Center for Teaching and Learning  __0__ |
| Room 407 Lafayette Building  / \ | \|
| University of Vermont  \77  |
| Burlington, Vermont 05405-0160 USA. \\  http://www.uvm.edu/skivt-l  |
| Voice: 802-656-1254  vv |
| aim:goim?screenname=maddogskideath  http://www.uvm.edu/~waw/|
---






--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] DSpace REST API Showcase

2012-10-09 Thread Michael Guthrie
Also to participate in the open source project that allows you to replace
the default DSpace UIs with a CMS, feel free to sign up here:
https://jspace.atlassian.net/

Michael



On 8 October 2012 16:17, Hayden Young  wrote:

> For anyone interested in integrating DSpace with other applications.
>
> A brief case study of an integration between Joomla and DSpace using the
> DSpace REST API (https://github.com/wijiti/dspace-rest-api):
>
> http://www.wijiti.com/saber
>
> Features include:
> - Full integration of DSpace communities/collections, items and assets
> using the OSS Joomla extension JSpace,
> - Index and search of DSpace items and assets using both the REST API
> and the OSS Joomla extension JSolr,
> - Latest Items / Most Popular Items using JSpace modules and the DSpace
> REST API,
> - Project portals for displaying related assets and items in the archive
> to site users.
>
> A link to the live site is available at the end of the above case study
> page.
>
> Cheers
>
>
> Hayden
>
> --
> Hayden Young
> Managing Director
> Wijiti Pty Ltd
> p. +61 (0) 8 6398 5010
> e. haydenyo...@wijiti.com
> w. www.wijiti.com
> vcard. www.wijiti.com/vcard/haydenyoung.vcf
>
> NOTICE
> This e-mail and any attachments are intended for the addressee(s) only and
> may be confidential. They may contain legally privileged or copyright
> material. You should not read, copy, use or disclose them without
> authorization. If you are not the intended recipient please contact the
> sender as soon as possible by return e-mail and then please delete both
> messages. This notice should not be removed.
>
>
>
> --
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace REST API Showcase

2012-10-08 Thread Hayden Young
For anyone interested in integrating DSpace with other applications.

A brief case study of an integration between Joomla and DSpace using the 
DSpace REST API (https://github.com/wijiti/dspace-rest-api):

http://www.wijiti.com/saber

Features include:
- Full integration of DSpace communities/collections, items and assets 
using the OSS Joomla extension JSpace,
- Index and search of DSpace items and assets using both the REST API 
and the OSS Joomla extension JSolr,
- Latest Items / Most Popular Items using JSpace modules and the DSpace 
REST API,
- Project portals for displaying related assets and items in the archive 
to site users.

A link to the live site is available at the end of the above case study 
page.

Cheers


Hayden

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 8 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace REST API

2012-07-25 Thread Peter Dietz
I've made some progress on the DSpace-Rest Client I swore I was going to
build.

I've chosen Play! Framework to get started, and I've tossed my code thus
far up on GitHub.
https://github.com/peterdietz/dspace-rest-play

The Rest-Client dspace-rest-play is very basic thus far, but I was able to
successfully connect, and test out a few endpoints. Thus far, I've tested
out the Community List, and a Community-Detail page. Its easy. To get the
community list, just ask for that endpoint, then wrap all that data into an
html list. I've made each one a link to its community-detail-page. The
community page has more info like: shortDescription, introductoryText,
handle, copyrightText...

I couldn't get all communities to work from the REST API. I only tested my
top-level-communities, but some of them error out with:

WARN Could not process entity: /communities/940 (404)[null]: Attempted to
access an entity URL path (/communities/940.json) for an entity
(/communities/940) that does not exist

Which is odd, because it actually exists. I'll need to dig in more to the
dspace-rest community controller to see if I can't track down a bug. Its
likely that something could be upset that I don't have the asset-store on
my laptop.

Peter Dietz



On Sun, Jul 22, 2012 at 6:30 PM, Gary Browne wrote:

>  Hi Peter, Hayden and anyone else involved with this development.
>
> ** **
>
> Just wanted to say thanks to you all – it looks very promising and I think
> has great potential.
>
> ** **
>
> Regards,
> Gary
>
> ** **
>
> *From:* Hayden Young [mailto:haydenyo...@wijiti.com]
> *Sent:* Tuesday, 17 July 2012 6:08 PM
>
> *To:* Gary Browne
> *Cc:* dspace-tech Tech
> *Subject:* Re: [Dspace-tech] DSpace REST API
>
>  ** **
>
> Hi Gary
>
> Good to hear you got it working.
>
> Hi Peter
>
> Yes, there should be separate count endpoints for endpoints such as /items
> and /communities (E.g. /items/count and /communities/count). I'm working on
> a CMS-based UI for DSpace but haven't had time to revisit the Github-based
> API; I'm hoping to revisit in the next 4 - 6 weeks when things quieten down
> and will test these endpoints thoroughly. I will also update the
> documentation (it is currently missing docs for sort parameters from the
> various list endpoints).
>
> Cheers
>
>
> Hayden
>
> On 17/07/12 08:51, Gary Browne wrote:
>
> Hi Peter,
>
>  
>
> Somehow I missed that reply – great, that did the trick!
>
>  ****
>
> Thanks a lot,
>
> Gary
>
>  
>
> *From:* Peter Dietz [mailto:pdiet...@gmail.com ]
> *Sent:* Tuesday, 17 July 2012 12:56 AM
> *To:* Gary Browne
> *Cc:* dspace-tech Tech
> *Subject:* Re: [Dspace-tech] DSpace REST API
>
>  
>
> Hi Gary,
>
>  
>
> Regarding fixing your 500 error, see my previous response for how to fix
> it. Either my catalina.log or dspace.log (I forget which) was saying that I
> had my database config settings wrong instead of my
> /dspace/config/dspace.cfg, it was looking for a
> /devel/dspace/config/dspace.cfg.
>
>  
>
> Also, I think you are supposed to run 
> create_integration_test_db.sh<https://github.com/hedtek/dspace-rest/blob/master/create_integration_test_db.sh>
> 
>
>  
>
> ==
>
>  
>
> I did spend a little bit of time trying to build some type of client user
> interface based off of REST. I couldn't decide if there was a "best"
> language/framework for doing this easily, so I just started playing with
> Play! Framework to make some HTTP requests to the API. It was fairly easy
> to get started, and it has pre-included support for parsing JSON.
>
>  
>
> A few "bugs" perhaps... ?
>
>  
>
> The documentation says there is a method to get the count of the number of
> total collections.
> https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_collections_count*
> ***
>
>  
>
> However, accessing that endpoint didn't seem to do anything, except for
> error out that it didn't exist.
>
> http://localhost:8080/rest/collections/count.xml
>
> Same with communities/count.xml
>
>  
>
>  
>
> When trying to dig deeper, and get the count number of items in a
> collection, I also ran into issues. 
>
>  
>
> collections/:id:/items/count.format
>
> just gave me the same data as
>
> collections/:id:/items.format
>
>  
>
> If anyone has any app they've written to help test the REST API then I'd
> be interested in it. (I'm thinking more an app the resembles a D

Re: [Dspace-tech] DSpace REST API

2012-07-22 Thread Gary Browne
Hi Peter, Hayden and anyone else involved with this development.

Just wanted to say thanks to you all - it looks very promising and I think has 
great potential.

Regards,
Gary

From: Hayden Young [mailto:haydenyo...@wijiti.com]
Sent: Tuesday, 17 July 2012 6:08 PM
To: Gary Browne
Cc: dspace-tech Tech
Subject: Re: [Dspace-tech] DSpace REST API

Hi Gary

Good to hear you got it working.

Hi Peter

Yes, there should be separate count endpoints for endpoints such as /items and 
/communities (E.g. /items/count and /communities/count). I'm working on a 
CMS-based UI for DSpace but haven't had time to revisit the Github-based API; 
I'm hoping to revisit in the next 4 - 6 weeks when things quieten down and will 
test these endpoints thoroughly. I will also update the documentation (it is 
currently missing docs for sort parameters from the various list endpoints).

Cheers


Hayden
On 17/07/12 08:51, Gary Browne wrote:
Hi Peter,

Somehow I missed that reply - great, that did the trick!

Thanks a lot,
Gary

From: Peter Dietz [mailto:pdiet...@gmail.com]
Sent: Tuesday, 17 July 2012 12:56 AM
To: Gary Browne
Cc: dspace-tech Tech
Subject: Re: [Dspace-tech] DSpace REST API

Hi Gary,

Regarding fixing your 500 error, see my previous response for how to fix it. 
Either my catalina.log or dspace.log (I forget which) was saying that I had my 
database config settings wrong instead of my /dspace/config/dspace.cfg, it was 
looking for a /devel/dspace/config/dspace.cfg.

Also, I think you are supposed to run 
create_integration_test_db.sh<https://github.com/hedtek/dspace-rest/blob/master/create_integration_test_db.sh>

==

I did spend a little bit of time trying to build some type of client user 
interface based off of REST. I couldn't decide if there was a "best" 
language/framework for doing this easily, so I just started playing with Play! 
Framework to make some HTTP requests to the API. It was fairly easy to get 
started, and it has pre-included support for parsing JSON.

A few "bugs" perhaps... ?

The documentation says there is a method to get the count of the number of 
total collections. 
https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_collections_count

However, accessing that endpoint didn't seem to do anything, except for error 
out that it didn't exist.
http://localhost:8080/rest/collections/count.xml
Same with communities/count.xml


When trying to dig deeper, and get the count number of items in a collection, I 
also ran into issues.

collections/:id:/items/count.format
just gave me the same data as
collections/:id:/items.format

If anyone has any app they've written to help test the REST API then I'd be 
interested in it. (I'm thinking more an app the resembles a DSpace user 
interface, then a Unit test). I started to look at the GSOC 2011 Rest Client, 
so I suppose that could be something to look at.

Peter Dietz



On Mon, Jul 16, 2012 at 12:58 AM, Gary Browne 
mailto:gary.bro...@sydney.edu.au>> wrote:
Hi Hayden,

Yes, like helix84 said, I can get a .war output that way which unpacks ok under 
Tomcat. But I'm new to REST and need some pointers on how to test it.

What I started with was issuing URIs to a browser (just manually entering them):

http://$dev-server/rest/

This results in a "describe" page being displayed. Promising, I thought. Let's 
try one of the entities. When I clicked on communities or communities (xml), 
once again I get describe pages displaying in the browser. Great.

Now if I try something like:

http://$dev-server/rest/communities

I get a blank page. The catalina log is attached. Would you have any idea 
what's going on here?

I even tried a simple curl script in PHP and didn't get any errors, but also 
produced a blank page output.

Thanks a lot,
Gary



> -Original Message-
> From: Hayden Young 
> [mailto:haydenyo...@wijiti.com<mailto:haydenyo...@wijiti.com>]
> Sent: Wednesday, 11 July 2012 4:17 PM
> To: 
> dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
> Subject: Re: [Dspace-tech] DSpace REST API
>
> Hi Gary
>
> Please try changing the following line in your pom.xml from:
>
> 1.8.1
>
> to:
>
> 1.8.2
>
> and see if that solves your issue.
>
> Cheers
>
>
> Hayden
>
> On 10/07/12 09:55, Gary Browne wrote:
> > Hi Hayden,
> >
> > I'm keen to try this out, however I am unable to install it - should it run 
> > ok
> on 1.8.2?
> >
> > On building (mvn package), I get the following error:
> >
> > [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in
> > repository central (http://repo1.maven.org/maven2) [INFO]
> > --
> > --
> > [ERROR] BUILD ERROR
> > [INFO]
> > 

Re: [Dspace-tech] DSpace REST API

2012-07-17 Thread Hayden Young

Hi Gary

Good to hear you got it working.

Hi Peter

Yes, there should be separate count endpoints for endpoints such as 
/items and /communities (E.g. /items/count and /communities/count). I'm 
working on a CMS-based UI for DSpace but haven't had time to revisit the 
Github-based API; I'm hoping to revisit in the next 4 - 6 weeks when 
things quieten down and will test these endpoints thoroughly. I will 
also update the documentation (it is currently missing docs for sort 
parameters from the various list endpoints).


Cheers


Hayden

On 17/07/12 08:51, Gary Browne wrote:


Hi Peter,

Somehow I missed that reply -- great, that did the trick!

Thanks a lot,

Gary

*From:*Peter Dietz [mailto:pdiet...@gmail.com]
*Sent:* Tuesday, 17 July 2012 12:56 AM
*To:* Gary Browne
*Cc:* dspace-tech Tech
*Subject:* Re: [Dspace-tech] DSpace REST API

Hi Gary,

Regarding fixing your 500 error, see my previous response for how to 
fix it. Either my catalina.log or dspace.log (I forget which) was 
saying that I had my database config settings wrong instead of my 
/dspace/config/dspace.cfg, it was looking for a 
/devel/dspace/config/dspace.cfg.


Also, I think you are supposed to run create_integration_test_db.sh 
<https://github.com/hedtek/dspace-rest/blob/master/create_integration_test_db.sh>


==

I did spend a little bit of time trying to build some type of client 
user interface based off of REST. I couldn't decide if there was a 
"best" language/framework for doing this easily, so I just started 
playing with Play! Framework to make some HTTP requests to the API. It 
was fairly easy to get started, and it has pre-included support for 
parsing JSON.


A few "bugs" perhaps... ?

The documentation says there is a method to get the count of the 
number of total collections. 
https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_collections_count


However, accessing that endpoint didn't seem to do anything, except 
for error out that it didn't exist.


http://localhost:8080/rest/collections/count.xml

Same with communities/count.xml

When trying to dig deeper, and get the count number of items in a 
collection, I also ran into issues.


collections/:id:/items/count.format

just gave me the same data as

collections/:id:/items.format

If anyone has any app they've written to help test the REST API then 
I'd be interested in it. (I'm thinking more an app the resembles a 
DSpace user interface, then a Unit test). I started to look at the 
GSOC 2011 Rest Client, so I suppose that could be something to look at.


Peter Dietz


On Mon, Jul 16, 2012 at 12:58 AM, Gary Browne 
mailto:gary.bro...@sydney.edu.au>> wrote:


Hi Hayden,

Yes, like helix84 said, I can get a .war output that way which unpacks 
ok under Tomcat. But I'm new to REST and need some pointers on how to 
test it.


What I started with was issuing URIs to a browser (just manually 
entering them):


http://$dev-server/rest/

This results in a "describe" page being displayed. Promising, I 
thought. Let's try one of the entities. When I clicked on communities 
or communities (xml), once again I get describe pages displaying in 
the browser. Great.


Now if I try something like:

http://$dev-server/rest/communities

I get a blank page. The catalina log is attached. Would you have any 
idea what's going on here?


I even tried a simple curl script in PHP and didn't get any errors, 
but also produced a blank page output.



Thanks a lot,
Gary



> -Original Message-
> From: Hayden Young [mailto:haydenyo...@wijiti.com 
<mailto:haydenyo...@wijiti.com>]


> Sent: Wednesday, 11 July 2012 4:17 PM
> To: dspace-tech@lists.sourceforge.net 
<mailto:dspace-tech@lists.sourceforge.net>

> Subject: Re: [Dspace-tech] DSpace REST API
>

> Hi Gary
>
> Please try changing the following line in your pom.xml from:
>
> 1.8.1
>
> to:
>
> 1.8.2
>
> and see if that solves your issue.
>
> Cheers
>
>
> Hayden
>
> On 10/07/12 09:55, Gary Browne wrote:
> > Hi Hayden,
> >
> > I'm keen to try this out, however I am unable to install it - 
should it run ok

> on 1.8.2?
> >
> > On building (mvn package), I get the following error:
> >
> > [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in
> > repository central (http://repo1.maven.org/maven2) [INFO]
> > --
> > --
> > [ERROR] BUILD ERROR
> > [INFO]
> > --
> > --
> > [INFO] Failed to resolve artifact.
> >
> > Missing:
> > --
> > 1) org.dspace:dspace-rest:war:1.0
> >
> >Try downloading the file manually from the project website.
> >
> &g

Re: [Dspace-tech] DSpace REST API

2012-07-16 Thread Gary Browne
Hi Peter,

Somehow I missed that reply – great, that did the trick!

Thanks a lot,
Gary

From: Peter Dietz [mailto:pdiet...@gmail.com]
Sent: Tuesday, 17 July 2012 12:56 AM
To: Gary Browne
Cc: dspace-tech Tech
Subject: Re: [Dspace-tech] DSpace REST API

Hi Gary,

Regarding fixing your 500 error, see my previous response for how to fix it. 
Either my catalina.log or dspace.log (I forget which) was saying that I had my 
database config settings wrong instead of my /dspace/config/dspace.cfg, it was 
looking for a /devel/dspace/config/dspace.cfg.

Also, I think you are supposed to run 
create_integration_test_db.sh<https://github.com/hedtek/dspace-rest/blob/master/create_integration_test_db.sh>

==

I did spend a little bit of time trying to build some type of client user 
interface based off of REST. I couldn't decide if there was a "best" 
language/framework for doing this easily, so I just started playing with Play! 
Framework to make some HTTP requests to the API. It was fairly easy to get 
started, and it has pre-included support for parsing JSON.

A few "bugs" perhaps... ?

The documentation says there is a method to get the count of the number of 
total collections. 
https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_collections_count

However, accessing that endpoint didn't seem to do anything, except for error 
out that it didn't exist.
http://localhost:8080/rest/collections/count.xml
Same with communities/count.xml


When trying to dig deeper, and get the count number of items in a collection, I 
also ran into issues.

collections/:id:/items/count.format
just gave me the same data as
collections/:id:/items.format

If anyone has any app they've written to help test the REST API then I'd be 
interested in it. (I'm thinking more an app the resembles a DSpace user 
interface, then a Unit test). I started to look at the GSOC 2011 Rest Client, 
so I suppose that could be something to look at.

Peter Dietz


On Mon, Jul 16, 2012 at 12:58 AM, Gary Browne 
mailto:gary.bro...@sydney.edu.au>> wrote:
Hi Hayden,

Yes, like helix84 said, I can get a .war output that way which unpacks ok under 
Tomcat. But I'm new to REST and need some pointers on how to test it.

What I started with was issuing URIs to a browser (just manually entering them):

http://$dev-server/rest/

This results in a "describe" page being displayed. Promising, I thought. Let's 
try one of the entities. When I clicked on communities or communities (xml), 
once again I get describe pages displaying in the browser. Great.

Now if I try something like:

http://$dev-server/rest/communities

I get a blank page. The catalina log is attached. Would you have any idea 
what's going on here?

I even tried a simple curl script in PHP and didn't get any errors, but also 
produced a blank page output.

Thanks a lot,
Gary



> -Original Message-
> From: Hayden Young 
> [mailto:haydenyo...@wijiti.com<mailto:haydenyo...@wijiti.com>]
> Sent: Wednesday, 11 July 2012 4:17 PM
> To: 
> dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
> Subject: Re: [Dspace-tech] DSpace REST API
>
> Hi Gary
>
> Please try changing the following line in your pom.xml from:
>
> 1.8.1
>
> to:
>
> 1.8.2
>
> and see if that solves your issue.
>
> Cheers
>
>
> Hayden
>
> On 10/07/12 09:55, Gary Browne wrote:
> > Hi Hayden,
> >
> > I'm keen to try this out, however I am unable to install it - should it run 
> > ok
> on 1.8.2?
> >
> > On building (mvn package), I get the following error:
> >
> > [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in
> > repository central (http://repo1.maven.org/maven2) [INFO]
> > --
> > --
> > [ERROR] BUILD ERROR
> > [INFO]
> > --
> > --
> > [INFO] Failed to resolve artifact.
> >
> > Missing:
> > --
> > 1) org.dspace:dspace-rest:war:1.0
> >
> >Try downloading the file manually from the project website.
> >
> >Then, install it using the command:
> >mvn install:install-file -DgroupId=org.dspace
> > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > -Dfile=/path/to/file
> >
> >Alternatively, if you host your own repository you can deploy the file
> there:
> >mvn deploy:deploy-file -DgroupId=org.dspace
> > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> >
> >Path to dependency:
> >  1) org.dspace.modules:rest:war:1.8.1
> >

Re: [Dspace-tech] DSpace REST API

2012-07-16 Thread Peter Dietz
Hi Gary,

Regarding fixing your 500 error, see my previous response for how to fix
it. Either my catalina.log or dspace.log (I forget which) was saying that I
had my database config settings wrong instead of my
/dspace/config/dspace.cfg, it was looking for a /devel/dspace/config/
dspace.cfg.

Also, I think you are supposed to run
create_integration_test_db.sh<https://github.com/hedtek/dspace-rest/blob/master/create_integration_test_db.sh>

==

I did spend a little bit of time trying to build some type of client user
interface based off of REST. I couldn't decide if there was a "best"
language/framework for doing this easily, so I just started playing with
Play! Framework to make some HTTP requests to the API. It was fairly easy
to get started, and it has pre-included support for parsing JSON.

A few "bugs" perhaps... ?

The documentation says there is a method to get the count of the number of
total collections.
https://jspace.atlassian.net/wiki/display/DSPACEAPI/GET_collections_count

However, accessing that endpoint didn't seem to do anything, except for
error out that it didn't exist.
http://localhost:8080/rest/collections/count.xml
Same with communities/count.xml


When trying to dig deeper, and get the count number of items in a
collection, I also ran into issues.

collections/:id:/items/count.format
just gave me the same data as
collections/:id:/items.format

If anyone has any app they've written to help test the REST API then I'd be
interested in it. (I'm thinking more an app the resembles a DSpace user
interface, then a Unit test). I started to look at the GSOC 2011 Rest
Client, so I suppose that could be something to look at.

Peter Dietz



On Mon, Jul 16, 2012 at 12:58 AM, Gary Browne wrote:

> Hi Hayden,
>
> Yes, like helix84 said, I can get a .war output that way which unpacks ok
> under Tomcat. But I'm new to REST and need some pointers on how to test it.
>
> What I started with was issuing URIs to a browser (just manually entering
> them):
>
> http://$dev-server/rest/
>
> This results in a "describe" page being displayed. Promising, I thought.
> Let's try one of the entities. When I clicked on communities or communities
> (xml), once again I get describe pages displaying in the browser. Great.
>
> Now if I try something like:
>
> http://$dev-server/rest/communities
>
> I get a blank page. The catalina log is attached. Would you have any idea
> what's going on here?
>
> I even tried a simple curl script in PHP and didn't get any errors, but
> also produced a blank page output.
>
> Thanks a lot,
> Gary
>
>
>
> > -Original Message-----
> > From: Hayden Young [mailto:haydenyo...@wijiti.com]
> > Sent: Wednesday, 11 July 2012 4:17 PM
> > To: dspace-tech@lists.sourceforge.net
> > Subject: Re: [Dspace-tech] DSpace REST API
> >
> > Hi Gary
> >
> > Please try changing the following line in your pom.xml from:
> >
> > 1.8.1
> >
> > to:
> >
> > 1.8.2
> >
> > and see if that solves your issue.
> >
> > Cheers
> >
> >
> > Hayden
> >
> > On 10/07/12 09:55, Gary Browne wrote:
> > > Hi Hayden,
> > >
> > > I'm keen to try this out, however I am unable to install it - should
> it run ok
> > on 1.8.2?
> > >
> > > On building (mvn package), I get the following error:
> > >
> > > [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in
> > > repository central (http://repo1.maven.org/maven2) [INFO]
> > > --
> > > --
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > --
> > > --
> > > [INFO] Failed to resolve artifact.
> > >
> > > Missing:
> > > --
> > > 1) org.dspace:dspace-rest:war:1.0
> > >
> > >Try downloading the file manually from the project website.
> > >
> > >Then, install it using the command:
> > >mvn install:install-file -DgroupId=org.dspace
> > > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > > -Dfile=/path/to/file
> > >
> > >Alternatively, if you host your own repository you can deploy the
> file
> > there:
> > >mvn deploy:deploy-file -DgroupId=org.dspace
> > > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> > >
> > >Path to dependency:
> > >  1) org.dspace.modules:rest:war:1.8.1
>

Re: [Dspace-tech] DSpace REST API

2012-07-15 Thread Gary Browne
Hi Hayden,

Yes, like helix84 said, I can get a .war output that way which unpacks ok under 
Tomcat. But I'm new to REST and need some pointers on how to test it.

What I started with was issuing URIs to a browser (just manually entering them):

http://$dev-server/rest/

This results in a "describe" page being displayed. Promising, I thought. Let's 
try one of the entities. When I clicked on communities or communities (xml), 
once again I get describe pages displaying in the browser. Great.

Now if I try something like:

http://$dev-server/rest/communities

I get a blank page. The catalina log is attached. Would you have any idea 
what's going on here?

I even tried a simple curl script in PHP and didn't get any errors, but also 
produced a blank page output.

Thanks a lot,
Gary



> -Original Message-
> From: Hayden Young [mailto:haydenyo...@wijiti.com]
> Sent: Wednesday, 11 July 2012 4:17 PM
> To: dspace-tech@lists.sourceforge.net
> Subject: Re: [Dspace-tech] DSpace REST API
> 
> Hi Gary
> 
> Please try changing the following line in your pom.xml from:
> 
> 1.8.1
> 
> to:
> 
> 1.8.2
> 
> and see if that solves your issue.
> 
> Cheers
> 
> 
> Hayden
> 
> On 10/07/12 09:55, Gary Browne wrote:
> > Hi Hayden,
> >
> > I'm keen to try this out, however I am unable to install it - should it run 
> > ok
> on 1.8.2?
> >
> > On building (mvn package), I get the following error:
> >
> > [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in
> > repository central (http://repo1.maven.org/maven2) [INFO]
> > --
> > --
> > [ERROR] BUILD ERROR
> > [INFO]
> > --
> > --
> > [INFO] Failed to resolve artifact.
> >
> > Missing:
> > --
> > 1) org.dspace:dspace-rest:war:1.0
> >
> >Try downloading the file manually from the project website.
> >
> >Then, install it using the command:
> >mvn install:install-file -DgroupId=org.dspace
> > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > -Dfile=/path/to/file
> >
> >Alternatively, if you host your own repository you can deploy the file
> there:
> >mvn deploy:deploy-file -DgroupId=org.dspace
> > -DartifactId=dspace-rest -Dversion=1.0 -Dpackaging=war
> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> >
> >Path to dependency:
> >  1) org.dspace.modules:rest:war:1.8.1
> >  2) org.dspace:dspace-rest:war:1.0
> >
> > --
> > 1 required artifact is missing.
> >
> > for artifact:
> >org.dspace.modules:rest:war:1.8.1
> >
> > from the specified remote repositories:
> >central (http://repo1.maven.org/maven2),
> >sonatype-nexus-snapshots
> > (https://oss.sonatype.org/content/repositories/snapshots)
> >
> > I'm not clear on what I should do next, are you able to help please?
> >
> > Thanks a lot,
> > Gary
> >
> >> -Original Message-
> >> From: Hayden Young [mailto:haydenyo...@wijiti.com]
> >> Sent: Tuesday, 10 July 2012 5:32 AM
> >> To: dspace-tech@lists.sourceforge.net; DSpace Developer List
> >> Subject: [Dspace-tech] DSpace REST API
> >>
> >> After several months of development, Wijiti is pleased to contribute
> >> this reworked version of the REST API for DSpace 1.8.x.
> >>
> >> Details and documentation are available at
> >> https://jspace.atlassian.net/ and all code is freely available via
> >> Github, the link of which is in the documentation.
> >>
> >> Enjoy.
> >>
> >> --
> >> Hayden Young
> >> Managing Director
> >> Wijiti Pty Ltd
> >> p. +61 (0) 8 6398 5010
> >> e. haydenyo...@wijiti.com
> >> w. www.wijiti.com
> >> vcard. www.wijiti.com/vcard/haydenyoung.vcf
> >>
> >> NOTICE
> >> This e-mail and any attachments are intended for the addressee(s)
> >> only and may be confidential. They may contain legally privileged or
> >> copyright material. You should not read, copy, use or disclose them
> >> without authorization. If you are not the intended recipient please
> >> contact the sender as soon as possible by return e-mail and then
> >> please delete both messages. This notice should not be removed.
> >>
> >>
> >> -
> >>

Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread helix84
On Wed, Jul 11, 2012 at 8:20 AM, Hayden Young  wrote:
> Hi
>
> Okay we'll research these issues further and come up with some solutions.
>
> So the compiled version of the REST API does work despite the mismatches and
> some build issues?

Yes, it does. I didn't find any problems so far (only the conceptual
problem with listing users I mentioned).

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread Hayden Young
Hi Gary

Please try changing the following line in your pom.xml from:

1.8.1

to:

1.8.2

and see if that solves your issue.

Cheers


Hayden

On 10/07/12 09:55, Gary Browne wrote:
> Hi Hayden,
>
> I'm keen to try this out, however I am unable to install it - should it run 
> ok on 1.8.2?
>
> On building (mvn package), I get the following error:
>
> [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in repository 
> central (http://repo1.maven.org/maven2)
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) org.dspace:dspace-rest:war:1.0
>
>Try downloading the file manually from the project website.
>
>Then, install it using the command:
>mvn install:install-file -DgroupId=org.dspace -DartifactId=dspace-rest 
> -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file
>
>Alternatively, if you host your own repository you can deploy the file 
> there:
>mvn deploy:deploy-file -DgroupId=org.dspace -DartifactId=dspace-rest 
> -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] 
> -DrepositoryId=[id]
>
>Path to dependency:
>  1) org.dspace.modules:rest:war:1.8.1
>  2) org.dspace:dspace-rest:war:1.0
>
> --
> 1 required artifact is missing.
>
> for artifact:
>org.dspace.modules:rest:war:1.8.1
>
> from the specified remote repositories:
>central (http://repo1.maven.org/maven2),
>sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots)
>
> I'm not clear on what I should do next, are you able to help please?
>
> Thanks a lot,
> Gary
>
>> -Original Message-
>> From: Hayden Young [mailto:haydenyo...@wijiti.com]
>> Sent: Tuesday, 10 July 2012 5:32 AM
>> To: dspace-tech@lists.sourceforge.net; DSpace Developer List
>> Subject: [Dspace-tech] DSpace REST API
>>
>> After several months of development, Wijiti is pleased to contribute this
>> reworked version of the REST API for DSpace 1.8.x.
>>
>> Details and documentation are available at https://jspace.atlassian.net/ and
>> all code is freely available via Github, the link of which is in the
>> documentation.
>>
>> Enjoy.
>>
>> --
>> Hayden Young
>> Managing Director
>> Wijiti Pty Ltd
>> p. +61 (0) 8 6398 5010
>> e. haydenyo...@wijiti.com
>> w. www.wijiti.com
>> vcard. www.wijiti.com/vcard/haydenyoung.vcf
>>
>> NOTICE
>> This e-mail and any attachments are intended for the addressee(s) only and
>> may be confidential. They may contain legally privileged or copyright
>> material. You should not read, copy, use or disclose them without
>> authorization. If you are not the intended recipient please contact the
>> sender as soon as possible by return e-mail and then please delete both
>> messages. This notice should not be removed.
>>
>>
>> --
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and threat
>> landscape has changed and how IT managers can respond. Discussions will
>> include endpoint security, mobile security and the latest in malware threats.
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 8 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not 

Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread Hayden Young
Good news. We'll update the documentation.

Thanks


Hayden

On 11/07/12 00:09, Ben Sheaff wrote:
> I got it to work but in pom.xml it looks like you have assumed that the 
> folder dspace-rest has been copied into the source folder of dspace.
>
> You have hard coded:
>
>  
>  dspace-parent
>  org.dspace
>  1.8.1
>  ..
>  
>
> So for me I fixed the relative path and changed the version to 1.7.1, I then 
> got build successful.
>
> Thanks,
> Ben
>
> -Original Message-
> From: helix84 [mailto:heli...@centrum.sk]
> Sent: July-10-12 4:22 AM
> To: Hayden Young
> Cc: dspace-tech@lists.sourceforge.net; DSpace Developer List
> Subject: Re: [Dspace-tech] DSpace REST API
>
> Hi Hayden,
> I was trying to build it both as a webapp and as a module just to test it. 
> Here are my notes and observations so far:
>
> 1) Here's what I got after I ran mvn package for the first time building as a 
> webapp:
>
> Downloading: 
> http://source.sakaiproject.org/maven2//org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
> [INFO] Unable to find resource 'org.dspace:dspace-api:pom:1.8.1' in 
> repository sakaiproject repository
> (http://source.sakaiproject.org/maven2/)
> Downloading: 
> http://repo1.maven.org/maven2/org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
> 8K downloaded  (dspace-api-1.8.1.pom)
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
> 636b downloaded  (entitybus-api-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote = 
> '7d1242d3a967c5291f1af8ea8501248a61ccda6c' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
> 636b downloaded  (entitybus-api-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote = 
> '7d1242d3a967c5291f1af8ea8501248a61ccda6c' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
> 2K downloaded  (entitybus-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
> '88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote = 
> '5455299acc1383eac8c19391da3ea7624470dc24' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
> 2K downloaded  (entitybus-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
> '88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote = 
> '5455299acc1383eac8c19391da3ea7624470dc24' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
> 955b downloaded  (entitybus-impl-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'c9b46df256025d1030549d7038d559733d4041d4'; remote = 
> '76f6e7c61a137b830fdb2334bd4030df237434ef' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
> 955b downloaded  (entitybus-impl-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
> Checksum failed on download: local = 
> 'c9b46df256025d1030549d7038d559733d4041d4'; remote = 
> '76f6e7c61a137b830fdb2334bd4030df237434ef' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-utils/1.0.8/entitybus-utils-1.0.8.pom
> 746b downloaded  (entitybus-utils-1.0.8.pom)
>
> (It built correctly, I'm just pointing out the checksum mismatches)
>
> 2) When I tried to build it as a module (with DSpace git master branch), I 
> got this:
>
> [ERROR] FATAL ERROR
> [INFO] 
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.dspace.modules:rest
> POM Location: /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
> Validation Messages:
>
>  [0]  'dependencies.dependency.version' is missing for 
> org.dspace:dspace-rest:war
>
>
> Reason: Failed to validate POM for project org.dspace.modules:rest at 
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>
>
> [INFO] 
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Failed to validate POM

Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread Hayden Young
Hi

Okay we'll research these issues further and come up with some solutions.

So the compiled version of the REST API does work despite the mismatches 
and some build issues?

Cheers


Hayden

On 10/07/12 19:21, helix84 wrote:
> Hi Hayden,
> I was trying to build it both as a webapp and as a module just to test
> it. Here are my notes and observations so far:
>
> 1) Here's what I got after I ran mvn package for the first time
> building as a webapp:
>
> Downloading: 
> http://source.sakaiproject.org/maven2//org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
> [INFO] Unable to find resource 'org.dspace:dspace-api:pom:1.8.1' in
> repository sakaiproject repository
> (http://source.sakaiproject.org/maven2/)
> Downloading: 
> http://repo1.maven.org/maven2/org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
> 8K downloaded  (dspace-api-1.8.1.pom)
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
> 636b downloaded  (entitybus-api-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote =
> '7d1242d3a967c5291f1af8ea8501248a61ccda6c' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
> 636b downloaded  (entitybus-api-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote =
> '7d1242d3a967c5291f1af8ea8501248a61ccda6c' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
> 2K downloaded  (entitybus-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote =
> '5455299acc1383eac8c19391da3ea7624470dc24' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
> 2K downloaded  (entitybus-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote =
> '5455299acc1383eac8c19391da3ea7624470dc24' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
> 955b downloaded  (entitybus-impl-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'c9b46df256025d1030549d7038d559733d4041d4'; remote =
> '76f6e7c61a137b830fdb2334bd4030df237434ef' - RETRYING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
> 955b downloaded  (entitybus-impl-1.0.8.pom)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'c9b46df256025d1030549d7038d559733d4041d4'; remote =
> '76f6e7c61a137b830fdb2334bd4030df237434ef' - IGNORING
> Downloading: 
> http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-utils/1.0.8/entitybus-utils-1.0.8.pom
> 746b downloaded  (entitybus-utils-1.0.8.pom)
>
> (It built correctly, I'm just pointing out the checksum mismatches)
>
> 2) When I tried to build it as a module (with DSpace git master
> branch), I got this:
>
> [ERROR] FATAL ERROR
> [INFO] 
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.dspace.modules:rest
> POM Location: /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
> Validation Messages:
>
>  [0]  'dependencies.dependency.version' is missing for
> org.dspace:dspace-rest:war
>
>
> Reason: Failed to validate POM for project org.dspace.modules:rest at
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>
>
> [INFO] 
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Failed to validate
> POM for project org.dspace.modules:rest at
> /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
>   at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
>   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>   at 
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:616)
>   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.jav

Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread Ben Sheaff
I got it to work but in pom.xml it looks like you have assumed that the folder 
dspace-rest has been copied into the source folder of dspace.

You have hard coded:


dspace-parent
org.dspace
1.8.1
..


So for me I fixed the relative path and changed the version to 1.7.1, I then 
got build successful.

Thanks,
Ben

-Original Message-
From: helix84 [mailto:heli...@centrum.sk] 
Sent: July-10-12 4:22 AM
To: Hayden Young
Cc: dspace-tech@lists.sourceforge.net; DSpace Developer List
Subject: Re: [Dspace-tech] DSpace REST API

Hi Hayden,
I was trying to build it both as a webapp and as a module just to test it. Here 
are my notes and observations so far:

1) Here's what I got after I ran mvn package for the first time building as a 
webapp:

Downloading: 
http://source.sakaiproject.org/maven2//org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
[INFO] Unable to find resource 'org.dspace:dspace-api:pom:1.8.1' in repository 
sakaiproject repository
(http://source.sakaiproject.org/maven2/)
Downloading: 
http://repo1.maven.org/maven2/org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
8K downloaded  (dspace-api-1.8.1.pom)
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
636b downloaded  (entitybus-api-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
Checksum failed on download: local = 
'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote = 
'7d1242d3a967c5291f1af8ea8501248a61ccda6c' - RETRYING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
636b downloaded  (entitybus-api-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
Checksum failed on download: local = 
'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote = 
'7d1242d3a967c5291f1af8ea8501248a61ccda6c' - IGNORING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
2K downloaded  (entitybus-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote = 
'5455299acc1383eac8c19391da3ea7624470dc24' - RETRYING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
2K downloaded  (entitybus-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote = 
'5455299acc1383eac8c19391da3ea7624470dc24' - IGNORING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
955b downloaded  (entitybus-impl-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
Checksum failed on download: local = 
'c9b46df256025d1030549d7038d559733d4041d4'; remote = 
'76f6e7c61a137b830fdb2334bd4030df237434ef' - RETRYING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
955b downloaded  (entitybus-impl-1.0.8.pom) [WARNING] *** CHECKSUM FAILED - 
Checksum failed on download: local = 
'c9b46df256025d1030549d7038d559733d4041d4'; remote = 
'76f6e7c61a137b830fdb2334bd4030df237434ef' - IGNORING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-utils/1.0.8/entitybus-utils-1.0.8.pom
746b downloaded  (entitybus-utils-1.0.8.pom)

(It built correctly, I'm just pointing out the checksum mismatches)

2) When I tried to build it as a module (with DSpace git master branch), I got 
this:

[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.dspace.modules:rest
POM Location: /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
Validation Messages:

[0]  'dependencies.dependency.version' is missing for 
org.dspace:dspace-rest:war


Reason: Failed to validate POM for project org.dspace.modules:rest at 
/home/dspace/svn/DSpace/dspace/modules/rest/pom.xml


[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for 
project org.dspace.modules:rest at 
/home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
s

Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread helix84
Hi Hayden,
I was trying to build it both as a webapp and as a module just to test
it. Here are my notes and observations so far:

1) Here's what I got after I ran mvn package for the first time
building as a webapp:

Downloading: 
http://source.sakaiproject.org/maven2//org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
[INFO] Unable to find resource 'org.dspace:dspace-api:pom:1.8.1' in
repository sakaiproject repository
(http://source.sakaiproject.org/maven2/)
Downloading: 
http://repo1.maven.org/maven2/org/dspace/dspace-api/1.8.1/dspace-api-1.8.1.pom
8K downloaded  (dspace-api-1.8.1.pom)
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
636b downloaded  (entitybus-api-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote =
'7d1242d3a967c5291f1af8ea8501248a61ccda6c' - RETRYING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-api/1.0.8/entitybus-api-1.0.8.pom
636b downloaded  (entitybus-api-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'b66699e72d4c9e4203ec8b9ae7a0a7877a64680a'; remote =
'7d1242d3a967c5291f1af8ea8501248a61ccda6c' - IGNORING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
2K downloaded  (entitybus-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote =
'5455299acc1383eac8c19391da3ea7624470dc24' - RETRYING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/1.0.8/entitybus-1.0.8.pom
2K downloaded  (entitybus-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'88beff8c430ca7e9de493ba8da1435c2f0816fb6'; remote =
'5455299acc1383eac8c19391da3ea7624470dc24' - IGNORING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
955b downloaded  (entitybus-impl-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'c9b46df256025d1030549d7038d559733d4041d4'; remote =
'76f6e7c61a137b830fdb2334bd4030df237434ef' - RETRYING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-impl/1.0.8/entitybus-impl-1.0.8.pom
955b downloaded  (entitybus-impl-1.0.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'c9b46df256025d1030549d7038d559733d4041d4'; remote =
'76f6e7c61a137b830fdb2334bd4030df237434ef' - IGNORING
Downloading: 
http://source.sakaiproject.org/maven2//org/sakaiproject/entitybus/entitybus-utils/1.0.8/entitybus-utils-1.0.8.pom
746b downloaded  (entitybus-utils-1.0.8.pom)

(It built correctly, I'm just pointing out the checksum mismatches)

2) When I tried to build it as a module (with DSpace git master
branch), I got this:

[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.dspace.modules:rest
POM Location: /home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
Validation Messages:

[0]  'dependencies.dependency.version' is missing for
org.dspace:dspace-rest:war


Reason: Failed to validate POM for project org.dspace.modules:rest at
/home/dspace/svn/DSpace/dspace/modules/rest/pom.xml


[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Failed to validate
POM for project org.dspace.modules:rest at
/home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException:
Failed to validate POM for project org.dspace.modules:rest at
/home/dspace/svn/DSpace/dspace/modules/rest/pom.xml
at 
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077)
at 
org

Re: [Dspace-tech] DSpace REST API

2012-07-10 Thread Mark Diggory
Hayden,

Its excellent that your bringing this forward now. Can you itemize the
enhancements you've made over the original REST interface? Or
alternatively, it would be part of the contribution process to
complete the following:

For contribution, it would be ideal if you were to

1.) fork the original repository

https://github.com/DSpace/dspace-rest

2.) layer your changes on top of it in a working branch

and

3.) Provide a Pull Request back to the dspace rest repository master branch

Then we can discuss the new features in context of codebase directly.
Switch over to the dev list or JIRA issues if you want to advisement
during this process.

Best Regards,
Mark

On Tue, Jul 10, 2012 at 2:55 AM, Gary Browne  wrote:
>
> Hi Hayden,
>
> I'm keen to try this out, however I am unable to install it - should it run 
> ok on 1.8.2?
>
> On building (mvn package), I get the following error:
>
> [INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in repository 
> central (http://repo1.maven.org/maven2)
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) org.dspace:dspace-rest:war:1.0
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>   mvn install:install-file -DgroupId=org.dspace -DartifactId=dspace-rest 
> -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file
>
>   Alternatively, if you host your own repository you can deploy the file 
> there:
>   mvn deploy:deploy-file -DgroupId=org.dspace -DartifactId=dspace-rest 
> -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] 
> -DrepositoryId=[id]
>
>   Path to dependency:
> 1) org.dspace.modules:rest:war:1.8.1
> 2) org.dspace:dspace-rest:war:1.0
>
> --
> 1 required artifact is missing.
>
> for artifact:
>   org.dspace.modules:rest:war:1.8.1
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots)
>
> I'm not clear on what I should do next, are you able to help please?
>
> Thanks a lot,
> Gary
>
> > -Original Message-----
> > From: Hayden Young [mailto:haydenyo...@wijiti.com]
> > Sent: Tuesday, 10 July 2012 5:32 AM
> > To: dspace-tech@lists.sourceforge.net; DSpace Developer List
> > Subject: [Dspace-tech] DSpace REST API
> >
> > After several months of development, Wijiti is pleased to contribute this
> > reworked version of the REST API for DSpace 1.8.x.
> >
> > Details and documentation are available at https://jspace.atlassian.net/ and
> > all code is freely available via Github, the link of which is in the
> > documentation.
> >
> > Enjoy.
> >
> > --
> > Hayden Young
> > Managing Director
> > Wijiti Pty Ltd
> > p. +61 (0) 8 6398 5010
> > e. haydenyo...@wijiti.com
> > w. www.wijiti.com
> > vcard. www.wijiti.com/vcard/haydenyoung.vcf
> >
> > NOTICE
> > This e-mail and any attachments are intended for the addressee(s) only and
> > may be confidential. They may contain legally privileged or copyright
> > material. You should not read, copy, use or disclose them without
> > authorization. If you are not the intended recipient please contact the
> > sender as soon as possible by return e-mail and then please delete both
> > messages. This notice should not be removed.
> >
> >
> > --
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and threat
> > landscape has changed and how IT managers can respond. Discussions will
> > include endpoint security, mobile security and the latest in malware 
> > threats.
> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > ___
> > DSpace-tech mailing list
> > DSpace-tech@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/501222

Re: [Dspace-tech] DSpace REST API

2012-07-09 Thread Gary Browne
Hi Hayden,

I'm keen to try this out, however I am unable to install it - should it run ok 
on 1.8.2?

On building (mvn package), I get the following error:

[INFO] Unable to find resource 'org.dspace:dspace-rest:war:1.0' in repository 
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

Missing:
--
1) org.dspace:dspace-rest:war:1.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.dspace -DartifactId=dspace-rest 
-Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
  mvn deploy:deploy-file -DgroupId=org.dspace -DartifactId=dspace-rest 
-Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] 
-DrepositoryId=[id]

  Path to dependency:
1) org.dspace.modules:rest:war:1.8.1
2) org.dspace:dspace-rest:war:1.0

--
1 required artifact is missing.

for artifact:
  org.dspace.modules:rest:war:1.8.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  sonatype-nexus-snapshots 
(https://oss.sonatype.org/content/repositories/snapshots)

I'm not clear on what I should do next, are you able to help please?

Thanks a lot,
Gary

> -Original Message-
> From: Hayden Young [mailto:haydenyo...@wijiti.com]
> Sent: Tuesday, 10 July 2012 5:32 AM
> To: dspace-tech@lists.sourceforge.net; DSpace Developer List
> Subject: [Dspace-tech] DSpace REST API
> 
> After several months of development, Wijiti is pleased to contribute this
> reworked version of the REST API for DSpace 1.8.x.
> 
> Details and documentation are available at https://jspace.atlassian.net/ and
> all code is freely available via Github, the link of which is in the
> documentation.
> 
> Enjoy.
> 
> --
> Hayden Young
> Managing Director
> Wijiti Pty Ltd
> p. +61 (0) 8 6398 5010
> e. haydenyo...@wijiti.com
> w. www.wijiti.com
> vcard. www.wijiti.com/vcard/haydenyoung.vcf
> 
> NOTICE
> This e-mail and any attachments are intended for the addressee(s) only and
> may be confidential. They may contain legally privileged or copyright
> material. You should not read, copy, use or disclose them without
> authorization. If you are not the intended recipient please contact the
> sender as soon as possible by return e-mail and then please delete both
> messages. This notice should not be removed.
> 
> 
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace REST API

2012-07-09 Thread Hayden Young
After several months of development, Wijiti is pleased to contribute 
this reworked version of the REST API for DSpace 1.8.x.

Details and documentation are available at https://jspace.atlassian.net/ 
and all code is freely available via Github, the link of which is in the 
documentation.

Enjoy.

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 8 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace REST API: SQL error (500)

2012-02-23 Thread maurice . bouchard
I solved this problem.

The REST API is using class oracle.jdbc.OracleDriver which is found in  
the ojdbc14.jar  This jar was not in my classpath.  I copied it to  
$JAVA_HOME/jre/lib/ext and after that, the API works.  Everything is  
obvious in retrospect but I am still confused as to why my  
dspace-1.8.0 install was working perfectly well with jspui and xmlui,  
both happily populating my oracle tables. Clearly, these apps are  
using a different db connection mechanism (i.e., db.url found in  
dspace.cfg) than the REST API.  Is there a technical reason why the  
API couldn't use the same mechanism?

Regards,
Maury Bouchard
Simmons College, GSLIS

Quoting maurice.bouch...@simmons.edu:

> Thanks for the response, but I'm not sure what I'm looking in that
> java file. In the startProviders method, I found the following code:
> // for dev testing only COMMENT IN WORKING ENVIRONMENT
>  if (config.contains("dspace.dir")) {
>  config = "/devel/dspace/config/dspace.cfg";
>  }
>
> which was *not* commented so I commented that code and rebuilt.
> Sadly, there was no change in the behavior.
>
> The method builds the entityProvider list.  Is there supposed to be a
> database initialization there?  That seems unlikely.  If the web.xml
> file under the dspace-rest/webapp/WEB-INF directory points at my
> dspace.cfg, why wouldn't it connect to the database using the jdbc
> connect in db.url?  I noticed the pom.xml for the dspace-rest code has
> ojdbc14 under Oracle db support.  Is that correct?
>
> Thanks,
> Maury Bouchard
> Simmons GSLIS
>
>
> Quoting Bojan Suzic :
>
>> Hi Maury,
>>
>> this error refers to the problem with the database access, connection
>> cannot be established.
>> Can you check the contents of
>> org/dspace/rest/servlet/DS16DirectServlet.java, method startProviders?
>> Maybe it is not  initialized there.
>>
>> Regards
>> Bojan
>>
>>
>> Am 22.02.2012 16:58, schrieb maurice.bouch...@simmons.edu:
>>> Hello,
>>> I am attempting to use the REST API against a test repository. I am
>>> using dspace 1.8.0 and Oracle express.  My repository is working fine
>>> (using the xmlui, I can add, change, and view communities,
>>> collections, and items).  I've checked out and built the REST API
>>> after having changed its web.xml to point at my dspace.cfg. I can get
>>> to all the documentation (e.g.,
>>> http://192.168.56.111:8008/rest/describe and yes, I am using port 8008
>>> since oracle apex is listening on 8080). When I attempt to retrieve
>>> any communities (e.g.,
>>> http://192.168.56.111:8008/rest/communities.xml), collections, or
>>> items, in either json or xml format, I get 500 - Internal server
>>> errors.  The tomcat (v6.0.33) log shows:
>>>
>>> Setting the REST servlet context to: /rest
>>> Setting the manager servlet context to: /rest
>>> stor2/communities.xml
>>> WARN Could not process entity: SQL error (500)[null]: Internal server error
>>>
>>> The dspace log shows:
>>>
>>> org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:585)
>>>   at org.dspace.core.Context.(Context.java:95)
>>> .
>>> .
>>> .
>>> I've set the logging level to FINE and verified that the proper
>>> dspace.cfg is working. I've searched the dspace open issue database
>>> and the web but haven't found anything.
>>>
>>> What am I missing? Any suggestions will be much appreciated.
>>>
>>> Thanks very much,
>>> Maury Bouchard
>>> Simmons College, GSLIS
>>>
>>
>> --
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>
>
>
>
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>




--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace REST API: SQL error (500)

2012-02-22 Thread maurice . bouchard
Thanks for the response, but I'm not sure what I'm looking in that  
java file. In the startProviders method, I found the following code:
// for dev testing only COMMENT IN WORKING ENVIRONMENT
 if (config.contains("dspace.dir")) {
 config = "/devel/dspace/config/dspace.cfg";
 }

which was *not* commented so I commented that code and rebuilt.   
Sadly, there was no change in the behavior.

The method builds the entityProvider list.  Is there supposed to be a  
database initialization there?  That seems unlikely.  If the web.xml  
file under the dspace-rest/webapp/WEB-INF directory points at my  
dspace.cfg, why wouldn't it connect to the database using the jdbc  
connect in db.url?  I noticed the pom.xml for the dspace-rest code has  
ojdbc14 under Oracle db support.  Is that correct?

Thanks,
Maury Bouchard
Simmons GSLIS


Quoting Bojan Suzic :

> Hi Maury,
>
> this error refers to the problem with the database access, connection
> cannot be established.
> Can you check the contents of
> org/dspace/rest/servlet/DS16DirectServlet.java, method startProviders?
> Maybe it is not  initialized there.
>
> Regards
> Bojan
>
>
> Am 22.02.2012 16:58, schrieb maurice.bouch...@simmons.edu:
>> Hello,
>> I am attempting to use the REST API against a test repository. I am
>> using dspace 1.8.0 and Oracle express.  My repository is working fine
>> (using the xmlui, I can add, change, and view communities,
>> collections, and items).  I've checked out and built the REST API
>> after having changed its web.xml to point at my dspace.cfg. I can get
>> to all the documentation (e.g.,
>> http://192.168.56.111:8008/rest/describe and yes, I am using port 8008
>> since oracle apex is listening on 8080). When I attempt to retrieve
>> any communities (e.g.,
>> http://192.168.56.111:8008/rest/communities.xml), collections, or
>> items, in either json or xml format, I get 500 - Internal server
>> errors.  The tomcat (v6.0.33) log shows:
>>
>> Setting the REST servlet context to: /rest
>> Setting the manager servlet context to: /rest
>> stor2/communities.xml
>> WARN Could not process entity: SQL error (500)[null]: Internal server error
>>
>> The dspace log shows:
>>
>> org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:585)
>>   at org.dspace.core.Context.(Context.java:95)
>> .
>> .
>> .
>> I've set the logging level to FINE and verified that the proper
>> dspace.cfg is working. I've searched the dspace open issue database
>> and the web but haven't found anything.
>>
>> What am I missing? Any suggestions will be much appreciated.
>>
>> Thanks very much,
>> Maury Bouchard
>> Simmons College, GSLIS
>>
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>





--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace REST API: SQL error (500)

2012-02-22 Thread Bojan Suzic
Hi Maury,

this error refers to the problem with the database access, connection 
cannot be established.
Can you check the contents of 
org/dspace/rest/servlet/DS16DirectServlet.java, method startProviders? 
Maybe it is not  initialized there.

Regards
Bojan


Am 22.02.2012 16:58, schrieb maurice.bouch...@simmons.edu:
> Hello,
> I am attempting to use the REST API against a test repository. I am
> using dspace 1.8.0 and Oracle express.  My repository is working fine
> (using the xmlui, I can add, change, and view communities,
> collections, and items).  I've checked out and built the REST API
> after having changed its web.xml to point at my dspace.cfg. I can get
> to all the documentation (e.g.,
> http://192.168.56.111:8008/rest/describe and yes, I am using port 8008
> since oracle apex is listening on 8080). When I attempt to retrieve
> any communities (e.g.,
> http://192.168.56.111:8008/rest/communities.xml), collections, or
> items, in either json or xml format, I get 500 - Internal server
> errors.  The tomcat (v6.0.33) log shows:
>
> Setting the REST servlet context to: /rest
> Setting the manager servlet context to: /rest
> stor2/communities.xml
> WARN Could not process entity: SQL error (500)[null]: Internal server error
>
> The dspace log shows:
>
> org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:585)
>   at org.dspace.core.Context.(Context.java:95)
> .
> .
> .
> I've set the logging level to FINE and verified that the proper
> dspace.cfg is working. I've searched the dspace open issue database
> and the web but haven't found anything.
>
> What am I missing? Any suggestions will be much appreciated.
>
> Thanks very much,
> Maury Bouchard
> Simmons College, GSLIS
>

--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace REST API: SQL error (500)

2012-02-22 Thread maurice . bouchard
Hello,
I am attempting to use the REST API against a test repository. I am  
using dspace 1.8.0 and Oracle express.  My repository is working fine  
(using the xmlui, I can add, change, and view communities,  
collections, and items).  I've checked out and built the REST API  
after having changed its web.xml to point at my dspace.cfg. I can get  
to all the documentation (e.g.,  
http://192.168.56.111:8008/rest/describe and yes, I am using port 8008  
since oracle apex is listening on 8080). When I attempt to retrieve  
any communities (e.g.,  
http://192.168.56.111:8008/rest/communities.xml), collections, or  
items, in either json or xml format, I get 500 - Internal server  
errors.  The tomcat (v6.0.33) log shows:

Setting the REST servlet context to: /rest
Setting the manager servlet context to: /rest
stor2/communities.xml
WARN Could not process entity: SQL error (500)[null]: Internal server error

The dspace log shows:

2012-02-22 10:45:55,996 WARN  org.dspace.storage.rdbms.DataSourceInit  
@ Exception initializing DB pool
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
 at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
 at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:186)
 at  
org.dspace.storage.rdbms.DataSourceInit.getDatasource(DataSourceInit.java:38)
 at  
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1513)
 at  
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:585)
 at org.dspace.core.Context.(Context.java:95)
.
.
.
I've set the logging level to FINE and verified that the proper  
dspace.cfg is working. I've searched the dspace open issue database  
and the web but haven't found anything.

What am I missing? Any suggestions will be much appreciated.

Thanks very much,
Maury Bouchard
Simmons College, GSLIS



--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSPACE Rest API (problem)

2011-11-08 Thread Dennis Tobar
mmm...

I just see the pom.xml file in dspace-rest (svn) and in the 
node appears "1.8.0-SNAPSHOT". You must replace
this line with you dspace version.

In step 5a) you must copy any pom.xml from anywhere (pe: /modules/jspui).

On Tue, Nov 8, 2011 at 3:03 AM, Abhishek Raval  wrote:
> Hello Dennis,
>
> thanks for the help ..
>
> i m still not getting wat to do in step 5a) ???. i just take pom.xml
> from ../modules/jspui & put into ../modules/rest/is it right ?
>
> pom.xml file need to edit or not ???
>
>
> On Mon, Nov 7, 2011 at 5:02 PM, Dennis Tobar  wrote:
>>
>> Hi,
>>
>> I think that you must rename the dspace version in pom.xml in the
>> dspace-rest directory, because pom is looking for dspace 1.8.0. Snapshot,
>> but I think that you aren't using that version.
>>
>> I just playing with it around two months ago, an this was the first
>> problem to resolve.
>>
>> Regards,
>> Dennis Tobar
>>
>> El 07/11/2011 07:47, "Abhishek Raval"  escribió:
>>
>> >
>> > Hello,
>> >
>> >
>> >  I m trying to integrate DSPACE REST-API into dspace-1.7.2. During
>> > the R&D i found some steps to follow through which i can do that. steps are
>> > below.
>> >
>> > 1) Create a new directory for the REST module source code -
>> > dspace-src/dspace-rest.
>> >
>> > 2) Checkout the source code from
>> > http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk/ into the new
>> > directory.
>> >
>> > 3) Incorporate the new module into your project by adding a new 
>> > element for dspace-rest to the 'all' profile in dspace-src/pom.xml.
>> >
>> > 4) Tell Maven to use your new local module by adding a new  to
>> > dspace-src/dspace/pom.xml. If you don't do this the project will build okay
>> > but won't be using your local source code for that module.
>> >
>> > 5) Create a new directory dspace-src/dspace/modules/rest.
>> >
>> > 5a) Add a sub-directory src/main/webapp and a pom.xml to the directory
>> > created in 5. (Copy the pom from any other modules/ module).
>> >
>> > 6) Add a  to dspace-src/dspace/modules/pom.xml.
>> >
>> > 7) Rebuild your project.
>> >
>> >
>> >
>> > aftr doing this when i m trying to perform "mvn package" it gives me
>> > error as per below
>> >
>> >
>> > D:\dspace-agro\dspace-rest\dspace-1.7.2-src-release>mvn package
>> > [INFO] Scanning for projects...
>> > Downloading:
>> > http://source.sakaiproject.org/maven2//org/dspace/dspace-parent/1.8
>> > .0-SNAPSHOT/dspace-parent-1.8.0-SNAPSHOT.pom
>> > [WARNING] Unable to get resource
>> > 'org.dspace:dspace-parent:pom:1.8.0-SNAPSHOT' f
>> > rom repository sakaiproject repository
>> > (http://source.sakaiproject.org/maven2/):
>> >  Error transferring file: source.sakaiproject.org
>> > [INFO]
>> > 
>> > [ERROR] FATAL ERROR
>> > [INFO]
>> > 
>> > [INFO] Error building POM (may not be this project's POM).
>> >
>> >
>> > Project ID: org.dspace:dspace-rest:war:null
>> >
>> > Reason: Cannot find parent: org.dspace:dspace-parent for project:
>> > org.dspace:dsp
>> > ace-rest:war:null for project org.dspace:dspace-rest:war:null
>> >
>> >
>> >
>> > anyone have any idea abt this how do i go farther on this ?
>> >
>> >
>> >
>
>
>
>



-- 
Dennis Tobar Calderón
Ingeniero en Informática UTEM
Licenciado en Ciencias de la Ingeniería UTEM

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSPACE Rest API (problem)

2011-11-07 Thread Abhishek Raval
Hello Dennis,

thanks for the help ..

i m still not getting wat to do in step 5a) ???. i just take pom.xml
from ../modules/jspui & put into ../modules/rest/is it right ?

pom.xml file need to edit or not ???


On Mon, Nov 7, 2011 at 5:02 PM, Dennis Tobar  wrote:

> Hi,
>
> I think that you must rename the dspace version in pom.xml in the
> dspace-rest directory, because pom is looking for dspace 1.8.0. Snapshot,
> but I think that you aren't using that version.
>
> I just playing with it around two months ago, an this was the first
> problem to resolve.
>
> Regards,
> Dennis Tobar
>
> El 07/11/2011 07:47, "Abhishek Raval"  escribió:
>
> >
> > Hello,
> >
> >
> >  I m trying to integrate DSPACE REST-API into dspace-1.7.2. During
> the R&D i found some steps to follow through which i can do that. steps are
> below.
> >
> > 1) Create a new directory for the REST module source code -
> dspace-src/dspace-rest.
> >
> > 2) Checkout the source code from
> http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk/ into the new
> directory.
> >
> > 3) Incorporate the new module into your project by adding a new 
> element for dspace-rest to the 'all' profile in dspace-src/pom.xml.
> >
> > 4) Tell Maven to use your new local module by adding a new  to
> dspace-src/dspace/pom.xml. If you don't do this the project will build okay
> but won't be using your local source code for that module.
> >
> > 5) Create a new directory dspace-src/dspace/modules/rest.
> >
> > 5a) Add a sub-directory src/main/webapp and a pom.xml to the directory
> created in 5. (Copy the pom from any other modules/ module).
> >
> > 6) Add a  to dspace-src/dspace/modules/pom.xml.
> >
> > 7) Rebuild your project.
> >
> >
> >
> > aftr doing this when i m trying to perform "mvn package" it gives me
> error as per below
> >
> >
> > D:\dspace-agro\dspace-rest\dspace-1.7.2-src-release>mvn package
> > [INFO] Scanning for projects...
> > Downloading:
> http://source.sakaiproject.org/maven2//org/dspace/dspace-parent/1.8
> > .0-SNAPSHOT/dspace-parent-1.8.0-SNAPSHOT.pom
> > [WARNING] Unable to get resource
> 'org.dspace:dspace-parent:pom:1.8.0-SNAPSHOT' f
> > rom repository sakaiproject repository (
> http://source.sakaiproject.org/maven2/):
> >  Error transferring file: source.sakaiproject.org
> > [INFO]
> 
> > [ERROR] FATAL ERROR
> > [INFO]
> 
> > [INFO] Error building POM (may not be this project's POM).
> >
> >
> > Project ID: org.dspace:dspace-rest:war:null
> >
> > Reason: Cannot find parent: org.dspace:dspace-parent for project:
> org.dspace:dsp
> > ace-rest:war:null for project org.dspace:dspace-rest:war:null
> >
> >
> >
> > anyone have any idea abt this how do i go farther on this ?
> >
> >
> >
>
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSPACE Rest API (problem)

2011-11-07 Thread Dennis Tobar
Hi,

I think that you must rename the dspace version in pom.xml in the
dspace-rest directory, because pom is looking for dspace 1.8.0. Snapshot,
but I think that you aren't using that version.

I just playing with it around two months ago, an this was the first problem
to resolve.

Regards,
Dennis Tobar

El 07/11/2011 07:47, "Abhishek Raval"  escribió:

>
> Hello,
>
>
>  I m trying to integrate DSPACE REST-API into dspace-1.7.2. During
the R&D i found some steps to follow through which i can do that. steps are
below.
>
> 1) Create a new directory for the REST module source code -
dspace-src/dspace-rest.
>
> 2) Checkout the source code from
http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk/ into the new
directory.
>
> 3) Incorporate the new module into your project by adding a new 
element for dspace-rest to the 'all' profile in dspace-src/pom.xml.
>
> 4) Tell Maven to use your new local module by adding a new  to
dspace-src/dspace/pom.xml. If you don't do this the project will build okay
but won't be using your local source code for that module.
>
> 5) Create a new directory dspace-src/dspace/modules/rest.
>
> 5a) Add a sub-directory src/main/webapp and a pom.xml to the directory
created in 5. (Copy the pom from any other modules/ module).
>
> 6) Add a  to dspace-src/dspace/modules/pom.xml.
>
> 7) Rebuild your project.
>
>
>
> aftr doing this when i m trying to perform "mvn package" it gives me
error as per below
>
>
> D:\dspace-agro\dspace-rest\dspace-1.7.2-src-release>mvn package
> [INFO] Scanning for projects...
> Downloading:
http://source.sakaiproject.org/maven2//org/dspace/dspace-parent/1.8
> .0-SNAPSHOT/dspace-parent-1.8.0-SNAPSHOT.pom
> [WARNING] Unable to get resource
'org.dspace:dspace-parent:pom:1.8.0-SNAPSHOT' f
> rom repository sakaiproject repository (
http://source.sakaiproject.org/maven2/):
>  Error transferring file: source.sakaiproject.org
> [INFO]

> [ERROR] FATAL ERROR
> [INFO]

> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.dspace:dspace-rest:war:null
>
> Reason: Cannot find parent: org.dspace:dspace-parent for project:
org.dspace:dsp
> ace-rest:war:null for project org.dspace:dspace-rest:war:null
>
>
>
> anyone have any idea abt this how do i go farther on this ?
>
>
> --
> Thanks n Regards
> Abhishek Raval
> Software Engg.
> Webinito Networks
> Ph no.-+919601077584
>
>
>
--
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSPACE Rest API (problem)

2011-11-07 Thread Abhishek Raval
Hello,


  *   I m trying to integrate DSPACE REST-API into dspace-1.7.2. During the
R&D i found some steps to follow through which i can do that. steps are
below.
*

1) Create a new directory for the REST module source code -
dspace-src/dspace-rest.

2) Checkout the source code from
http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk/ into the new
directory.

3) Incorporate the new module into your project by adding a new 
element for dspace-rest to the 'all' profile in dspace-src/pom.xml.

4) Tell Maven to use your new local module by adding a new  to
dspace-src/dspace/pom.xml. If you don't do this the project will build okay
but won't be using your local source code for that module.

5) Create a new directory dspace-src/dspace/modules/rest.

5a) Add a sub-directory src/main/webapp and a pom.xml to the directory
created in 5. (Copy the pom from any other modules/ module).

6) Add a  to dspace-src/dspace/modules/pom.xml.
7) Rebuild your project.



*aftr doing this when i m trying to perform "mvn package" it gives me error
as per below*


D:\dspace-agro\dspace-rest\dspace-1.7.2-src-release>mvn package
[INFO] Scanning for projects...
Downloading:
http://source.sakaiproject.org/maven2//org/dspace/dspace-parent/1.8
.0-SNAPSHOT/dspace-parent-1.8.0-SNAPSHOT.pom
[WARNING] Unable to get resource
'org.dspace:dspace-parent:pom:1.8.0-SNAPSHOT' f
rom repository sakaiproject repository (
http://source.sakaiproject.org/maven2/):
 Error transferring file: source.sakaiproject.org
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: org.dspace:dspace-rest:war:null

Reason: Cannot find parent: org.dspace:dspace-parent for project:
org.dspace:dsp
ace-rest:war:null for project org.dspace:dspace-rest:war:null



*anyone have any idea abt this how do i go farther on this ?
*

-- 
Thanks n Regards
Abhishek Raval
Software Engg.
Webinito Networks
Ph no.-+919601077584
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech