You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mohammed Akacem <ak...@biba.uni-bremen.de> on 2000/12/14 11:48:01 UTC
cannot create file in the temp directory of tomcat/Permission denied?
Hi,
my servlet failed to create a file in the temp directory of tomcat.
tempdir =
(getServletContext().getAttribute("javax.servlet.context.tempdir")).toString();
hier is an ouput:
tempdir=/usr/local/jakarta-tomcat/work/localhost_8080
hier is the Exception message I got:
I can not create the filejava.io.IOException: Permission denied
Context log path="" :getfileservlet1: couldn't create the
filePermission denied
Context log path="" :getfileservlet1:
IOeX/usr/local/jakarta-tomcat/work/localh
ost_8080/To1016mC19342253663432762At.stl (Permission denied)
platform:Apache + tomcat +Linux
thanks for any help
Mohammed
Re: cannot create file in the temp directory of tomcat/Permission
denied?
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
The "permission denied" message usually means what it says :-).
Check the operating system permissions of the directories you have Tomcat installed
in, versus the operating system username under which Tomcat is running.
Craig McClanahan
Mohammed Akacem wrote:
> Hi,
>
> my servlet failed to create a file in the temp directory of tomcat.
> tempdir =
> (getServletContext().getAttribute("javax.servlet.context.tempdir")).toString();
>
> hier is an ouput:
> tempdir=/usr/local/jakarta-tomcat/work/localhost_8080
>
> hier is the Exception message I got:
> I can not create the filejava.io.IOException: Permission denied
> Context log path="" :getfileservlet1: couldn't create the
> filePermission denied
> Context log path="" :getfileservlet1:
> IOeX/usr/local/jakarta-tomcat/work/localh
> ost_8080/To1016mC19342253663432762At.stl (Permission denied)
>
> platform:Apache + tomcat +Linux
> thanks for any help
>
> Mohammed