LocalPCではエラーなく運営できるが、サーバ-に乗せるとエラー(java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment)が発生する場合があります。
OSによる設定の違いがエラーの原因で、
下記の中のどちらかを選び設定すれば、解決できます。
【プログラム内に組み込み】
System.setProperty("java.awt.headless", "true");
【Serverの設定を変更】
catalina.shファイルのCATALINA_OPTS部分にオプションを追加する。
-Djava.awt.headless=true