tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Gomolka" <>
Subject RE: java.awt package
Date Mon, 23 Oct 2000 20:26:54 GMT
This may be slightly different from your setup, but:

We have also been doing server-side imaging using the JDK1.1 image
Unless Tomcat is started within an Xterm, or via a DOS window in NT,
it won't automatically have a native system graphics context.
For example, if you start Tomcat via a telnet session, or at boot time via a
daemon, and
need to do some image manipulation, it won't have the graphics context, and
generate an exception.
Apparently, you can get around this by using the buffered image class,
which doesn't use the native graphics context,
or you can do what we did, namely, supply a graphics context.
We used Xvfb (X virtual frame buffer):

> -----Original Message-----
> From: Leon Palermo []
> Hey everyone,
> I have some server-side imaging classes that don't seem to find
> the java.awt
> package through tomcat.  I even manually added the class files from the
> java.awt package into my webapp's classes folder and I still get a
> NoClassDefFound error.  Is this a 'feature' of tomcat to ignore
> the java.awt
> package for speed purposes?  Thanks in advance.

View raw message