Exports to PDF broken due to X11 library

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

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.

Cause

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.

Resolution

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

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.