Use WAR packaging for rest service

You can deploy to WTP, build a war, execute it (java -jar) or use mvn exec.