John John Tobias wrote:
> Hi All,
>
> I hope you don't mind if i'll post this again, i just need your comments,
> suggestion etc about this matter. I just want to know if the java servlet
> has any restriction or limitation in inheriting java classes especially the
> java.awt.*, applet, ... packages? Because i will create an image within the
> servlet itself and call the class and some methods like this
> Image image = createImage(MemoryImageSouce(..)), when i compiled there's no
> error, but when the times i access it the java web server report an error
> like this
>
When you are running on a Unix platform, you must have an X-Windows server
running in order for AWT to work, and the username you are running your
servlets under must have permissions to connect to it. This is true even if
you are not displaying anything graphical on the server's console.
For the gory details, you'll have to ask someone else (I haven't yet needed to
create images dynamically), but this question regularly comes up for both
servlets and standalone Java applications.
Craig McClanahan
___________________________________________________________________________
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