make it work as a standalone jar. u can easily switch this to a .war by changing maven packaging element.