Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2012-11-09 20:24:53 +0000
committerThomas Watson2012-11-09 20:24:53 +0000
commitf2af8d39c36d377c1774d648c21a00f7c2fdb49c (patch)
treeefdcaeb52593d579af09dfa02a89ca5fc1f0a149
parentc57232c0d071ba6cc0d7636782ada02c6fcc8b02 (diff)
downloadrt.equinox.bundles-f2af8d39c36d377c1774d648c21a00f7c2fdb49c.tar.gz
rt.equinox.bundles-f2af8d39c36d377c1774d648c21a00f7c2fdb49c.tar.xz
rt.equinox.bundles-f2af8d39c36d377c1774d648c21a00f7c2fdb49c.zip
Bug 393218 - XML schema files with .xsd extension are not transformed in Eclipse help server (Jetty)v20121109-202453I20121127-0800I20121120-0800I20121113-0800
-rwxr-xr-xbundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF2
-rwxr-xr-xbundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF
index 5804fa4fa..deb06c33e 100755
--- a/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF
@@ -4,7 +4,7 @@ Bundle-Name: %bundleName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.equinox.http.jetty
-Bundle-Version: 3.0.0.qualifier
+Bundle-Version: 3.0.100.qualifier
Bundle-Activator: org.eclipse.equinox.http.jetty.internal.Activator
Import-Package: javax.servlet;version="[2.6.0,4.0.0)",
javax.servlet.http;version="[2.6.0,4.0.0)",
diff --git a/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java b/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java
index 9f409c834..c9224bde8 100755
--- a/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java
+++ b/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java
@@ -299,6 +299,8 @@ public class HttpServerManager implements ManagedServiceFactory {
private ServletContextHandler createHttpContext(@SuppressWarnings("rawtypes") Dictionary dictionary) {
ServletContextHandler httpContext = new ServletContextHandler();
+ // hack in the mime type for xsd until jetty fixes it (bug 393218)
+ httpContext.getMimeTypes().addMimeMapping("xsd", "application/xml"); //$NON-NLS-1$ //$NON-NLS-2$
httpContext.setAttribute(INTERNAL_CONTEXT_CLASSLOADER, Thread.currentThread().getContextClassLoader());
httpContext.setClassLoader(this.getClass().getClassLoader());

Back to the top