resolved error with

FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

by correcting syntax of role file: java_server.rb