Commit 12470508 authored by Andy Wilkinson's avatar Andy Wilkinson

Tolerate context root redirect not being configurable on Tomcat 7

Closes gh-13821
parent 7a000e68
......@@ -1049,7 +1049,12 @@ public class ServerProperties
@Override
public void customize(Context context) {
context.setMapperContextRootRedirectEnabled(redirectContextRoot);
try {
context.setMapperContextRootRedirectEnabled(redirectContextRoot);
}
catch (NoSuchMethodError ex) {
// Tomcat 7. Continue.
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment