Hi,

I'm running a webapp with smartgwt on Tomcat6 running on openJDK, Debian
Squeeze.

I have a webpage with exports its data through a server call, which uses
POI to export into an Excel file that the user then can save locally.

All this works fine on my OSX machine, but i have problems deploying on my
debian server.

The first thing that happened was that i got an exception in the tomcat log
when the servlet was called:

:java.lang.Error: Probable fatal error:No fonts found.
        at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088)


I looked around, saw that there was some issue with fonts removed from
openJDK. So, i copied the fonts from the Sun-JDK fonts lib (/jre/lib/fonts)
to the same catalogue in my openSDK dist.


This resulted in that the error stopped and i got a file to save in the
browser.

However, when i open the saved file up in excel, it appears blank! The data
is there though, because if i "save as" csv and open it up in a texteditor
all rows are there... Also, a friend opened it up on his mobile phone and
he could see the data. Very strange.


Ive tried loads of font-related stuff such as copying lots of my local
truetype fonts into /usr/share/fonts/truetype, i installed the
"ttf-mscorefonts-installer" package via apt-get.

All to no avail.


If there's any expert here that knows what i should do to make this work,
i'd be the happiest camper on the planet...

Cheers

Reply via email to