adding error diagnostics as to where servlet API is loaded from.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5706 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-11-05 18:59:23 +00:00
1 parent e4f5c5579a
commit b9873621d5
3 files changed
+17 -3

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ public class WebAppMain implements ServletContextListener {
try {
ServletResponse.class.getMethod("setCharacterEncoding",String.class);
} catch (NoSuchMethodException e) {
context.setAttribute(APP,new IncompatibleServletVersionDetected());
context.setAttribute(APP,new IncompatibleServletVersionDetected(ServletResponse.class));
return;
}