Bug 472479 - [http whiteboard] Proxy servlet not properly initialized.
httpServiceRuntimeImpl is null
diff --git a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Activator.java b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Activator.java
index a0fe1f4..e4ecd05 100644
--- a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Activator.java
+++ b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/Activator.java
@@ -201,8 +201,12 @@
String contextPath = servletContext.getContextPath();
- ServletRegistration servletRegistration =
- servletContext.getServletRegistration(servletName);
+ ServletRegistration servletRegistration = null;
+ try {
+ servletRegistration = servletContext.getServletRegistration(servletName);
+ } catch (UnsupportedOperationException e) {
+ servletContext.log("Could not find the servlet registration for the servlet: " + servletName, e); //$NON-NLS-1$
+ }
if (servletRegistration == null) {
return new String[0];