fixed need for web.xml
Merge pull request #2 from mcmakev/master

fixed need for web.xml and better error handling in resource