Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/src/main/java/com/genexus/ApplicationContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public boolean checkIfResourceExist(String path)
if (isSpringBootApp())
return new ClassPathResource(path).exists();
else
return new File(path).exists();
return new File(path).exists() || getClass().getClassLoader().getResource(path) != null;
}

public void setEJBEngine(boolean isEJBEngine)
Expand Down
6 changes: 5 additions & 1 deletion common/src/main/java/com/genexus/xml/XMLReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,11 @@ public void open(String url)
else
{
File xmlFile = new File(url);
fileInputStream = new FileInputStream(xmlFile);
if (xmlFile.exists())
fileInputStream = new FileInputStream(xmlFile);
else {
fileInputStream = getClass().getClassLoader().getResourceAsStream(url);
}
}
inputSource = new XMLInputSource(null, url, null, fileInputStream, null);
if (documentEncoding.length() > 0)
Expand Down
Loading