We ran into an
issue this week that I wanted to pass along to you all.
We run Zimbra 6 on RHEL5 64-bit and had restarted mailboxd
on one of the mailstores. The service came up, zmcrontrol
status showed everything running and ps showed the java
process. However, when someone on that mailstore tried
logging in to the web client, they would get a blank page
and the http error code was 500.
The stacktrace in the mailbox.log showed this error:
javax.servlet.ServletException:
java.lang.NoClassDefFoundError: Could not initialize class
java.awt.Color
It took us some time but we finally tracked it down to
java picking up on the DISPLAY environment variable being
set. If you ssh into the machine with x11 forwarding
enabled (ssh -X), the DISPLAY environment variable gets
set. This is normal and shouldn't be an issue but there
appears to be an issue with the zimbra java on RHEL5.
Java recognizes the variable being set and tries to load
the x11 libXtst shared library. If the library isn't
installed, you will see this error in the logs too:
javax.servlet.ServletException:
java.lang.UnsatisfiedLinkError:
/opt/zimbra/jdk1.6.0_22/jre/lib/amd64/xawt/libmawt.so:
libXtst.so.6: cannot open shared object file: No such file
or directory
I spoke to zimbra on the phone and they tried duplicating
this with their Ubuntu test environment but it worked
fine. I tried it in our test environment (which is also
RHEL5) and I was able to duplicate the issue there too.
Thanks,
Doug
--
Doug Curtis
doug.curtis@oit.gatech.edu
Georgia Tech OIT/A&I
404.385.0390