Hi Mika, We encountered the smae problem a few weeks ago when we went live with SWORD on our customised production server. See http://jira.dspace.org/jira/browse/DS-327 for an explanation and a short description as to why it hasn't been spotted until recently. It is fixed in 1.6 :)
Thanks, Stuart ________________________________________ From: Richard Jones [[email protected]] Sent: Thursday, 22 October 2009 3:26 a.m. To: mikan.d.dspace listmail Cc: Dspace Tech; Stuart Lewis Subject: Re: [Dspace-tech] Sword error Hi Mika, > Im trying to do post with SWORD, but am getting this error: > > <p>Problem accessing /sword/deposit/123456789/2. Reason: > <pre> /tmpSWORD-127.0.0.1-5 (Permission denied)</pre></p><h3>Caused > by:</h3><pre>java.io.FileNotFoundException: /tmpSWORD-127.0.0.1-5 > (Permission denied) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:179) > at java.io.FileOutputStream.<init>(FileOutputStream.java:131) > at > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:218) > > It seems to be a matter of user permissions, but to where is the questions? The sword server is trying to use the absolute path on your machine: /tmpSWORD-127.0.0.1-5 to write to, which it (understandably) doesn't have the rights to, it being a root directory and all. This is probably because your system's temp directory default location is /tmp as opposed to /tmp/ (a fact which the server ought to check for, but seemingly doesn't). You may also specify your own temp directory by adding the following to the sword web.xml: <context-param> <param-name>upload-temp-directory</param-name> <param-value>/path/to/tmp/dir/</param-value> </context-param> (i'd keep the trailing / just in case there are any other file path concatenation bugs in the generic server implementation). Cheers, Richard -- Richard Jones Head of Repository Systems, Symplectic Limited e: [email protected] t: 0845 026 4755 t: +44 (0)207 7334036 w: http://www.symplectic.co.uk/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

