GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Aug-2005, 04:32
kazim123 kazim123 is offline
New Member
 
Join Date: Aug 2005
Posts: 1
kazim123 is on a distinguished road

Showing Error as Permission Denied


Hello

I have installed tomcat4 in linux environment.When i want to create an external file
or any file (eg. zex.txt).It should be created outside in the specified directory.
it is showing error like

HTTP Status 404 - /root/zex.txt (Permission denied)

type Status report

message /root/zex.txt (Permission denied)

description The requested resource (/root/zex.txt (Permission denied)) is not available.
Apache Tomcat/4.1

Following is my jsp code:

<%@page import='java.io.*'%>
<%@ page contentType="text/html; charset=utf-8" %>
<html>
<head>
<tile>SAMPLE FILE CREATOR</title>
</head>
<body>
<form>
<%
PrintStream ps=new PrintStream(new FileOutputStream("/root/zex.txt"));
ps.println("File" +ps + "created");
ps.close();
%>
</form>
</body>
</html>
Please help as soon as posible as it is very urgent
 
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading error: permission problems dmadd9 MySQL / PHP Forum 1 23-Apr-2005 14:56

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:02.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.