WildFly - getting resource from WAR
问题 I am using the following method to get a resource from WAR file in WildFly: this.getClass().getResource(relativePath) It works when the application is deployed as exploded WAR. It used to work with compressed WAR, too. Yesterday, I did a clean and rebuild of project in Eclipse, and it just stopped working. When I check the resource root: logger.info(this.getClass().getResource("/").toExternalForm()); I get this: file:/C:/JBoss/wildfly8.1.0.CR1/modules/system/layers/base/org/jboss/as/ejb3/main