----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Suggestions :
- look at logs files
- out.flush ()
- monitor using apache/bin/ab
- view page source in browser
Regards Simon.
Jim Miani wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hi, I'm picking up this thread from where I left it off a few days ago. To
> sum up:
>
> SCO Open Server 5.0.5
> Apache Web Server 1.3.12
> Apache JServ 1.1.1b1
>
> Problem: Standard 'Hello' and 'IsItWorking' servlets randomly return
> empty documents. (These are the sample servlets that come with JServ
> for testing installation/configuration).
>
> NOTE: I HAVE read the FAQ, and YES I did do everything in the post
> there that references this problem. i.e. I have added
> servlets.startup=Hello,IsItWorking to zone.properties and I have added
> wrapper.bin.parameters=-Xms64m -Xmx64m to jserv.properties.
>
> Furthermore, this does not happen only on the first try of the servlet.
> One attempt will work, and a subsequent, almost immediate refresh will
> return an empty document. If I keep clicking refresh, sometimes it will
> work, sometimes not.
>
> I am convinced it is not a timeout issue. The empty document is returned
> instantaneously.
>
> The one piece of new information I have is that I put some very
> simpleminded diagnostics into the Hello servlet and logged them to a
> file. The servlet actually runs to completion even when it returns
> no data, and very quickly! I am completely baffled. If anybody has any
> suggestions I would love to hear them.
>
> I've included the modifed source to the Hello servlet below. The output
> in the file "/tmp/jim.debug" is like so, EVEN WHEN THE REQUEST IS
> RETURNED EMPTY
> Jim do some diags!
> Example Apache JServ Servlet
> after setContentType
> after response getWriter
> after some print lines
> after printwrite close
>
> here's the source:
>
> public void doGet (HttpServletRequest request,
> HttpServletResponse response)
> throws ServletException, IOException
> {
> PrintWriter f=new PrintWriter(new FileWriter("/tmp/jim.debug",true))
>
> PrintWriter out;
> String title = "Example Apache JServ Servlet";
> f.println("Jim do some diags!");
> f.println(title);
> response.setContentType("text/html");
> f.println("after setContentType");
> out = response.getWriter();
> f.println("after response getWriter");
> out.println("<HTML><HEAD><TITLE>");
> out.println(title);
> out.println("</TITLE></HEAD><BODY bgcolor=\"#FFFFFF\">");
> out.println("<H1>" + title + "</H1>");
> f.println("after some print lines");
> out.println("<H2> Congratulations, ApacheJServ 1.1.1b1 is
> working!</H2><br></br>");
>
> out.println("</BODY></HTML>");
> out.close();
> f.println("after printwrite close");
> f.close();
> }
> }
>
>
>
>
>
>
> ==========================================================================
> Jim Miani
> ICANON Associates, Inc.
> Phone: 610-313-1850 x 121
> Fax: 610-313-1848
>
> NEWZware is a product of ICANON Inc. - Visit our web site at
> http://www.icanon.com/ for more information on ICANON, the company, and its
> suite of products and services.
>
> --
> --------------------------------------------------------------
> 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]
--
--------------------------------------------------------------
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]
- JServ, Document returns No Data Jim Miani
- Re: JServ, Document returns No Data Simon Dubey
- Re: JServ, Document returns No Data Shaun Campbell
- Re: JServ, Document returns No Data Jim Miani
- Re: JServ, Document returns No Data Jim Miani
