Wiki » History » Version 2

Version 1 (Steve Welburn, 2012-10-26 06:51 PM) → Version 2/4 (Steve Welburn, 2012-10-26 06:51 PM)

h1. Wiki

NB: All this may be superceded by more recent versions of DataStage, DSpace and the SWORDv2 server!

Also see "this blog post":http://rdm.c4dm.eecs.qmul.ac.uk/datastage-and-dspace

h2. DataStage under Virtualbox


The DataStage server doesn't start properly in VirtualBox. In order to submit files, it is necessary to:
<pre>
sudo datastage-server stop
sudo datastage-server start
</pre>

h2. SWORDv2 Server

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 .

h2. Tomcat configuration


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:

<pre>
JAVA_OPTS = "-XX:MaxPermSize=256m"
</pre>

h2. "DataStage":http://rdm.c4dm.eecs.qmul.ac.uk/datastage-and-dspace

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 .

At line 66, it should read:
<pre>
receipt = conn.create(col_iri=col.href, metadata_entry=e, suggested_identifier=dataset.identifier,in_progress=True)
</pre>

Around line 133, should read:
<pre>
new_receipt = comm.update(dr = receipt,
payload=data,
mimetype="application/zip",
filename=dataset.identifier + "zip",
in_progress=True,
packaging='http://dataflow.ox.ac.uk/package/DataBankBagIt')
</pre>

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