Tomcat file permissions on Linux

Hi,

Sorry for cross-posting, but there doesn't seem

to be much action in the servlet forum.

I have a problem with accessing a file from

my webapp running on Tomcat 5.5 under

Ubuntu Linux. I keep on getting the

following exception

java.security.AccessControlException: access denied (java.io.FilePermission ./data/result read)

After changing the path to absolute, I can chech

whether the file exists or not, but I can not create

a file in the directory. I get basically the same

exception, but there's a full path and the last

word is write instead of read.

Also I don't understand which directory is the

root directory for webapps. I though it would

be like ../webapps/myApp/, but apparently

it's not.

So if someone here has some knowledge

about how to get this working, please

read my post in the servlet forum for

better description of the situation.

http://forum.java.sun.com/thread.jspa?threadID=5134898&tstart=50

Thanks for your time.

kari-matti

[1105 byte] By [kari-mattia] at [2007-11-26 18:53:13]
# 1
Check your '"data" directory for access rights.
BIJ001a at 2007-7-9 6:27:14 > top of Java-index,Java Essentials,Java Programming...