I got it!

It is necessary that Tomcat can create files in [dspace]/assetstore/. 
After changing the ownership of it to the user 'tomcat', everything is fine.

:-)


Robert Roggenbuck schrieb:
> Hi,
> 
> I just want to add a first community to my DSpace 1.5 but I get the 
> following permission-errors in dspace.log when I try to add a logo:
> 
> 2008-05-21 12:01:23,383 ERROR org.dspace.search.DSIndexer @ Permission 
> denied
> java.io.IOException: Permission denied
>       at java.io.UnixFileSystem.createFileExclusively(Native Method)
>       at java.io.File.createNewFile(File.java:850)
>       at 
> org.apache.lucene.store.SimpleFSLock.obtain(SimpleFSLockFactory.java:144)
>       at org.apache.lucene.store.Lock.obtain(Lock.java:73)
>       at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691)
> [snip]
>       at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>       at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
>       at java.lang.Thread.run(Thread.java:595)
> 2008-05-21 12:01:29,480 ERROR 
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspui].[edit-communities]
>  
> @ Servlet.service() for servlet edit-communities threw exception
> java.io.IOException: No such file or directory
>       at java.io.UnixFileSystem.createFileExclusively(Native Method)
>       at java.io.File.createNewFile(File.java:850)
>       at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
>       at 
> org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:332)
> [snip]
>       at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>       at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
>       at java.lang.Thread.run(Thread.java:595)
> 2008-05-21 12:01:29,480 WARN 
> org.dspace.app.webui.servlet.InternalErrorServlet @ 
> :session_id=9A7FB1AEEB84D5E15CD7441A8F4AAF9D:internal_error:-- URL Was: 
> http://vm1lux03.ub.uni-osnabrueck.de:8081/jspui/tools/edit-communities
> -- Method: POST
> -- Parameters were:
> 
> java.io.IOException: No such file or directory
>       at java.io.UnixFileSystem.createFileExclusively(Native Method)
>       at java.io.File.createNewFile(File.java:850)
>       at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
> 
> [snip]
> 
>       at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>       at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
>       at java.lang.Thread.run(Thread.java:595)
> 
> Any suggestions? Which file / directory causes this message? The 
> [dspace]/upload/ directory is owned by the user 'tomcat' and writable 
> for it.
> 
> Best regards
> 
> Robert
> 
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to