make it work on JBOSS6