----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It does have a search feature!
We cannot guess what you are trying to do:
#1. Include version numbers for all software.
#2. Include relevant configuration settings.
#3. Include full descriptions of the problem.
Got Linux? Seeing lots of java processes?
<http://java.apache.org/faq/?file=274>
----------------------------------------------------
Stuart Fraser wrote:
> Sorry but as I am still having troubles I thought I'd send the whole code
> which give the error. I have changed just a few things in config but not
> much, still no go.
>
> Reading is the crux of our servlet but I/O seems a no go please if anyone
> can pick the fault in our setup we'd appreciate it grately.
>
>
> >
> >We cannot guess what you are trying to do:
> >#1. Include version numbers for all software.
>
> Running Apache 1.3.9
> JServ 1.0
> JSSI 1.1.2
> >#2. Include relevant configuration settings.
>
> jserv.conf
>
>
> serverlet.org.apache.ssi.SSI.initArgs=SSISiteRoot=/jbod/data/cseeweb/htdocs,
>
, ?
> public void doGet(HttpServletRequest req, HttpServletResponse res) throws
> ServletException, IOException {
> PrintWriter out = res.getWriter();
> res.setContentType("text/plain");
>
> out.println("Starting file write...");
> String blah = System.getProperty("user.dir");
> out.println(blah);
> FileWriter fileWriter = new FileWriter("/test_this_bitch.txt");
> BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
> bufferedWriter.write("hrrrm");
> bufferedWriter.close();
> fileWriter.close();
>
> out.println("Done!");
>
how (or more exactly who) are you running the Servlet Engine. It looks like
that you are attempting to write to the system root directory not the
DOCUMENT_ROOT directory (your htdocs dir) and you may not have write/read
permission.
John
> When trying to write a file as we thought the problem was placement of our
> txt file we received an error like:
> [11/10/1999 13:48:12:632] (ERROR) ajp11: Servlet Error:
> java.io.FileNotFoundException: /test_this_bitch.txt: /test_this_bitch.txt
> [11/10/1999 13:48:12:633] (ERROR) an error returned handling request via
> protocol "ajpv11"
--
==============================================================================
Beta may be a state of mind
But Alpha is the state of being
me - but inspired be ./ sig
==============================================================================
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]