Issue #1602 - Better tests for differences in deploy
+ Testing deploy modes: [Initial, Delayed] "Initial" is a deploy where the webapps exist in the monitored directory at startup. "Delayed" is a deploy where the Server is already started when a new webapp is added to the monitored deployment directory. + Webapp types: [Unavailable: True, False] This is the WebAppContext.isThrowUnavailableOnStartupException setting. + New DeploymentManager Node[FAILED] to assign to webapps that fail the deployment during the "Delayed" deployment scenario. Useful as a binding for hooking into failed deployments.
This commit is contained in:
parent
1998720719
commit
48123eefc6
|
@ -74,6 +74,7 @@ public class AppLifeCycle extends Graph
|
||||||
public static final String STARTED = "started";
|
public static final String STARTED = "started";
|
||||||
public static final String STOPPING = "stopping";
|
public static final String STOPPING = "stopping";
|
||||||
public static final String UNDEPLOYING = "undeploying";
|
public static final String UNDEPLOYING = "undeploying";
|
||||||
|
public static final String FAILED = "failed";
|
||||||
|
|
||||||
|
|
||||||
private Map<String, List<Binding>> lifecyclebindings = new HashMap<String, List<Binding>>();
|
private Map<String, List<Binding>> lifecyclebindings = new HashMap<String, List<Binding>>();
|
||||||
|
@ -97,6 +98,9 @@ public class AppLifeCycle extends Graph
|
||||||
// deployed -> undeployed
|
// deployed -> undeployed
|
||||||
addEdge(DEPLOYED,UNDEPLOYING);
|
addEdge(DEPLOYED,UNDEPLOYING);
|
||||||
addEdge(UNDEPLOYING,UNDEPLOYED);
|
addEdge(UNDEPLOYING,UNDEPLOYED);
|
||||||
|
|
||||||
|
// failed (unconnected)
|
||||||
|
addNode(new Node(FAILED));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addBinding(AppLifeCycle.Binding binding)
|
public void addBinding(AppLifeCycle.Binding binding)
|
||||||
|
|
|
@ -507,6 +507,17 @@ public class DeploymentManager extends ContainerLifeCycle
|
||||||
catch (Throwable t)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
LOG.warn("Unable to reach node goal: " + nodeName,t);
|
LOG.warn("Unable to reach node goal: " + nodeName,t);
|
||||||
|
// migrate to FAILED node
|
||||||
|
Node failed = _lifecycle.getNodeByName(AppLifeCycle.FAILED);
|
||||||
|
appentry.setLifeCycleNode(failed);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_lifecycle.runBindings(failed, appentry.app, this);
|
||||||
|
}
|
||||||
|
catch (Throwable ignore)
|
||||||
|
{
|
||||||
|
// The runBindings failed for 'failed' node, no point doing anything else here.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class StandardStarter implements AppLifeCycle.Binding
|
||||||
|
|
||||||
ContextHandler handler = app.getContextHandler();
|
ContextHandler handler = app.getContextHandler();
|
||||||
|
|
||||||
if (contexts.isRunning() && !handler.isRunning())
|
if (contexts.isStarted() && handler.isStopped())
|
||||||
{
|
{
|
||||||
// start the handler manually
|
// start the handler manually
|
||||||
handler.start();
|
handler.start();
|
||||||
|
|
|
@ -18,26 +18,33 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.test;
|
package org.eclipse.jetty.test;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.instanceOf;
|
|
||||||
import static org.hamcrest.Matchers.notNullValue;
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
import static org.hamcrest.Matchers.nullValue;
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
import static org.hamcrest.core.Is.is;
|
import static org.hamcrest.core.Is.is;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.CountDownLatch;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
import org.eclipse.jetty.client.HttpClient;
|
import org.eclipse.jetty.client.HttpClient;
|
||||||
import org.eclipse.jetty.client.api.ContentResponse;
|
import org.eclipse.jetty.client.api.ContentResponse;
|
||||||
import org.eclipse.jetty.deploy.App;
|
import org.eclipse.jetty.deploy.App;
|
||||||
|
import org.eclipse.jetty.deploy.AppLifeCycle;
|
||||||
import org.eclipse.jetty.deploy.DeploymentManager;
|
import org.eclipse.jetty.deploy.DeploymentManager;
|
||||||
|
import org.eclipse.jetty.deploy.graph.Node;
|
||||||
import org.eclipse.jetty.deploy.providers.WebAppProvider;
|
import org.eclipse.jetty.deploy.providers.WebAppProvider;
|
||||||
import org.eclipse.jetty.http.HttpMethod;
|
import org.eclipse.jetty.http.HttpMethod;
|
||||||
import org.eclipse.jetty.http.HttpStatus;
|
import org.eclipse.jetty.http.HttpStatus;
|
||||||
|
import org.eclipse.jetty.io.RuntimeIOException;
|
||||||
import org.eclipse.jetty.server.Handler;
|
import org.eclipse.jetty.server.Handler;
|
||||||
import org.eclipse.jetty.server.Server;
|
import org.eclipse.jetty.server.Server;
|
||||||
import org.eclipse.jetty.server.ServerConnector;
|
import org.eclipse.jetty.server.ServerConnector;
|
||||||
|
@ -45,26 +52,37 @@ import org.eclipse.jetty.server.handler.ContextHandler;
|
||||||
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
|
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
|
||||||
import org.eclipse.jetty.server.handler.DefaultHandler;
|
import org.eclipse.jetty.server.handler.DefaultHandler;
|
||||||
import org.eclipse.jetty.server.handler.HandlerCollection;
|
import org.eclipse.jetty.server.handler.HandlerCollection;
|
||||||
|
import org.eclipse.jetty.toolchain.test.FS;
|
||||||
|
import org.eclipse.jetty.toolchain.test.IO;
|
||||||
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
|
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
|
||||||
|
import org.eclipse.jetty.util.log.StacklessLogging;
|
||||||
import org.eclipse.jetty.util.resource.PathResource;
|
import org.eclipse.jetty.util.resource.PathResource;
|
||||||
import org.eclipse.jetty.webapp.AbstractConfiguration;
|
import org.eclipse.jetty.webapp.AbstractConfiguration;
|
||||||
import org.eclipse.jetty.webapp.Configuration;
|
import org.eclipse.jetty.webapp.Configuration;
|
||||||
import org.eclipse.jetty.webapp.WebAppContext;
|
import org.eclipse.jetty.webapp.WebAppContext;
|
||||||
import org.junit.AfterClass;
|
import org.junit.After;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.rules.ExpectedException;
|
||||||
|
import org.junit.rules.TestName;
|
||||||
|
|
||||||
public class DeploymentErrorTest
|
public class DeploymentErrorTest
|
||||||
{
|
{
|
||||||
private static Server server;
|
@Rule
|
||||||
private static DeploymentManager deploymentManager;
|
public ExpectedException expectedException = ExpectedException.none();
|
||||||
private static ContextHandlerCollection contexts;
|
|
||||||
|
|
||||||
@BeforeClass
|
@Rule
|
||||||
public static void setUpServer()
|
public TestName testname = new TestName();
|
||||||
{
|
|
||||||
try
|
private StacklessLogging stacklessLogging;
|
||||||
|
private Server server;
|
||||||
|
private DeploymentManager deploymentManager;
|
||||||
|
private ContextHandlerCollection contexts;
|
||||||
|
|
||||||
|
public Path startServer(Consumer<Path> docrootSetupConsumer) throws Exception
|
||||||
{
|
{
|
||||||
|
stacklessLogging = new StacklessLogging(WebAppContext.class, DeploymentManager.class, NoClassDefFoundError.class);
|
||||||
|
|
||||||
server = new Server();
|
server = new Server();
|
||||||
ServerConnector connector = new ServerConnector(server);
|
ServerConnector connector = new ServerConnector(server);
|
||||||
connector.setPort(0);
|
connector.setPort(0);
|
||||||
|
@ -78,10 +96,18 @@ public class DeploymentErrorTest
|
||||||
deploymentManager.setContexts(contexts);
|
deploymentManager.setContexts(contexts);
|
||||||
Path testClasses = MavenTestingUtils.getTargetPath("test-classes");
|
Path testClasses = MavenTestingUtils.getTargetPath("test-classes");
|
||||||
System.setProperty("maven.test.classes", testClasses.toAbsolutePath().toString());
|
System.setProperty("maven.test.classes", testClasses.toAbsolutePath().toString());
|
||||||
Path docroots = MavenTestingUtils.getTestResourcePathDir("docroots");
|
|
||||||
|
Path docroots = MavenTestingUtils.getTargetTestingPath(DeploymentErrorTest.class, testname.getMethodName());
|
||||||
|
FS.ensureEmpty(docroots);
|
||||||
|
|
||||||
|
if (docrootSetupConsumer != null)
|
||||||
|
{
|
||||||
|
docrootSetupConsumer.accept(docroots);
|
||||||
|
}
|
||||||
|
|
||||||
System.setProperty("test.docroots", docroots.toAbsolutePath().toString());
|
System.setProperty("test.docroots", docroots.toAbsolutePath().toString());
|
||||||
WebAppProvider appProvider = new WebAppProvider();
|
WebAppProvider appProvider = new WebAppProvider();
|
||||||
appProvider.setMonitoredDirResource(new PathResource(docroots.resolve("deployerror")));
|
appProvider.setMonitoredDirResource(new PathResource(docroots));
|
||||||
appProvider.setScanInterval(1);
|
appProvider.setScanInterval(1);
|
||||||
deploymentManager.addAppProvider(appProvider);
|
deploymentManager.addAppProvider(appProvider);
|
||||||
server.addBean(deploymentManager);
|
server.addBean(deploymentManager);
|
||||||
|
@ -108,26 +134,109 @@ public class DeploymentErrorTest
|
||||||
TrackedConfiguration.class.getName());
|
TrackedConfiguration.class.getName());
|
||||||
|
|
||||||
server.start();
|
server.start();
|
||||||
}
|
return docroots;
|
||||||
catch (final Exception e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@After
|
||||||
public static void tearDownServer() throws Exception
|
public void tearDownServer() throws Exception
|
||||||
{
|
{
|
||||||
|
if (stacklessLogging != null)
|
||||||
|
stacklessLogging.close();
|
||||||
server.stop();
|
server.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
private void copyBadApp(String sourceXml, Path docroots)
|
||||||
public void testErrorDeploy_ThrowUnavailableTrue() throws Exception
|
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
File deployErrorSrc = MavenTestingUtils.getTestResourceDir("docroots/deployerror");
|
||||||
|
IO.copy(new File(deployErrorSrc, sourceXml), docroots.resolve("badapp.xml").toFile());
|
||||||
|
File badappDir = new File(deployErrorSrc, "badapp");
|
||||||
|
File badappDest = docroots.resolve("badapp").toFile();
|
||||||
|
FS.ensureDirExists(badappDest);
|
||||||
|
IO.copyDir(badappDir, badappDest);
|
||||||
|
}
|
||||||
|
catch (IOException e)
|
||||||
|
{
|
||||||
|
throw new RuntimeIOException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test of a server startup, where a DeploymentManager has a WebAppProvider pointing
|
||||||
|
* to a directory that already has a webapp that will deploy with an error.
|
||||||
|
* The webapp is a WebAppContext with {@code throwUnavailableOnStartupException=true;}.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testInitial_BadApp_UnavailableTrue() throws Exception
|
||||||
|
{
|
||||||
|
expectedException.expect(NoClassDefFoundError.class);
|
||||||
|
startServer(docroots -> copyBadApp("badapp.xml", docroots));
|
||||||
|
|
||||||
|
// The above should have prevented the server from starting.
|
||||||
|
assertThat("server.isRunning", server.isRunning(), is(false));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test of a server startup, where a DeploymentManager has a WebAppProvider pointing
|
||||||
|
* to a directory that already has a webapp that will deploy with an error.
|
||||||
|
* The webapp is a WebAppContext with {@code throwUnavailableOnStartupException=false;}.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testInitial_BadApp_UnavailableFalse() throws Exception
|
||||||
|
{
|
||||||
|
startServer(docroots -> copyBadApp("badapp-unavailable-false.xml", docroots));
|
||||||
|
|
||||||
List<App> apps = new ArrayList<>();
|
List<App> apps = new ArrayList<>();
|
||||||
apps.addAll(deploymentManager.getApps());
|
apps.addAll(deploymentManager.getApps());
|
||||||
assertThat("Apps tracked", apps.size(), is(2));
|
assertThat("Apps tracked", apps.size(), is(1));
|
||||||
|
String contextPath = "/badapp-uaf";
|
||||||
|
App app = findApp(contextPath, apps);
|
||||||
|
ContextHandler context = app.getContextHandler();
|
||||||
|
assertThat("ContextHandler.isStarted", context.isStarted(), is(true));
|
||||||
|
assertThat("ContextHandler.isFailed", context.isFailed(), is(false));
|
||||||
|
assertThat("ContextHandler.isAvailable", context.isAvailable(), is(false));
|
||||||
|
WebAppContext webapp = (WebAppContext) context;
|
||||||
|
TrackedConfiguration trackedConfiguration = null;
|
||||||
|
for (Configuration webappConfig : webapp.getConfigurations())
|
||||||
|
{
|
||||||
|
if (webappConfig instanceof TrackedConfiguration)
|
||||||
|
trackedConfiguration = (TrackedConfiguration) webappConfig;
|
||||||
|
}
|
||||||
|
assertThat("webapp TrackedConfiguration exists", trackedConfiguration, notNullValue());
|
||||||
|
assertThat("trackedConfig.preConfigureCount", trackedConfiguration.preConfigureCounts.get(contextPath), is(1));
|
||||||
|
assertThat("trackedConfig.configureCount", trackedConfiguration.configureCounts.get(contextPath), is(1));
|
||||||
|
// NOTE: Failure occurs during configure, so postConfigure never runs.
|
||||||
|
assertThat("trackedConfig.postConfigureCount", trackedConfiguration.postConfigureCounts.get(contextPath), nullValue());
|
||||||
|
|
||||||
|
assertHttpState(contextPath, HttpStatus.SERVICE_UNAVAILABLE_503);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test of a server startup, where a DeploymentManager has a WebAppProvider pointing
|
||||||
|
* to a directory that already has no initial webapps that will deploy.
|
||||||
|
* A webapp is added (by filesystem copies) into the monitored docroot.
|
||||||
|
* The webapp will have a deployment error.
|
||||||
|
* The webapp is a WebAppContext with {@code throwUnavailableOnStartupException=true;}.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testDelayedAdd_BadApp_UnavailableTrue() throws Exception
|
||||||
|
{
|
||||||
|
Path docroots = startServer(null);
|
||||||
|
|
||||||
String contextPath = "/badapp";
|
String contextPath = "/badapp";
|
||||||
|
AppLifeCycleTrackingBinding startTracking = new AppLifeCycleTrackingBinding(contextPath);
|
||||||
|
DeploymentManager deploymentManager = server.getBean(DeploymentManager.class);
|
||||||
|
deploymentManager.addLifeCycleBinding(startTracking);
|
||||||
|
|
||||||
|
copyBadApp("badapp.xml", docroots);
|
||||||
|
|
||||||
|
// Wait for deployment manager to do its thing
|
||||||
|
assertThat("AppLifeCycle.FAILED event occurred", startTracking.failedLatch.await(3, TimeUnit.SECONDS), is(true));
|
||||||
|
|
||||||
|
List<App> apps = new ArrayList<>();
|
||||||
|
apps.addAll(deploymentManager.getApps());
|
||||||
|
assertThat("Apps tracked", apps.size(), is(1));
|
||||||
App app = findApp(contextPath, apps);
|
App app = findApp(contextPath, apps);
|
||||||
ContextHandler context = app.getContextHandler();
|
ContextHandler context = app.getContextHandler();
|
||||||
assertThat("ContextHandler.isStarted", context.isStarted(), is(false));
|
assertThat("ContextHandler.isStarted", context.isStarted(), is(false));
|
||||||
|
@ -149,13 +258,31 @@ public class DeploymentErrorTest
|
||||||
assertHttpState(contextPath, HttpStatus.NOT_FOUND_404);
|
assertHttpState(contextPath, HttpStatus.NOT_FOUND_404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test of a server startup, where a DeploymentManager has a WebAppProvider pointing
|
||||||
|
* to a directory that already has no initial webapps that will deploy.
|
||||||
|
* A webapp is added (by filesystem copies) into the monitored docroot.
|
||||||
|
* The webapp will have a deployment error.
|
||||||
|
* The webapp is a WebAppContext with {@code throwUnavailableOnStartupException=false;}.
|
||||||
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testErrorDeploy_ThrowUnavailableFalse() throws Exception
|
public void testDelayedAdd_BadApp_UnavailableFalse() throws Exception
|
||||||
{
|
{
|
||||||
|
Path docroots = startServer(null);
|
||||||
|
|
||||||
|
String contextPath = "/badapp-uaf";
|
||||||
|
AppLifeCycleTrackingBinding startTracking = new AppLifeCycleTrackingBinding(contextPath);
|
||||||
|
DeploymentManager deploymentManager = server.getBean(DeploymentManager.class);
|
||||||
|
deploymentManager.addLifeCycleBinding(startTracking);
|
||||||
|
|
||||||
|
copyBadApp("badapp-unavailable-false.xml", docroots);
|
||||||
|
|
||||||
|
// Wait for deployment manager to do its thing
|
||||||
|
startTracking.startedLatch.await(3, TimeUnit.SECONDS);
|
||||||
|
|
||||||
List<App> apps = new ArrayList<>();
|
List<App> apps = new ArrayList<>();
|
||||||
apps.addAll(deploymentManager.getApps());
|
apps.addAll(deploymentManager.getApps());
|
||||||
assertThat("Apps tracked", apps.size(), is(2));
|
assertThat("Apps tracked", apps.size(), is(1));
|
||||||
String contextPath = "/badapp-uaf";
|
|
||||||
App app = findApp(contextPath, apps);
|
App app = findApp(contextPath, apps);
|
||||||
ContextHandler context = app.getContextHandler();
|
ContextHandler context = app.getContextHandler();
|
||||||
assertThat("ContextHandler.isStarted", context.isStarted(), is(true));
|
assertThat("ContextHandler.isStarted", context.isStarted(), is(true));
|
||||||
|
@ -193,21 +320,6 @@ public class DeploymentErrorTest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testContextHandlerCollection()
|
|
||||||
{
|
|
||||||
Handler handlers[] = contexts.getHandlers();
|
|
||||||
assertThat("ContextHandlerCollection.Handlers.length", handlers.length, is(2));
|
|
||||||
|
|
||||||
// Verify that both handlers are unavailable
|
|
||||||
for(Handler handler: handlers)
|
|
||||||
{
|
|
||||||
assertThat("Handler", handler, instanceOf(ContextHandler.class));
|
|
||||||
ContextHandler contextHandler = (ContextHandler) handler;
|
|
||||||
assertThat("ContextHandler.isAvailable", contextHandler.isAvailable(), is(false));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private App findApp(String contextPath, List<App> apps)
|
private App findApp(String contextPath, List<App> apps)
|
||||||
{
|
{
|
||||||
for (App app : apps)
|
for (App app : apps)
|
||||||
|
@ -253,4 +365,43 @@ public class DeploymentErrorTest
|
||||||
incrementCount(context, postConfigureCounts);
|
incrementCount(context, postConfigureCounts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class AppLifeCycleTrackingBinding implements AppLifeCycle.Binding
|
||||||
|
{
|
||||||
|
public final CountDownLatch startingLatch = new CountDownLatch(1);
|
||||||
|
public final CountDownLatch startedLatch = new CountDownLatch(1);
|
||||||
|
public final CountDownLatch failedLatch = new CountDownLatch(1);
|
||||||
|
private final String expectedContextPath;
|
||||||
|
|
||||||
|
public AppLifeCycleTrackingBinding(String expectedContextPath)
|
||||||
|
{
|
||||||
|
this.expectedContextPath = expectedContextPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String[] getBindingTargets()
|
||||||
|
{
|
||||||
|
return new String[]{AppLifeCycle.STARTING, AppLifeCycle.STARTED, AppLifeCycle.FAILED};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void processBinding(Node node, App app)
|
||||||
|
{
|
||||||
|
if (app.getContextPath().equalsIgnoreCase(expectedContextPath))
|
||||||
|
{
|
||||||
|
if (node.getName().equalsIgnoreCase(AppLifeCycle.STARTING))
|
||||||
|
{
|
||||||
|
startingLatch.countDown();
|
||||||
|
}
|
||||||
|
else if (node.getName().equalsIgnoreCase(AppLifeCycle.STARTED))
|
||||||
|
{
|
||||||
|
startedLatch.countDown();
|
||||||
|
}
|
||||||
|
else if (node.getName().equalsIgnoreCase(AppLifeCycle.FAILED))
|
||||||
|
{
|
||||||
|
failedLatch.countDown();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
||||||
<Set name="contextPath">/badapp-uaf</Set>
|
<Set name="contextPath">/badapp-uaf</Set>
|
||||||
<Set name="war"><SystemProperty name="test.docroots"/>/deployerror/badapp/</Set>
|
<Set name="war"><SystemProperty name="test.docroots"/>/badapp/</Set>
|
||||||
<Set name="extraClasspath"><SystemProperty name="maven.test.classes"/></Set>
|
<Set name="extraClasspath"><SystemProperty name="maven.test.classes"/></Set>
|
||||||
<Set name="throwUnavailableOnStartupException">false</Set> <!-- Intentionally set to false to test behavior -->
|
<Set name="throwUnavailableOnStartupException">false</Set> <!-- Intentionally set to false to test behavior -->
|
||||||
<Call name="setAttribute">
|
<Call name="setAttribute">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
||||||
<Set name="contextPath">/badapp</Set>
|
<Set name="contextPath">/badapp</Set>
|
||||||
<Set name="war"><SystemProperty name="test.docroots"/>/deployerror/badapp/</Set>
|
<Set name="war"><SystemProperty name="test.docroots"/>/badapp/</Set>
|
||||||
<Set name="extraClasspath"><SystemProperty name="maven.test.classes"/></Set>
|
<Set name="extraClasspath"><SystemProperty name="maven.test.classes"/></Set>
|
||||||
<Set name="throwUnavailableOnStartupException">true</Set>
|
<Set name="throwUnavailableOnStartupException">true</Set>
|
||||||
<Call name="setAttribute">
|
<Call name="setAttribute">
|
||||||
|
|
Loading…
Reference in New Issue