Wiki » History » Version 4
Steve Welburn, 2012-10-26 06:58 PM
1 | 1 | Steve Welburn | h1. Wiki |
---|---|---|---|
2 | 1 | Steve Welburn | |
3 | 1 | Steve Welburn | NB: All this may be superceded by more recent versions of DataStage, DSpace and the SWORDv2 server! |
4 | 1 | Steve Welburn | |
5 | 3 | Steve Welburn | According to Marco's "blog post":http://rdm.c4dm.eecs.qmul.ac.uk/datastage-and-dspace it looks as though a specific ingester isn't necessary, but could be used to process the manifest.rdf to add metadata. |
6 | 1 | Steve Welburn | |
7 | 2 | Steve Welburn | h2. DataStage under Virtualbox |
8 | 2 | Steve Welburn | |
9 | 1 | Steve Welburn | The DataStage server doesn't start properly in VirtualBox. In order to submit files, it is necessary to: |
10 | 1 | Steve Welburn | <pre> |
11 | 1 | Steve Welburn | sudo datastage-server stop |
12 | 1 | Steve Welburn | sudo datastage-server start |
13 | 1 | Steve Welburn | </pre> |
14 | 1 | Steve Welburn | |
15 | 1 | Steve Welburn | h2. SWORDv2 Server |
16 | 1 | Steve Welburn | |
17 | 1 | Steve Welburn | If using DSpace 1.8.2, the java swordv2 server library (/system/webapps/swordv2/WEB-INF/server-2.0-classes.jar) MUST be removed and substituted with the latest version from https://github.com/swordapp/JavaServer2.0 . |
18 | 1 | Steve Welburn | |
19 | 1 | Steve Welburn | h2. Tomcat configuration |
20 | 2 | Steve Welburn | |
21 | 4 | Steve Welburn | Tomcat must allow access to the swordv2 DSpace webapp (plausibly in the Tomcat server.xml). If a DSpace instance has been restricted to core functionality, only the JSP or XML UI elements may be available. Test by trying to access |
22 | 4 | Steve Welburn | |
23 | 4 | Steve Welburn | <pre> |
24 | 4 | Steve Welburn | swordv2/servicedocument |
25 | 4 | Steve Welburn | </pre> |
26 | 4 | Steve Welburn | |
27 | 4 | Steve Welburn | under the DSpace home URL. With password authentication, this should prompt for a username and password and allow the Sword service document to be retrieved. |
28 | 4 | Steve Welburn | |
29 | 4 | Steve Welburn | e.g. on our test server it is at: http://c4dm.eecs.qmul.ac.uk/smdmrd-test/swordv2/servicedocument |
30 | 4 | Steve Welburn | |
31 | 4 | Steve Welburn | <pre> |
32 | 4 | Steve Welburn | <Context path="/dspace/swordv2" docBase="/PathToDspace/webapps/swordv2" debug="0" |
33 | 4 | Steve Welburn | reloadable="true" cachingAllowed="false" |
34 | 4 | Steve Welburn | allowLinking="true"/> |
35 | 4 | Steve Welburn | </pre> |
36 | 4 | Steve Welburn | |
37 | 1 | Steve Welburn | Tomcat ran out of "permanent generation":http://blogs.oracle.com/jonthecollector/entry/presenting_the_permanent_generation memory when using SWORD interface - this was then updated in tomcat6.comf by adding: |
38 | 1 | Steve Welburn | |
39 | 1 | Steve Welburn | <pre> |
40 | 1 | Steve Welburn | JAVA_OPTS = "-XX:MaxPermSize=256m" |
41 | 1 | Steve Welburn | </pre> |
42 | 1 | Steve Welburn | |
43 | 1 | Steve Welburn | h2. "DataStage":http://rdm.c4dm.eecs.qmul.ac.uk/datastage-and-dspace |
44 | 1 | Steve Welburn | |
45 | 1 | Steve Welburn | To work with C4DM's DSpace the way SWORDUPLOADER works, changes are required to the file (Datastage version 0.3rc2): /usr/lib/python2.6/dist-packages/datastage/dataset/sword2depositor.py . |
46 | 1 | Steve Welburn | |
47 | 1 | Steve Welburn | At line 66, it should read: |
48 | 1 | Steve Welburn | <pre> |
49 | 1 | Steve Welburn | receipt = conn.create(col_iri=col.href, metadata_entry=e, suggested_identifier=dataset.identifier,in_progress=True) |
50 | 1 | Steve Welburn | </pre> |
51 | 1 | Steve Welburn | |
52 | 1 | Steve Welburn | Around line 133, should read: |
53 | 1 | Steve Welburn | <pre> |
54 | 1 | Steve Welburn | new_receipt = comm.update(dr = receipt, |
55 | 1 | Steve Welburn | payload=data, |
56 | 1 | Steve Welburn | mimetype="application/zip", |
57 | 1 | Steve Welburn | filename=dataset.identifier + "zip", |
58 | 1 | Steve Welburn | in_progress=True, |
59 | 1 | Steve Welburn | packaging='http://dataflow.ox.ac.uk/package/DataBankBagIt') |
60 | 1 | Steve Welburn | </pre> |
61 | 1 | Steve Welburn | |
62 | 1 | Steve Welburn | With these changes, it should be possible to upload files to DSpace AS CONFIGURED AT C4DM! The modified file can be downloaded from "here":https://code.soundsoftware.ac.uk/attachments/446/sword2depositor.py |