Hello,
I have installed Apache Forrest (v.0.6) under /usr/local/share/apache-forrest.
Now, if I run the following commands as root:
# mkdir mysite
# cd mysite
# forrest seed
# forrest
all works fine.
But if I do the same as a simple user, I get the following error:
------------------------------------------------------------------------
cocoon 2.2.0-dev
Copyright (c) 1999-2004 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------
ERROR 2005-03-26 11:26:10.566 [ ] (): Directory '.' is not readable/wri
table
Exception in thread "main" java.io.IOException: Directory '.' is not readable/wr
itable
at org.apache.cocoon.bean.CocoonWrapper.getDir(CocoonWrapper.java:253)
at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:10
6)
at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
at org.apache.cocoon.Main.main(Main.java:320)
BUILD FAILED
/usr/local/share/apache-forrest/src/core/targets/site.xml:43: Java returned: 1
Note that modifying the file mode of
/usr/local/share/apache-forrest/src/core/context/
to 0777, the issue disappears.
Any idea? Obviously, I don't want to make that dir writable by everyone.
These are the permissions:
nicola> ls -l /usr/local/share/apache-forrest/src/core/
total 36
drwxr-xr-x 2 root wheel 512 26 Mar 11:24 bin/
drwxr-xr-x 5 root wheel 512 26 Mar 11:24 context/
-r--r--r-- 1 root wheel 1650 26 Mar 11:24 forrest.antproxy.xml
-r--r--r-- 1 root wheel 20857 26 Mar 11:24 forrest.build.xml
drwxr-xr-x 3 root wheel 512 26 Mar 11:24 fresh-site/
drwxr-xr-x 2 root wheel 512 26 Mar 11:24 targets/
drwxr-xr-x 3 root wheel 512 26 Mar 11:24 tasks/
drwxr-xr-x 2 root wheel 512 26 Mar 11:24 var/
Thanks, ciao.
--
Nicola Vitale
[EMAIL PROTECTED]