Skip to content

Commit

Permalink
Fixing resource paths for strict servlet compliance (this is default …
Browse files Browse the repository at this point in the history
…in tomcat8)
  • Loading branch information
semancik committed Oct 28, 2014
1 parent 6708c81 commit 62b4732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -60,8 +60,8 @@ public static Map<String, DisplayableValue<String>[]> getActions() {
public void loadData(MidPointApplication application) {
LOGGER.info("Loading data from descriptor files.");

String baseFileName = "WEB-INF/descriptor.xml";
String customFileName = "WEB-INF/classes/descriptor.xml";
String baseFileName = "/WEB-INF/descriptor.xml";
String customFileName = "/WEB-INF/classes/descriptor.xml";

try (InputStream baseInput = application.getServletContext().getResourceAsStream(baseFileName);
InputStream customInput = application.getServletContext().getResourceAsStream(customFileName)) {
Expand Down
Expand Up @@ -62,6 +62,7 @@ public class SystemConfigurationHandler implements ChangeHook {
@Autowired(required = true)
@Qualifier("cacheRepositoryService")
private transient RepositoryService cacheRepositoryService;

@Autowired(required = true)
private MidpointConfiguration startupConfiguration;

Expand Down

0 comments on commit 62b4732

Please sign in to comment.