Lily Y. Fu wrote:
>
> Hi,
>
> I am reading Jason Hunter's book, now I am on page 161,
> A "Hello World" image.
>
> I copied the code directly from the book, and complied
> it without problem, but when I tried to run the servlet
> from a browser, the browser kept on spinning for ever.
> I found the "frame.addNotify()" line causing the problem.
addNotify() creates the frame's native peer. That not working makes
me think something's amiss with your X server. Normally problems like
that cause Java to output an error message talking about DISPLAY being
improperly set, but I suppose a hang could occur as well.
I suggest you check your X server, and make sure you can run GUI Java
apps from the same window where you started your servlet engine. A
description of your servlet engine and platform would help as always.
-jh-
--
Jason Hunter
[EMAIL PROTECTED]
Book: http://www.servlets.com/book
Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.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