NAVIGATION
Home
Gallery
Java
Linux
Web
Scripts And Utilities
Mobile And Sms
Misc
Contact
pixelWIKI
Nabaz Tag




<<

Headless Tomcat

Running tomcat or jboss on a headless linux System

This is only relevant if you are trying to do graphical stuff on a linux server without X installed.

If you get the following (or similar) error messages, you will need to make these changes:

java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory


firstly, you will need to change your startup script to pass the following parameter to jboss:

-Djava.awt.headless=true


in jboss, change bin/run.sh and look for JAVA_OPTS="...
in tomcat, change bin/catalina.sh and near the top add the line:

JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"


This has only been confirmed on Fedora Core 4 (FC4) and AS4, but you will also need to install the rpm xorg-x11-deprecated-libs-*.rpm - this should be on your install disk(s)

see also here