Exports to PDF broken due to X11 library

This Knowledge Base article was written specifically for the Atlassian Server platform. Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications.


In some cases, the installation is unable to proceed. In other cases, PDF Exports in the entire instance are broken. Each attempt results in the following exception being thrown:

2008-03-11 09:58:05,711 ERROR [http-8080-Processor2] [opensymphony.webwork.dispatcher.ServletDispatcher] serviceAction Could not execute action
 -- url: /pages/doexportpage.action | userName: username
com.atlassian.core.exception.InfrastructureException: java.lang.NoClassDefFoundError
	at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:116)
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
	at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
Caused by: java.lang.NoClassDefFoundError
	at org.apache.fop.fo.expr.NCnameProperty.getColor(NCnameProperty.java:52)
	at org.apache.fop.fo.properties.ColorProperty$Maker.convertProperty(ColorProperty.java:80)
	at org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:442)
	at org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:392)
	at org.apache.fop.fo.properties.PropertyMaker.get(PropertyMaker.java:299)
	at org.apache.fop.fo.PropertyList.get(PropertyList.java:174)

Prior to that, the following Error appears:

2008-02-22 12:02:23,994 ERROR [http-8080-Processor2] [atlassian.confluence.security.DefaultCaptchaManager] afterPropertiesSet 
Could not initialise CAPTCHA service. The most likely reason for thisis that Java's graphics subsystem is not properly configured. 
Try startingConfluence's JVM with the -Djava.awt.headless=true option. /usr/local/j2sdk1.4.2_16/jre/lib/i386/libawt.so: libXp.so.6: 
cannot open shared object file: No such file or directory
 -- url: /setup/setupembeddeddb-default.action | userName: anonymous | action: setupembeddeddb-default
java.lang.UnsatisfiedLinkError: /usr/local/j2sdk1.4.2_16/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
	at java.lang.Runtime.loadLibrary0(Runtime.java:788)

At first glance, the problem looks to be a missing or incorrect class being referenced in Confluence; specifically, the prime suspect is the fop jar in the /confluence/WEB-INF/lib directory.


The issue seems to be from the missing AWT Library. Although the error message asked to check that Headless mode is enabled, this is actually already enabled by default in the*setenv.sh of standalone Confluence distributions. The conclusion here is that the problem is called by the missing X11 libraries.

A missing resources for the JDK, specifically libXp.so.6 from the deprecated X11 rpm.


Download and install the deprecated X11 libraries for your linux distribution. The problem is described further in Confluence UNIX and X11 Dependencies.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport