tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Fenwick <>
Subject Tomcat Permissions
Date Fri, 19 Jan 2007 22:37:47 GMT
I'm having trouble creating a file in Java through Tomcat.

I'm using Tomcat5.5 on Ubuntu 6.10.

I'm trying to create a file from inside a servlet:

        File auditLogFile = new File(getInitParameter("audit.log"));

When I get to this line, this is the error that is thrown:

SEVERE: StandardWrapper.Throwable access denied 
( /var/log/tomcat5.5/audit_log.log read)
        at java.lang.SecurityManager.checkRead(
        at org.test.util.Init.init(

Now, I have previously created this file and given it the same 
permissions as other files that Tomcat generates:

-rw-r--r-- 1 tomcat5 nogroup      2 2007-01-19 17:21 audit_log.log

Compared to:

-rw-r--r-- 1 tomcat5 nogroup 138259 2007-01-19 17:24 catalina_2007-01-19.log

The second log file is one that Tomcat generates itself, and so I copied 
the permissions from that.
What else could be causing this?

Or is this problem not related to Tomcat at all?


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message