Commit afac13ca authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Fixed UnsupportedOperationException.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6226 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6394d712
...@@ -31,7 +31,6 @@ import java.security.cert.X509Certificate; ...@@ -31,7 +31,6 @@ import java.security.cert.X509Certificate;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Arrays;
/** /**
* Manages the instances of Jetty which provide the admin console funtionality and the HTTP binding * Manages the instances of Jetty which provide the admin console funtionality and the HTTP binding
...@@ -463,7 +462,10 @@ public class HttpServerManager { ...@@ -463,7 +462,10 @@ public class HttpServerManager {
toAdd.add(mapping); toAdd.add(mapping);
} }
List<ServletHolder> toAddServlets = Arrays.asList(handler.getServlets()); List<ServletHolder> toAddServlets = new ArrayList<ServletHolder>();
for(ServletHolder holder : handler.getServlets()) {
toAddServlets.add(holder);
}
toAddServlets.removeAll(httpBindContexts.keySet()); toAddServlets.removeAll(httpBindContexts.keySet());
handler.setServletMappings(toAdd.toArray(new ServletMapping[toAdd.size()])); handler.setServletMappings(toAdd.toArray(new ServletMapping[toAdd.size()]));
......
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