Error executing action `restart` on resource 'service[tomcat8]'

Hi Community,

While bootstrapping to a linux vm I’m facing the below error when recipe tries to execute restart service tomcat8 and suggested to run systemctl status tomcat8.service, this command ended with LSB tomcat failed to start and I’m appending the below log collected from the command cat /var/log/tomcat8/*

Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
-Djava.endorsed.dirs=/usr/share/tomcat8/endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Any help to resolve this error is much appreciated

The service resource was unable to start your tomcat service due to JVM parameter issues. This error is not on chef side but your tomcat and java virtual machine side.
Change the startup script of your tomcat service or change your jvm version back were the problematic parameters are still compatible