It must work correctly in web-project. But if you have ordinary java-project it works incorrectly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199467#4199467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199467