-
Bug
-
Resolution: Fixed
-
Medium
-
1.0
-
Using tomcat 5.0.18 under Linux 2.4.20 (Redhat) running on a virtually hosted box. JDK 1.4.03 from Sun.
I am unable to export anything to PDF due to X windows not being installed on the server, this is a common configuration on most hosted servers.
The following error presents itself in the server log:
INFO: Invoking rollback for transaction on method 'exportAs' in class [com.atlassian.confluence.importexport.ImportExportManager] due to throwable [java.lang.UnsatisfiedLinkError: /opt/j2sdk1.4.2_02/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory]
I am unfamiliar with how the PDF export is generated, but is there a way to eliminate the use of awt? This would most likely fix it.
If you set "java.awt.headless" to the JVM (start the JVM with -Djava.awt.headless=true) all AWT calls with work without requiring X11. This was one of the Big Things that came out with Java 1.4. See http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
Also note that setting the property after starting the JVM won't work. You have to include the setting in the Confluence startup shell script.