fixed  #6 make it run on Glassfish and WildFly