Greetings everybody,
The list administrator may please pardon
me for my earlier excesses. I was
repeatedly getting [EMAIL PROTECTED]
so I had to resort to messages like the
earlier one.
To begin with I may mention that I am
posting this question here because the
JServ list has been discontinued (the last
posting was on March of last year!). Tomcat
is a servlet engine closely modelled on JServ
so any trouble that JServ comes up with can
be handled by the masters of Tomcat.
So this is my setup, I have Apache JServ 1.1.2
configured to run with Apache 1.3.19 on a Mandrake
7.2 with the X11 window server installed and running.
I compiled the following servlet and placed it in
the servlets folder of JServ:
public class OpenFrame extends HttpServlet implements SingleThreadModel
{
public void doGet(Http..request req, ..response res) throws ....
{
....set content type text/html....
PrintWriter out=res.getWriter();
out.println("<html><head><title>");
out.println("THIS SERVLET ALSO OPENS A AWT FRAME");
out.println("</title><body>OPENING FRAME<br/>");
try
{
java.awt.Frame fram=new java.awt.Frame("FRAME TITLE");
....set the frame size...
....set the frame background color....
....set the frame foreground color....
fram.show();
}
catch(Exception e)
{
out.println(""+e);
}
out.println("</body></html>");
out.close();
}
}
Its compiling successfully. I ran the Apache
server on the Mandrake machine and from another
Windows machine I opened OpenFram. I got an
Internal Server 500 error. I checked the JServ
logs:
Can't connect to X11 window server using ' 0:0'
as the value of the DISPLAY variable
I ran a google search to find out what this
error means and I came across this post:
http://java.apache.org/faq/fom-serve/cache/73.html
After reading this post I came to the
conclusion that JServ WAS TRYING TO LOAD AND OPEN
THE FRAME ON THE MANDRAKE MACHINE, despite the
request coming from the Windows machine.
The frame should open in the Windows machine.
What is happening here? I am in the process
of disabling my X11 window server but still
this is the strangest thing I ever came across.
_____________________
| MANDRAKE 7.2 |
| WITH |
| X11 window server |
| |
___________ | _______________ |
| WINDOWS | REQUEST FOR FRAME | | APACHE | |
| 2000 |_____\\__________\\________| | WEB | |
| MACHINE | // // | | SERVER | |
|_________| CREATING SERVLET | | | |
| | __________ | |
| | | JSERV | | |
| | | SERVLET| | |
| | | ENGINE | | |
| | |________| | |
| |_____________| |
| |
|___________________|
Any suggestions would be welcome.
Thanks in advance.
SNODX
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>