Fixed the bug. The easy solution is just to add @RequestScoped to the resource classes.
Merge branch 'master' of https://github.com/markus-git/webapp.git