Solved problem with java dependency. Installed java puppet module before tomcat

JAVA_HOME is not correctly configured. I solved adding java puppet module and it now works