Commits

Stephen McKamey committed d857354

better resource paths

Comments (0)

Files changed (1)

duel-staticapps/src/main/java/org/duelengine/duel/staticapps/RoutingServlet.java

 			try {
 				configPath = servletConfig.getInitParameter("config-resource");
 				log.info("Loading config from resource: "+configPath);
-				InputStream stream = getServletContext().getResourceAsStream(configPath);
+				InputStream stream = getClass().getResourceAsStream(configPath);
 				config = new ObjectMapper().reader(SiteConfig.class).readValue(stream);
 
 			} catch (Exception ex) {