Issue
Hi Stackoverflow friends
I've recently configured Jenkins Server into Apache Tomcat 7.0.42 The procedure that I make was deploy the jenkins.war file into tomcat servlet container.
Here I make reference some important considerations:
My machine is a CentOS 6.4 Server:
[root@safe2school srv]# cat /etc/redhat-release CentOS release 6.4 (Final) [root@safe2school srv]#
My JDK version is JDK 1.7 UPDATE 45, this is the official Oracle JDK
[root@safe2school srv]# java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) [root@safe2school srv]#
I've tried with the installation of dejavu-sans-fonts (yum install dejavu-sans-fonts ) and set the envoronment variable export JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true" in the file /etc/bashrc but all these options doesn't work.
The output for this error is in the following image (http://i.stack.imgur.com/DNM8m.png):
There is some alternative that you can support me in these task?
I appreciate your help. Thanks :)
Solution
Try locating the file:
/etc/sysconfig/jenkins
and inside it, the line: JENKINS_JAVA_OPTIONS=...
Make sure it has the headless option, e.g. :
JENKINS_JAVA_OPTIONS="-Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true"
Otherwise, please indicate more specifically how you start your Jenkins instance.
Answered By - Patrice M.