Fix compile errors for pullrequest #187

- Fix compile errors for pullrequest #187
- Add beans to WebAppUtil