I\'m using Vagrant to deploy to Ubuntu Linux and try to start a tomcat8
service.
Tomcat 8 was installed by apt-get install tomcat8
.
Wh
Verify your tomcat8 configuration file in /etc/default/tomcat8
. See if there are badly configured variables.
For me, this error was caused by the following variables in my configuration file:
-Djava.awt.headless=true -XX:+UseConcMarkSweepGC
JAVA_OPTS="-Djava.awt.headless=true -Xss4m -Xmx2g -XX:+UseConcMarkSweepGC"
I commented and it worked.