RESTAPI:Running Cryptshare in headless mode

Aus Cryptshare Documentation
Wechseln zu:Navigation, Suche


Applies to:

All versions of Cryptshare Server

Symptom:

Cryptshare fails to send/generate emails and reports an error related to the java.awt.Color class.

cryptshare.log

java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color

Cause:

If there is no graphical environment on the operating system Cryptshare may fail to prepare email templates.

Solution:

This can be resolved by running the java process in headless mode. To run java in headless mode, add the following line to the file /opt/cryptshare-3/launcher.ini and replace <number> with the next available number:

launcher.ini

vm.arg.<number>=-Djava.awt.headless=true