Fix problem with Jboss AS 7