Entities, beans and web.xml