Thanks. What I have so far discovered is that it doesn't work when I set the system property in my servlet but by then it may be too late and the AWT is already loaded. So I restarted tomcat with -Djava.awt.headless=true and that works as advertised. However, this is obviously not as portable a solution as defining the property in code so I still have some work to do to see if there are any other ways to override the default awt setting from that point in the program.
One possibility is to get the default Toolkit, which I will try next. Thanks all for the insightful responses. Bruce On 9/21/07 12:32 PM, "David Fisher" <[EMAIL PROTECTED]> wrote: > It is possible that you'll need to install and/or select the font. > > At least check your font setup, the Autosize functionality does > depend on Font Data even if it is "headless". > > If I recall there are some differences in Java2D's font behavior when > in the "headless" state. > > Sorry, I can't be more specific, but I'm pretty much the Project > Manager for our POI development and contributions. > > Regards, > Dave > > On Sep 21, 2007, at 11:22 AM, Bruce Altner wrote: > >> Oooh, thanks. I read that guide months ago but didn't remember the >> warning. >> I guess I need trumpets along with a big red box that says >> "Warning!" in >> order to notice things. >> >> OK, so this confirms the problem. Unfortunately, setting >> java.awt.headless=true doesn't solve it for me. I guess I'm back to >> setting >> column widths manually. >> >> Bruce >> >> >> On 9/21/07 11:37 AM, "Nick Burch" <[EMAIL PROTECTED]> wrote: >> >>> On Fri, 21 Sep 2007, Bruce Altner wrote: >>>> This may be because it cannot find a local graphics environment when >>>> reverse proxied. Is there a workaround? >>> >>> There's a handy red warning box about this in the quick guide for >>> autosizign columns: >>> http://poi.apache.org/hssf/quick-guide.html#Autofit >>> >>> Nick >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
