Skip to content

Commit

Permalink
JRA-19051 SIM-263: Fix default factory to use toURI().toURL() such th…
Browse files Browse the repository at this point in the history
…at sitemesh can work correctly when a web-app is deployed into a tomcat multi-context environment.
  • Loading branch information
Balcony-Trees committed Mar 2, 2015
1 parent 8d0ea0d commit 63eae13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private Element loadSitemeshXML()
is = config.getServletContext().getResourceAsStream(configFileName);
}
else if (configFile.exists() && configFile.canRead()) {
is = configFile.toURL().openStream();
is = configFile.toURI().toURL().openStream();
}

if (is == null){ // load the default sitemesh configuration
Expand Down Expand Up @@ -181,7 +181,7 @@ private void loadExcludes()
is = config.getServletContext().getResourceAsStream(excludesFileName);
}
else if (excludesFile.exists() && excludesFile.canRead()) {
is = excludesFile.toURL().openStream();
is = excludesFile.toURI().toURL().openStream();
}

if (is == null){
Expand Down

0 comments on commit 63eae13

Please sign in to comment.