Wiki » History » Version 1

Version 1/4 - Next ยป - Current version
Steve Welburn, 2012-10-26 06:51 PM


Wiki

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

Also see this blog post


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

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 .

Tomcat configuration
Tomcat ran out of permanent generation memory when using SWORD interface - this was then updated in tomcat6.comf by adding:

JAVA_OPTS = "-XX:MaxPermSize=256m" 

DataStage

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:

receipt = conn.create(col_iri=col.href, metadata_entry=e, suggested_identifier=dataset.identifier,in_progress=True)

Around line 133, should read:

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')

With these changes, it should be possible to upload files to DSpace AS CONFIGURED AT C4DM! The modified file can be downloaded from here