Seeminlgy Thread.currentThread().getContextClassLoader().getResource(".") in jboss4 yields "${JBOSS_HOME}/server/default/conf/".Any thoughts on how to access resource files located inside .ear or .jar .war or .sar deploys.