I'm also experimenting problems with NES 4.0
A servlet that reads from a database and displays info works perfectly with
JWS1.1.3 but it doesn't do it properly with NES4.0. Same code, same db,
different results. And I know for sure that the expected results are the
ones coming from JWS.
It's a bit dissappointing because I thought that NES4.0 would be the
solution to our problems with JWS in terms of performance. If NES4.0 if
super-fast but it doesn't work properly, what's the point?
----- Original Message -----
From: Sahirad, Mohammed (London) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 08, 1999 12:23 PM
Subject: Simple Servlet works fine with servletrunner, hangs in Netscape E
nterprise Server 4.0
> All,
> I have got a simpe servlet whose code is enlosed.
> It runs ok in servletrunner on a Solaris box.
> When you run it with NES 4.0 as the Web Server, then there are two
> independent problems with it.
>
> 1-
> The line
> Process p = Runtime.getRunTime().exec("ls");
>
> sends the machine CPU to near 100%. The only soultion is the brig the Web
> Server down!!
>
> 2-
>
> The servlet hangs at the line
> int e = p.waitFor();
> which is currently commented out.
>
> Any help will be appreciated.
>
> Regards,
> Mo.
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
>
> public class ServletExec extends HttpServlet
> {
> public void doGet(HttpServletRequest req, HttpServletResponse res)
> throws ServletException, IOException
> {
> PrintWriter out = res.getWriter();
>
> Process p = Runtime.getRuntime().exec("ls");
>
> BufferedReader in = new BufferedReader(new
> InputStreamReader(p.getInputStream()));
>
> String s = null;
>
> while ((s = in.readLine()) != null)
> {
> out.println(s);
> }
>
> boolean finished = false;
>
> // try
> // {
> while (! finished)
> {
> // System.out.println("waiting");
> // int e = p.waitFor();
> // System.out.println("done");
>
> int e = 20;
>
> out.println("Process Returned: " + e);
> finished = true;
> }
> // }
> // catch (InterruptedException e)
> // {
> // }
> }
> }
>
>
>
>
>
>
> Mohammad Sahirad
> Merrill Lynch Swaps Technology
> RMP-06-05
> 6A Ropemaker
> 25 Ropemaker Street
> London EC2Y 9LY
> +44 (0)171 867 4925
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html