JettyEmbedded needs a Server instance earlier for applyXmlConfigurations and its ResourceFactory to operate properly
This commit is contained in:
parent
fe21198499
commit
fee8f2b4f4
|
@ -246,14 +246,11 @@ public class JettyEmbedder extends AbstractLifeCycle
|
|||
private void configure() throws Exception
|
||||
{
|
||||
// apply any configs from jetty.xml files first
|
||||
Server tmp = ServerSupport.applyXmlConfigurations(server, jettyXmlFiles, jettyProperties);
|
||||
Server tmp = ServerSupport.applyXmlConfigurations(new Server(), jettyXmlFiles, jettyProperties);
|
||||
|
||||
if (tmp != null)
|
||||
server = tmp;
|
||||
|
||||
if (server == null)
|
||||
server = new Server();
|
||||
|
||||
server.setStopAtShutdown(stopAtShutdown);
|
||||
|
||||
//ensure there's a connector
|
||||
|
|
|
@ -246,14 +246,11 @@ public class JettyEmbedder extends ContainerLifeCycle
|
|||
private void configure() throws Exception
|
||||
{
|
||||
//apply any configs from jetty.xml files first
|
||||
Server tmp = ServerSupport.applyXmlConfigurations(server, jettyXmlFiles, jettyProperties);
|
||||
Server tmp = ServerSupport.applyXmlConfigurations(new Server(), jettyXmlFiles, jettyProperties);
|
||||
|
||||
if (tmp != null)
|
||||
server = tmp;
|
||||
|
||||
if (server == null)
|
||||
server = new Server();
|
||||
|
||||
server.setStopAtShutdown(stopAtShutdown);
|
||||
|
||||
//ensure there's a connector
|
||||
|
|
Loading…
Reference in New Issue