I think the compiler in eclipse is configured with Java 6 and your jboss runs with java 5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105589#4105589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105589