adding ability to run on jboss as well in root context