Fixes issue #18 #19

Open
wants to merge 1 commit into
from

Projects

None yet

3 participants

@yortx
yortx commented Jul 3, 2012

This commit fixes issue #18. It just replaces the use of the deprecated File.toURL() with the suggested File.toURI().toURL().
This allows sitemesh to find the configuration file in cases when the war file contains, for example, the '#' character (useful in tomcat to deploy to a subfolder).

@brianv0
brianv0 commented Jun 8, 2013

Please merge this!

This fixes problems in tomcat where you deploy to a nested directory.
For example:
when deploying two applications with paths:

/rest/api1
/rest/api2

Tomcat deploys as:
/path/to/my/war/rest#api1/WEB-INF/sitemesh.xml
/path/to/my/war/rest#api2/WEB-INF/sitemesh.xml

The deprecated toURL call omits everything after # and you get an error on startup.

@eschulma
eschulma commented Dec 6, 2015

I need this also...and I see there are two pull requests for the exact same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment