parent
eecf4cf555
commit
caa09ad2cc
|
@ -23,10 +23,12 @@ import org.eclipse.jetty.maven.MavenServerConnector;
|
|||
import org.eclipse.jetty.maven.PluginLog;
|
||||
import org.eclipse.jetty.security.LoginService;
|
||||
import org.eclipse.jetty.server.Connector;
|
||||
import org.eclipse.jetty.server.Handler;
|
||||
import org.eclipse.jetty.server.RequestLog;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.handler.ContextHandler;
|
||||
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
|
||||
import org.eclipse.jetty.server.handler.DefaultHandler;
|
||||
import org.eclipse.jetty.util.resource.ResourceFactory;
|
||||
import org.eclipse.jetty.xml.XmlConfiguration;
|
||||
|
||||
|
@ -56,6 +58,9 @@ public class ServerSupport
|
|||
if (requestLog != null)
|
||||
server.setRequestLog(requestLog);
|
||||
|
||||
if (server.getDefaultHandler() == null)
|
||||
server.setDefaultHandler(new DefaultHandler());
|
||||
|
||||
ContextHandlerCollection contexts = findContextHandlerCollection(server);
|
||||
if (contexts == null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue