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