mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
implemented 1.66.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1279 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
0a05b42876
commit
ef2c53d43a
3 files changed
+36
No files matched your search
@@ -7,6 +7,7 @@ import hudson.model.User;
|
||||
import hudson.triggers.Trigger;
|
||||
import hudson.util.IncompatibleVMDetected;
|
||||
import hudson.util.RingBufferLogHandler;
|
||||
import hudson.util.IncompatibleServletVersionDetected;
|
||||
|
||||
import javax.naming.Context;
|
||||
import javax.naming.InitialContext;
|
||||
@@ -14,6 +15,7 @@ import javax.naming.NamingException;
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletContextEvent;
|
||||
import javax.servlet.ServletContextListener;
|
||||
import javax.servlet.ServletResponse;
|
||||
import javax.xml.transform.TransformerFactory;
|
||||
import javax.xml.transform.TransformerFactoryConfigurationError;
|
||||
import java.io.File;
|
||||
@@ -50,6 +52,14 @@ public class WebAppMain implements ServletContextListener {
|
||||
return;
|
||||
}
|
||||
|
||||
// make sure this is servlet 2.4 container or above
|
||||
try {
|
||||
ServletResponse.class.getMethod("setCharacterEncoding",String.class);
|
||||
} catch (NoSuchMethodException e) {
|
||||
context.setAttribute("app,",new IncompatibleServletVersionDetected());
|
||||
return;
|
||||
}
|
||||
|
||||
// Tomcat breaks XSLT with JDK 5.0 and onward. Check if that's the case, and if so,
|
||||
// try to correct it
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user