run java war, as cli or daemon