From 8bbbb2ff54956f15b64a8f417b368ad4ea5cf935 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 10 Jun 2015 10:42:40 -0700 Subject: [PATCH] 469860 - Add module metadata versioning to support backwards compat + Added [version] section support to start.jar + Updated start testing to use as-is distro configuration for test cases --- .../java/org/eclipse/jetty/start/Main.java | 13 +- .../java/org/eclipse/jetty/start/Module.java | 42 +- .../org/eclipse/jetty/start/StartArgs.java | 118 ++-- .../java/org/eclipse/jetty/start/Version.java | 69 ++- .../org/eclipse/jetty/start/MainTest.java | 8 +- .../org/eclipse/jetty/start/ModulesTest.java | 4 + .../jetty/start/PropertyPassingTest.java | 5 +- .../eclipse/jetty/start/TestBadUseCases.java | 6 + .../org/eclipse/jetty/start/TestUseCases.java | 4 + .../org/eclipse/jetty/start/VersionTest.java | 35 +- .../start/util/RebuildTestResources.java | 4 +- .../test/resources/assert-home-with-http2.txt | 68 +-- .../test/resources/assert-home-with-jvm.txt | 46 +- .../src/test/resources/assert-home.txt | 46 +- .../jetty-infinispan.xml} | 0 .../jetty-jdbc-sessions.xml} | 0 .../jetty-nosql.xml} | 0 .../jetty-ssl-context.xml} | 0 .../resources/dist-home/etc/webdefault.xml | 534 ------------------ .../org.eclipse.jetty.apache-jsp-9.3.jar} | 0 ...rg.mortbay.jasper.apache-el-8.0.20.M0.jar} | 0 ...g.mortbay.jasper.apache-jsp-8.0.20.M0.jar} | 0 ...http2-server-TEST.jar => cdi-core-9.3.jar} | 0 ...pn-server-TEST.jar => cdi-servlet-9.3.jar} | 0 ...tations-TEST.jar => cdi-websocket-9.3.jar} | 0 .../fcgi-client-9.3.jar} | 0 .../fcgi-server-9.3.jar} | 0 .../http2-common-9.3.jar} | 0 .../http2-hpack-9.3.jar} | 0 .../http2-server-9.3.jar} | 0 ...-io-TEST.jar => jetty-alpn-server-9.3.jar} | 0 ...aas-TEST.jar => jetty-annotations-9.3.jar} | 0 ...ty-jaspi-TEST.jar => jetty-client-9.3.jar} | 0 ...mx-TEST.jar => jetty-continuation-9.3.jar} | 0 ...tty-jndi-TEST.jar => jetty-deploy-9.3.jar} | 0 ...jetty-plus-TEST.jar => jetty-http-9.3.jar} | 0 ...roxy-TEST.jar => jetty-infinispan-9.3.jar} | 0 ...y-quickstart-TEST.jar => jetty-io-9.3.jar} | 0 ...ty-rewrite-TEST.jar => jetty-jaas-9.3.jar} | 0 ...-security-TEST.jar => jetty-jaspi-9.3.jar} | 0 ...etty-server-TEST.jar => jetty-jmx-9.3.jar} | 0 ...ty-servlet-TEST.jar => jetty-jndi-9.3.jar} | 0 ...-servlets-TEST.jar => jetty-nosql-9.3.jar} | 0 ...jetty-util-TEST.jar => jetty-plus-9.3.jar} | 0 ...ty-webapp-TEST.jar => jetty-proxy-9.3.jar} | 0 ...-xml-TEST.jar => jetty-quickstart-9.3.jar} | 0 ...monitor-TEST.jar => jetty-rewrite-9.3.jar} | 0 ...-java-1.0.1.jar => jetty-security-9.3.jar} | 0 ...y-spring-TEST.jar => jetty-server-9.3.jar} | 0 ...nt-impl-TEST.jar => jetty-servlet-9.3.jar} | 0 ...r-impl-TEST.jar => jetty-servlets-9.3.jar} | 0 ...socket-api-TEST.jar => jetty-util-9.3.jar} | 0 ...t-client-TEST.jar => jetty-webapp-9.3.jar} | 0 ...cket-common-TEST.jar => jetty-xml-9.3.jar} | 0 .../jetty-monitor-9.3.jar} | 0 .../jetty-setuid-java-1.0.3.jar} | 0 .../dist-home/lib/spring/jetty-spring-9.3.jar | 0 .../javax-websocket-client-impl-9.3.jar | 0 .../javax-websocket-server-impl-9.3.jar | 0 .../lib/websocket/websocket-api-9.3.jar | 0 .../lib/websocket/websocket-client-9.3.jar | 0 .../lib/websocket/websocket-common-9.3.jar | 0 .../lib/websocket/websocket-server-9.3.jar | 0 .../lib/websocket/websocket-servlet-9.3.jar | 0 .../test/resources/dist-home/modules/alpn.mod | 2 +- .../test/resources/dist-home/modules/cdi.mod | 20 +- .../test/resources/dist-home/modules/http.mod | 2 +- .../resources/dist-home/modules/https.mod | 3 + .../dist-home/modules/infinispan.mod | 35 ++ .../dist-home/modules/jdbc-sessions.mod | 27 + .../resources/dist-home/modules/nosql.mod | 32 ++ .../test/resources/dist-home/modules/ssl.mod | 39 +- .../usecases/agent-properties.assert.txt | 12 +- .../resources/usecases/barebones.assert.txt | 10 +- .../usecases/basic-properties.assert.txt | 10 +- .../resources/usecases/database.assert.txt | 22 +- .../resources/usecases/deep-ext.assert.txt | 10 +- .../test/resources/usecases/http2.assert.txt | 41 +- .../include-jetty-dir-logging.assert.txt | 12 +- .../test/resources/usecases/jmx.assert.txt | 12 +- .../test/resources/usecases/jsp.assert.txt | 28 +- .../resources/usecases/logging.assert.txt | 10 +- .../modules/http.mod | 39 ++ .../modules/http3.mod | 10 + .../versioned-modules-too-new/start.ini | 6 + .../usecases/versioned-modules.assert.txt | 16 + .../versioned-modules/modules/http.mod | 39 ++ .../versioned-modules/modules/http3.mod | 12 + .../usecases/versioned-modules/start.ini | 5 + 89 files changed, 641 insertions(+), 815 deletions(-) rename jetty-start/src/test/resources/dist-home/{lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar => etc/jetty-infinispan.xml} (100%) rename jetty-start/src/test/resources/dist-home/{lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar => etc/jetty-jdbc-sessions.xml} (100%) rename jetty-start/src/test/resources/dist-home/{lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar => etc/jetty-nosql.xml} (100%) rename jetty-start/src/test/resources/dist-home/{lib/fcgi/fcgi-client-TEST.jar => etc/jetty-ssl-context.xml} (100%) rename jetty-start/src/test/resources/dist-home/lib/{fcgi/fcgi-server-TEST.jar => apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{http2/http2-common-TEST.jar => apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{http2/http2-hpack-TEST.jar => apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{http2/http2-server-TEST.jar => cdi-core-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-alpn-server-TEST.jar => cdi-servlet-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-annotations-TEST.jar => cdi-websocket-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-cdi-TEST.jar => fcgi/fcgi-client-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-client-TEST.jar => fcgi/fcgi-server-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-continuation-TEST.jar => http2/http2-common-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-deploy-TEST.jar => http2/http2-hpack-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-http-TEST.jar => http2/http2-server-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-io-TEST.jar => jetty-alpn-server-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-jaas-TEST.jar => jetty-annotations-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-jaspi-TEST.jar => jetty-client-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-jmx-TEST.jar => jetty-continuation-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-jndi-TEST.jar => jetty-deploy-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-plus-TEST.jar => jetty-http-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-proxy-TEST.jar => jetty-infinispan-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-quickstart-TEST.jar => jetty-io-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-rewrite-TEST.jar => jetty-jaas-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-security-TEST.jar => jetty-jaspi-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-server-TEST.jar => jetty-jmx-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-servlet-TEST.jar => jetty-jndi-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-servlets-TEST.jar => jetty-nosql-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-util-TEST.jar => jetty-plus-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-webapp-TEST.jar => jetty-proxy-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{jetty-xml-TEST.jar => jetty-quickstart-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{monitor/jetty-monitor-TEST.jar => jetty-rewrite-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{setuid/jetty-setuid-java-1.0.1.jar => jetty-security-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{spring/jetty-spring-TEST.jar => jetty-server-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/javax-websocket-client-impl-TEST.jar => jetty-servlet-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/javax-websocket-server-impl-TEST.jar => jetty-servlets-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/websocket-api-TEST.jar => jetty-util-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/websocket-client-TEST.jar => jetty-webapp-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/websocket-common-TEST.jar => jetty-xml-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/websocket-server-TEST.jar => monitor/jetty-monitor-9.3.jar} (100%) rename jetty-start/src/test/resources/dist-home/lib/{websocket/websocket-servlet-TEST.jar => setuid/jetty-setuid-java-1.0.3.jar} (100%) create mode 100644 jetty-start/src/test/resources/dist-home/lib/spring/jetty-spring-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-client-impl-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-server-impl-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/websocket-api-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/websocket-client-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/websocket-common-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/websocket-server-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/lib/websocket/websocket-servlet-9.3.jar create mode 100644 jetty-start/src/test/resources/dist-home/modules/infinispan.mod create mode 100644 jetty-start/src/test/resources/dist-home/modules/jdbc-sessions.mod create mode 100644 jetty-start/src/test/resources/dist-home/modules/nosql.mod create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http.mod create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http3.mod create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules-too-new/start.ini create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules.assert.txt create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules/modules/http.mod create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules/modules/http3.mod create mode 100644 jetty-start/src/test/resources/usecases/versioned-modules/start.ini diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java index 10c3a068707..192affe0a98 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java @@ -237,7 +237,7 @@ public class Main args.dumpActiveXmls(baseHome); } - private void listModules(StartArgs args) + public void listModules(StartArgs args) { StartLog.endStartLog(); System.out.println(); @@ -309,6 +309,17 @@ public class Main args.setAllModules(modules); List activeModules = modules.getSelected(); + final Version START_VERSION = new Version(StartArgs.VERSION); + + for(Module enabled: activeModules) + { + if(enabled.getVersion().isNewerThan(START_VERSION)) + { + throw new UsageException(UsageException.ERR_BAD_GRAPH, "Module [" + enabled.getName() + "] specifies jetty version [" + enabled.getVersion() + + "] which is newer than this version of jetty [" + START_VERSION + "]"); + } + } + for(String name: args.getSkipFileValidationModules()) { Module module = modules.get(name); diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java index 48c4384517f..54662642cf1 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java @@ -40,6 +40,8 @@ import org.eclipse.jetty.start.graph.Node; */ public class Module extends Node { + private static final String VERSION_UNSPECIFIED = "9.2"; + public static class NameComparator implements Comparator { private Collator collator = Collator.getInstance(); @@ -59,11 +61,18 @@ public class Module extends Node /** The name of this Module (as a filesystem reference) */ private String fileRef; + + /** The version of Jetty the module supports */ + private Version version; /** List of xml configurations for this Module */ private List xmls; /** List of ini template lines */ + private List iniTemplate; + private boolean hasIniTemplate = false; + + /** List of default config */ private List defaultConfig; private boolean hasDefaultConfig = false; @@ -139,6 +148,11 @@ public class Module extends Node { return defaultConfig; } + + public List getIniTemplate() + { + return iniTemplate; + } public List getFiles() { @@ -174,11 +188,21 @@ public class Module extends Node { return xmls; } + + public Version getVersion() + { + return version; + } public boolean hasDefaultConfig() { return hasDefaultConfig; } + + public boolean hasIniTemplate() + { + return hasIniTemplate; + } @Override public int hashCode() @@ -198,6 +222,7 @@ public class Module extends Node { xmls = new ArrayList<>(); defaultConfig = new ArrayList<>(); + iniTemplate = new ArrayList<>(); libs = new ArrayList<>(); files = new ArrayList<>(); jvmArgs = new ArrayList<>(); @@ -283,10 +308,13 @@ public class Module extends Node files.add(line); break; case "DEFAULTS": - case "INI-TEMPLATE": defaultConfig.add(line); hasDefaultConfig = true; break; + case "INI-TEMPLATE": + iniTemplate.add(line); + hasIniTemplate = true; + break; case "LIB": libs.add(line); break; @@ -303,6 +331,13 @@ public class Module extends Node case "EXEC": jvmArgs.add(line); break; + case "VERSION": + if (version != null) + { + throw new IOException("[version] already specified"); + } + version = new Version(line); + break; case "XML": xmls.add(line); break; @@ -313,6 +348,11 @@ public class Module extends Node } } } + + if (version == null) + { + version = new Version(VERSION_UNSPECIFIED); + } } public void setEnabled(boolean enabled) diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java b/jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java index 6e52a5a42fb..ac84069cd38 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java @@ -67,13 +67,13 @@ public class StartArgs if (ver == null) { - ver = "TEST"; + ver = "0.0"; if (tag == null) { tag = "master"; } } - + if (tag == null || tag.contains("-SNAPSHOT")) { tag = "master"; @@ -88,25 +88,25 @@ public class StartArgs /** List of enabled modules */ private Set modules = new HashSet<>(); - + /** List of modules to skip [files] section validation */ private Set skipFileValidationModules = new HashSet<>(); - + /** Map of enabled modules to the source of where that activation occurred */ private Map> sources = new HashMap<>(); - + /** Map of properties to where that property was declared */ private Map propertySource = new HashMap<>(); - + /** List of all active [files] sections from enabled modules */ private List files = new ArrayList<>(); - + /** List of all active [lib] sections from enabled modules */ private Classpath classpath; - + /** List of all active [xml] sections from enabled modules */ private List xmls = new ArrayList<>(); - + /** JVM arguments, found via commmand line and in all active [exec] sections from enabled modules */ private List jvmArgs = new ArrayList<>(); @@ -115,7 +115,7 @@ public class StartArgs /** List of all property references found directly on command line or start.ini */ private List propertyFileRefs = new ArrayList<>(); - + /** List of all property files */ private List propertyFiles = new ArrayList<>(); @@ -137,12 +137,12 @@ public class StartArgs private Modules allModules; /** Should the server be run? */ private boolean run = true; - + /** Download related args */ private boolean download = false; private boolean licenseCheckRequired = false; private boolean testingMode = false; - + private boolean help = false; private boolean stopCommand = false; private boolean listModules = false; @@ -161,13 +161,13 @@ public class StartArgs private void addFile(Module module, String uriLocation) { - if(module.isSkipFilesValidation()) + if (module.isSkipFilesValidation()) { StartLog.debug("Not validating %s [files] for %s",module,uriLocation); return; } - - FileArg arg = new FileArg(module, properties.expand(uriLocation)); + + FileArg arg = new FileArg(module,properties.expand(uriLocation)); if (!files.contains(arg)) { files.add(arg); @@ -192,7 +192,7 @@ public class StartArgs xmls.add(xmlfile); } } - + private void addUniquePropertyFile(String propertyFileRef, Path propertyFile) throws IOException { if (!FS.canReadFile(propertyFile)) @@ -249,7 +249,7 @@ public class StartArgs dumpProperty("jetty.tag.version"); dumpProperty("jetty.home"); dumpProperty("jetty.base"); - + // Jetty Configuration Environment System.out.println(); System.out.println("Config Search Order:"); @@ -267,7 +267,7 @@ public class StartArgs } System.out.println(); } - + // Jetty Se System.out.println(); } @@ -380,7 +380,8 @@ public class StartArgs } /** - * Ensure that the System Properties are set (if defined as a System property, or start.config property, or start.ini property) + * Ensure that the System Properties are set (if defined as a System property, or start.config property, or + * start.ini property) * * @param key * the key to be sure of @@ -408,8 +409,10 @@ public class StartArgs /** * Expand any command line added --lib lib references. * - * @param baseHome the base home in use - * @throws IOException if unable to expand the libraries + * @param baseHome + * the base home in use + * @throws IOException + * if unable to expand the libraries */ public void expandLibs(BaseHome baseHome) throws IOException { @@ -419,10 +422,10 @@ public class StartArgs StartLog.debug("rawlibref = " + rawlibref); String libref = properties.expand(rawlibref); StartLog.debug("expanded = " + libref); - + // perform path escaping (needed by windows) libref = libref.replaceAll("\\\\([^\\\\])","\\\\\\\\$1"); - + for (Path libpath : baseHome.getPaths(libref)) { classpath.addComponent(libpath.toFile()); @@ -433,9 +436,12 @@ public class StartArgs /** * Build up the Classpath and XML file references based on enabled Module list. * - * @param baseHome the base home in use - * @param activeModules the active (selected) modules - * @throws IOException if unable to expand the modules + * @param baseHome + * the base home in use + * @param activeModules + * the active (selected) modules + * @throws IOException + * if unable to expand the modules */ public void expandModules(BaseHome baseHome, List activeModules) throws IOException { @@ -465,7 +471,7 @@ public class StartArgs for (String xmlRef : module.getXmls()) { // Straight Reference - xmlRef=properties.expand(xmlRef); + xmlRef = properties.expand(xmlRef); Path xmlfile = baseHome.getPath(xmlRef); addUniqueXmlFile(xmlRef,xmlfile); } @@ -552,7 +558,7 @@ public class StartArgs if (dryRun || isExec()) { for (Prop p : properties) - cmd.addRawArg(CommandLineBuilder.quote(p.key)+"="+CommandLineBuilder.quote(p.value)); + cmd.addRawArg(CommandLineBuilder.quote(p.key) + "=" + CommandLineBuilder.quote(p.value)); } else if (properties.size() > 0) { @@ -569,7 +575,7 @@ public class StartArgs { cmd.addRawArg(xml.toAbsolutePath().toString()); } - + for (Path propertyFile : propertyFiles) { cmd.addRawArg(propertyFile.toAbsolutePath().toString()); @@ -600,7 +606,7 @@ public class StartArgs // Try generic env variable localRepo = System.getenv("MAVEN_LOCAL_REPO"); } - + // TODO: load & use $HOME/.m2/settings.xml ? // TODO: possibly use Eclipse Aether to manage it ? // TODO: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=449511 @@ -633,7 +639,7 @@ public class StartArgs { return properties; } - + public Set getSkipFileValidationModules() { return skipFileValidationModules; @@ -688,12 +694,12 @@ public class StartArgs { return exec; } - + public boolean isLicenseCheckRequired() { return licenseCheckRequired; } - + public boolean isNormalMainClass() { return SERVER_MAIN.equals(getMainClassname()); @@ -728,7 +734,7 @@ public class StartArgs { return stopCommand; } - + public boolean isTestingModeEnabled() { return testingMode; @@ -760,9 +766,12 @@ public class StartArgs /** * Parse a single line of argument. * - * @param rawarg the raw argument to parse - * @param source the origin of this line of argument - * @param replaceProps true if properties in this parse replace previous ones, false to not replace. + * @param rawarg + * the raw argument to parse + * @param source + * the origin of this line of argument + * @param replaceProps + * true if properties in this parse replace previous ones, false to not replace. */ private void parse(final String rawarg, String source, boolean replaceProps) { @@ -770,7 +779,7 @@ public class StartArgs { return; } - + StartLog.debug("parse(\"%s\", \"%s\", %b)",rawarg,source,replaceProps); final String arg = rawarg.trim(); @@ -797,7 +806,7 @@ public class StartArgs // valid, but handled in StartLog instead return; } - + if ("--testing-mode".equals(arg)) { System.setProperty("org.eclipse.jetty.start.testing","true"); @@ -922,7 +931,7 @@ public class StartArgs enableModules(source,moduleNames); return; } - + // Skip [files] validation on a module if (arg.startsWith("--skip-file-validation=")) { @@ -1015,7 +1024,7 @@ public class StartArgs } return; } - + if (FS.isPropertyFile(arg)) { // only add non-duplicates @@ -1023,7 +1032,7 @@ public class StartArgs { propertyFileRefs.add(arg); } - return; + return; } // Anything else is unrecognized @@ -1047,11 +1056,28 @@ public class StartArgs public void parseModule(Module module) { - if(module.hasDefaultConfig()) + // Starting with Jetty 9.3 indicated modules, the default config + // is parsed from the [default] section only + if (module.getVersion().isNewerThanOrEqualTo(new Version("9.3"))) { - for(String line: module.getDefaultConfig()) + if (module.hasDefaultConfig()) { - parse(line,module.getFilesystemRef(),false); + for (String line : module.getDefaultConfig()) + { + parse(line,module.getFilesystemRef(),false); + } + } + } + else + { + // With Jetty 9.2 indicated modules and older, the default + // config is parsed from the [ini-template] section + if (module.hasIniTemplate()) + { + for (String line : module.getIniTemplate()) + { + parse(line,module.getFilesystemRef(),false); + } } } } @@ -1070,7 +1096,7 @@ public class StartArgs addUniqueXmlFile(xmlRef,xmlfile); } } - + public void resolvePropertyFiles(BaseHome baseHome) throws IOException { // Find and Expand property files diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Version.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Version.java index c1c27a05475..e47e7da7285 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Version.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Version.java @@ -21,30 +21,26 @@ package org.eclipse.jetty.start; /** * Utility class for parsing and comparing version strings. JDK 1.1 compatible. */ -public class Version +public class Version implements Comparable { - int _version = 0; - int _revision = 0; - int _subrevision = 0; - String _suffix = ""; - - public Version() - { - } + private int _version = 0; + private int _revision = -1; + private int _subrevision = -1; + private String _suffix = ""; public Version(String version_string) { parse(version_string); } - - // java.lang.Comparable is Java 1.2! Cannot use it + + @Override /** * Compares with other version. Does not take extension into account, as there is no reliable way to order them. * * @param other the other version to compare this to * @return -1 if this is older version that other, 0 if its same version, 1 if it's newer version than other */ - public int compare(Version other) + public int compareTo(Version other) { if (other == null) { @@ -76,16 +72,39 @@ public class Version } return 0; } + + public boolean isNewerThan(Version other) + { + return compareTo(other) == 1; + } + + public boolean isNewerThanOrEqualTo(Version other) + { + int comp = compareTo(other); + return (comp == 0) || (comp == 1); + } + + public boolean isOlderThan(Version other) + { + return compareTo(other) == -1; + } + + public boolean isOlderThanOrEqualTo(Version other) + { + int comp = compareTo(other); + return (comp == 0) || (comp == -1); + } /** - * Check whether this verion is in range of versions specified + * Check whether this version is in range of versions specified + * * @param low the low part of the range * @param high the high part of the range * @return true if this version is within the provided range */ public boolean isInRange(Version low, Version high) { - return ((compare(low) >= 0) && (compare(high) <= 0)); + return ((compareTo(low) >= 0) && (compareTo(high) <= 0)); } /** @@ -95,8 +114,8 @@ public class Version public void parse(String version_string) { _version = 0; - _revision = 0; - _subrevision = 0; + _revision = -1; + _subrevision = -1; _suffix = ""; int pos = 0; int startpos = 0; @@ -129,7 +148,7 @@ public class Version _suffix = version_string.substring(pos); } } - + /** * @return string representation of this version */ @@ -138,11 +157,17 @@ public class Version { StringBuffer sb = new StringBuffer(10); sb.append(_version); - sb.append('.'); - sb.append(_revision); - sb.append('.'); - sb.append(_subrevision); - sb.append(_suffix); + if (_revision >= 0) + { + sb.append('.'); + sb.append(_revision); + if (_subrevision >= 0) + { + sb.append('.'); + sb.append(_subrevision); + sb.append(_suffix); + } + } return sb.toString(); } } diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/MainTest.java b/jetty-start/src/test/java/org/eclipse/jetty/start/MainTest.java index 5724c488e4e..dbbe5f481ab 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/MainTest.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/MainTest.java @@ -24,6 +24,7 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.List; +import org.eclipse.jetty.start.util.RebuildTestResources; import org.eclipse.jetty.toolchain.test.MavenTestingUtils; import org.eclipse.jetty.toolchain.test.TestTracker; import org.junit.Before; @@ -45,6 +46,7 @@ public class MainTest { System.setProperty("jetty.home",""); System.setProperty("jetty.base",""); + System.setProperty("jetty.version",RebuildTestResources.JETTY_VERSION); } @Test @@ -54,7 +56,7 @@ public class MainTest Path testJettyHome = MavenTestingUtils.getTestResourceDir("dist-home").toPath().toRealPath(); cmdLineArgs.add("user.dir=" + testJettyHome); cmdLineArgs.add("jetty.home=" + testJettyHome); - cmdLineArgs.add("jetty.http.port=9090"); + // cmdLineArgs.add("jetty.http.port=9090"); Main main = new Main(); StartArgs args = main.processCommandLine(cmdLineArgs.toArray(new String[cmdLineArgs.size()])); @@ -84,13 +86,13 @@ public class MainTest } @Test - @Ignore("Just a bit noisy for general testing") + @Ignore("Too noisy for general testing") public void testListConfig() throws Exception { List cmdLineArgs = new ArrayList<>(); File testJettyHome = MavenTestingUtils.getTestResourceDir("dist-home"); + cmdLineArgs.add("user.dir=" + testJettyHome); cmdLineArgs.add("jetty.home=" + testJettyHome); - cmdLineArgs.add("jetty.http.port=9090"); cmdLineArgs.add("--list-config"); // cmdLineArgs.add("--debug"); diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/ModulesTest.java b/jetty-start/src/test/java/org/eclipse/jetty/start/ModulesTest.java index e828cc2c325..ba2fd760993 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/ModulesTest.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/ModulesTest.java @@ -142,6 +142,9 @@ public class ModulesTest expected.add("stats"); expected.add("webapp"); expected.add("websocket"); + expected.add("infinispan"); + expected.add("jdbc-sessions"); + expected.add("nosql"); ConfigurationAssert.assertContainsUnordered("All Modules",expected,moduleNames); } @@ -247,6 +250,7 @@ public class ModulesTest expected.add("deploy"); expected.add("plus"); expected.add("annotations"); + expected.add("jdbc-sessions"); List resolved = new ArrayList<>(); for (Module module : modules.getSelected()) diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/PropertyPassingTest.java b/jetty-start/src/test/java/org/eclipse/jetty/start/PropertyPassingTest.java index 52e92d5e9dc..e325e09eb72 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/PropertyPassingTest.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/PropertyPassingTest.java @@ -18,8 +18,7 @@ package org.eclipse.jetty.start; -import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.*; import java.io.BufferedReader; import java.io.File; @@ -89,7 +88,7 @@ public class PropertyPassingTest @Rule public TestingDir testingdir = new TestingDir(); - + @Test public void testAsJvmArg() throws IOException, InterruptedException { diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/TestBadUseCases.java b/jetty-start/src/test/java/org/eclipse/jetty/start/TestBadUseCases.java index 28f80f3cccb..e2c21410a8d 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/TestBadUseCases.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/TestBadUseCases.java @@ -24,6 +24,7 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.eclipse.jetty.start.util.RebuildTestResources; import org.eclipse.jetty.toolchain.test.MavenTestingUtils; import org.junit.Rule; import org.junit.Test; @@ -48,6 +49,10 @@ public class TestBadUseCases "Missing referenced dependency: alpn-impl/alpn-1.7.0_01", new String[]{"java.version=1.7.0_01"}}); + ret.add(new Object[]{ "versioned-modules-too-new", + "Module [http3] specifies jetty version [10.0] which is newer than this version of jetty [" + RebuildTestResources.JETTY_VERSION + "]", + null}); + return ret; } @@ -66,6 +71,7 @@ public class TestBadUseCases @Test public void testBadConfig() throws Exception { + System.setProperty("jetty.version", RebuildTestResources.JETTY_VERSION); File homeDir = MavenTestingUtils.getTestResourceDir("dist-home"); File baseDir = MavenTestingUtils.getTestResourceDir("usecases/" + caseName); diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/TestUseCases.java b/jetty-start/src/test/java/org/eclipse/jetty/start/TestUseCases.java index f6c25afae94..86f06a19f7b 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/TestUseCases.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/TestUseCases.java @@ -22,6 +22,7 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.List; +import org.eclipse.jetty.start.util.RebuildTestResources; import org.eclipse.jetty.toolchain.test.MavenTestingUtils; import org.junit.Test; import org.junit.runner.RunWith; @@ -47,6 +48,7 @@ public class TestUseCases ret.add(new String[] {"jsp", null}); ret.add(new String[] {"database", null}); ret.add(new String[] {"deep-ext", null}); + ret.add(new String[] {"versioned-modules", null}); // Ones with command lines ret.add(new Object[] {"http2", new String[]{"java.version=1.7.0_60"}}); @@ -68,6 +70,8 @@ public class TestUseCases Path homeDir = MavenTestingUtils.getTestResourceDir("dist-home").toPath().toRealPath(); Path baseDir = MavenTestingUtils.getTestResourceDir("usecases/" + caseName).toPath().toRealPath(); + System.setProperty("jetty.version",RebuildTestResources.JETTY_VERSION); + Main main = new Main(); List cmdLine = new ArrayList<>(); cmdLine.add("jetty.home=" + homeDir.toString()); diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/VersionTest.java b/jetty-start/src/test/java/org/eclipse/jetty/start/VersionTest.java index 7e61d1f2976..81727e23549 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/VersionTest.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/VersionTest.java @@ -18,20 +18,13 @@ package org.eclipse.jetty.start; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class VersionTest { - @Test - public void testDefaultVersion() - { - Version version = new Version(); - assertEquals("Default version difference to 0.0.0",0,version.compare(new Version("0.0.0"))); - } - @Test public void testNewerVersion() { assertIsNewer("0.0.0", "0.0.1"); @@ -39,27 +32,41 @@ public class VersionTest assertIsNewer("1.5.0", "1.6.0"); // assertIsNewer("1.6.0_12", "1.6.0_16"); // JDK version spec? } - + @Test public void testOlderVersion() { assertIsOlder("0.0.1", "0.0.0"); assertIsOlder("0.1.1", "0.1.0"); assertIsOlder("1.6.0", "1.5.0"); } + + @Test + public void testOlderOrEqualTo() + { + assertThat("9.2 <= 9.2",new Version("9.2").isOlderThanOrEqualTo(new Version("9.2")),is(true)); + assertThat("9.2 <= 9.3",new Version("9.2").isOlderThanOrEqualTo(new Version("9.3")),is(true)); + assertThat("9.3 <= 9.2",new Version("9.3").isOlderThanOrEqualTo(new Version("9.2")),is(false)); + } + + @Test + public void testNewerOrEqualTo() + { + assertThat("9.2 >= 9.2",new Version("9.2").isNewerThanOrEqualTo(new Version("9.2")),is(true)); + assertThat("9.2 >= 9.3",new Version("9.2").isNewerThanOrEqualTo(new Version("9.3")),is(false)); + assertThat("9.3 >= 9.2",new Version("9.3").isNewerThanOrEqualTo(new Version("9.2")),is(true)); + } private void assertIsOlder(String basever, String testver) { Version vbase = new Version(basever); Version vtest = new Version(testver); - assertTrue("Version [" + testver + "] should be older than [" + basever + "]", - vtest.compare(vbase) == -1); + assertTrue("Version [" + testver + "] should be older than [" + basever + "]", vtest.isOlderThan(vbase)); } private void assertIsNewer(String basever, String testver) { Version vbase = new Version(basever); Version vtest = new Version(testver); - assertTrue("Version [" + testver + "] should be newer than [" + basever + "]", - vtest.compare(vbase) == 1); + assertTrue("Version [" + testver + "] should be newer than [" + basever + "]", vtest.isNewerThan(vbase)); } } diff --git a/jetty-start/src/test/java/org/eclipse/jetty/start/util/RebuildTestResources.java b/jetty-start/src/test/java/org/eclipse/jetty/start/util/RebuildTestResources.java index 25f5fa0ebf4..d20fae37801 100644 --- a/jetty-start/src/test/java/org/eclipse/jetty/start/util/RebuildTestResources.java +++ b/jetty-start/src/test/java/org/eclipse/jetty/start/util/RebuildTestResources.java @@ -38,6 +38,8 @@ import org.eclipse.jetty.toolchain.test.MavenTestingUtils; */ public class RebuildTestResources { + public static final String JETTY_VERSION = "9.3"; + public static void main(String[] args) { File realDistHome = MavenTestingUtils.getProjectDir("../jetty-distribution/target/distribution"); @@ -129,7 +131,7 @@ public class RebuildTestResources FS.ensureDirExists(libsDir.toFile()); PathMatcher matcher = getPathMatcher("glob:**.jar"); - Renamer renamer = new RegexRenamer("-9\\.[0-9.]*(v[0-9-]*)?(-SNAPSHOT)?(RC[0-9])?(M[0-9])?","-TEST"); + Renamer renamer = new RegexRenamer("-9\\.[0-9.]*(v[0-9-]*)?(-SNAPSHOT)?(RC[0-9])?(M[0-9])?","-" + JETTY_VERSION); FileCopier copier = new TouchFileCopier(); copyDir(srcDir.resolve("lib"),libsDir,matcher,renamer,copier); } diff --git a/jetty-start/src/test/resources/assert-home-with-http2.txt b/jetty-start/src/test/resources/assert-home-with-http2.txt index 6c5cb095b78..4f62cdc0c90 100644 --- a/jetty-start/src/test/resources/assert-home-with-http2.txt +++ b/jetty-start/src/test/resources/assert-home-with-http2.txt @@ -3,6 +3,7 @@ XML|${jetty.base}/etc/home-base-warning.xml XML|${jetty.base}/etc/jetty.xml XML|${jetty.base}/etc/jetty-http.xml XML|${jetty.base}/etc/jetty-ssl.xml +XML|${jetty.base}/etc/jetty-ssl-context.xml XML|${jetty.base}/etc/jetty-alpn.xml XML|${jetty.base}/etc/jetty-deploy.xml XML|${jetty.base}/etc/jetty-http2.xml @@ -10,58 +11,51 @@ XML|${jetty.base}/etc/jetty-plus.xml XML|${jetty.base}/etc/jetty-annotations.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar +LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar -LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar -LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar +LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar +LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar LIB|${jetty.base}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar LIB|${jetty.base}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar -LIB|${jetty.base}/lib/jetty-jndi-TEST.jar LIB|${jetty.base}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar LIB|${jetty.base}/lib/jndi/javax.transaction-api-1.2.jar -LIB|${jetty.base}/lib/jetty-plus-TEST.jar -LIB|${jetty.base}/lib/jetty-annotations-TEST.jar LIB|${jetty.base}/lib/annotations/asm-5.0.1.jar LIB|${jetty.base}/lib/annotations/asm-commons-5.0.1.jar LIB|${jetty.base}/lib/annotations/javax.annotation-api-1.2.jar LIB|${jetty.base}/lib/websocket/javax.websocket-api-1.0.jar -LIB|${jetty.base}/lib/websocket/javax-websocket-client-impl-TEST.jar -LIB|${jetty.base}/lib/websocket/javax-websocket-server-impl-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-api-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-client-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-common-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-server-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-servlet-TEST.jar -LIB|${jetty.base}/lib/jetty-http-TEST.jar -LIB|${jetty.base}/lib/jetty-io-TEST.jar -LIB|${jetty.base}/lib/jetty-deploy-TEST.jar +LIB|${jetty.base}/lib/websocket/javax-websocket-client-impl-9.3.jar +LIB|${jetty.base}/lib/websocket/javax-websocket-server-impl-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-api-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-client-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-common-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-server-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-servlet-9.3.jar +LIB|${jetty.base}/lib/jetty-alpn-server-9.3.jar LIB|${jetty.base}/lib/jetty-schemas-3.1.jar -LIB|${jetty.base}/lib/jetty-security-TEST.jar -LIB|${jetty.base}/lib/jetty-server-TEST.jar -LIB|${jetty.base}/lib/jetty-servlet-TEST.jar -LIB|${jetty.base}/lib/jetty-util-TEST.jar -LIB|${jetty.base}/lib/jetty-webapp-TEST.jar -LIB|${jetty.base}/lib/jetty-xml-TEST.jar -LIB|${jetty.base}/lib/jetty-alpn-server-TEST.jar -LIB|${jetty.base}/lib/http2/http2-common-TEST.jar -LIB|${jetty.base}/lib/http2/http2-hpack-TEST.jar -LIB|${jetty.base}/lib/http2/http2-server-TEST.jar +LIB|${jetty.base}/lib/http2/http2-common-9.3.jar +LIB|${jetty.base}/lib/http2/http2-hpack-9.3.jar +LIB|${jetty.base}/lib/http2/http2-server-9.3.jar LIB|${jetty.base}/lib/servlet-api-3.1.jar +LIB|${jetty.base}/lib/jetty-annotations-9.3.jar +LIB|${jetty.base}/lib/jetty-http-9.3.jar +LIB|${jetty.base}/lib/jetty-io-9.3.jar +LIB|${jetty.base}/lib/jetty-deploy-9.3.jar +LIB|${jetty.base}/lib/jetty-plus-9.3.jar +LIB|${jetty.base}/lib/jetty-schemas-3.1.jar +LIB|${jetty.base}/lib/jetty-security-9.3.jar +LIB|${jetty.base}/lib/jetty-server-9.3.jar +LIB|${jetty.base}/lib/jetty-servlet-9.3.jar +LIB|${jetty.base}/lib/jetty-util-9.3.jar +LIB|${jetty.base}/lib/jetty-webapp-9.3.jar +LIB|${jetty.base}/lib/jetty-xml-9.3.jar +LIB|${jetty.base}/lib/jetty-jndi-9.3.jar + # The Properties we expect (order is irrelevant) # (these are the properties we actually set in the configuration) PROP|java.version=1.7.0_60 -# PROP|jetty.sslContext.keyManagerPassword=OBF:1u2u1wml1z7s1z7a1wnl1u2g -# PROP|jetty.sslContext.keystorePath=etc/keystore -# PROP|jetty.sslContext.keystorePassword=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4 -# PROP|jetty.httpConfig.securePort=8443 -# PROP|jetty.sslContext.truststorePath=etc/keystore -# PROP|jetty.sslContext.truststorePassword=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4 -# PROP|jetty.ssl.port=8443 -# PROP|jetty.ssl.idleTimeout=30000 -# (these are the ones set by default from jetty.home modules) -PROP|jetty.alpn.debug=false PROP|jetty.http.port=8080 +PROP|jetty.ssl.port=8443 PROP|jetty.httpConfig.delayDispatchUntilContent=false PROP|jetty.server.dumpAfterStart=false PROP|jetty.server.dumpBeforeStop=false @@ -80,7 +74,7 @@ JVM|-Xmx1024m # Downloads DOWNLOAD|maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar -DOWNLOAD|http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/main/config/etc/keystore|etc/keystore +DOWNLOAD|http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/test/config/etc/keystore?id=master|etc/keystore # Files FILE|lib/ diff --git a/jetty-start/src/test/resources/assert-home-with-jvm.txt b/jetty-start/src/test/resources/assert-home-with-jvm.txt index 771f6da1bed..871aa8d2f44 100644 --- a/jetty-start/src/test/resources/assert-home-with-jvm.txt +++ b/jetty-start/src/test/resources/assert-home-with-jvm.txt @@ -11,39 +11,41 @@ XML|${jetty.base}/etc/jetty-logging.xml # The LIBs we expect (order is irrelevant) LIB|${maven-test-resources}/extra-resources LIB|${maven-test-resources}/extra-libs/example.jar -LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar +LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar -LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar -LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar +LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar +LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar LIB|${jetty.base}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar LIB|${jetty.base}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar LIB|${jetty.base}/lib/servlet-api-3.1.jar LIB|${jetty.base}/lib/jetty-schemas-3.1.jar -LIB|${jetty.base}/lib/jetty-http-TEST.jar -LIB|${jetty.base}/lib/jetty-server-TEST.jar -LIB|${jetty.base}/lib/jetty-xml-TEST.jar -LIB|${jetty.base}/lib/jetty-util-TEST.jar -LIB|${jetty.base}/lib/jetty-io-TEST.jar -LIB|${jetty.base}/lib/jetty-jndi-TEST.jar LIB|${jetty.base}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar LIB|${jetty.base}/lib/jndi/javax.transaction-api-1.2.jar -LIB|${jetty.base}/lib/jetty-security-TEST.jar -LIB|${jetty.base}/lib/jetty-servlet-TEST.jar -LIB|${jetty.base}/lib/jetty-webapp-TEST.jar -LIB|${jetty.base}/lib/jetty-deploy-TEST.jar -LIB|${jetty.base}/lib/jetty-plus-TEST.jar -LIB|${jetty.base}/lib/jetty-annotations-TEST.jar LIB|${jetty.base}/lib/annotations/asm-5.0.1.jar LIB|${jetty.base}/lib/annotations/asm-commons-5.0.1.jar LIB|${jetty.base}/lib/annotations/javax.annotation-api-1.2.jar LIB|${jetty.base}/lib/websocket/javax.websocket-api-1.0.jar -LIB|${jetty.base}/lib/websocket/javax-websocket-client-impl-TEST.jar -LIB|${jetty.base}/lib/websocket/javax-websocket-server-impl-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-api-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-client-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-common-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-server-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-servlet-TEST.jar +LIB|${jetty.base}/lib/websocket/javax-websocket-client-impl-9.3.jar +LIB|${jetty.base}/lib/websocket/javax-websocket-server-impl-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-api-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-client-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-common-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-server-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-servlet-9.3.jar +LIB|${jetty.base}/lib/jetty-annotations-9.3.jar +LIB|${jetty.base}/lib/jetty-http-9.3.jar +LIB|${jetty.base}/lib/jetty-io-9.3.jar +LIB|${jetty.base}/lib/jetty-deploy-9.3.jar +LIB|${jetty.base}/lib/jetty-plus-9.3.jar +LIB|${jetty.base}/lib/jetty-schemas-3.1.jar +LIB|${jetty.base}/lib/jetty-security-9.3.jar +LIB|${jetty.base}/lib/jetty-server-9.3.jar +LIB|${jetty.base}/lib/jetty-servlet-9.3.jar +LIB|${jetty.base}/lib/jetty-util-9.3.jar +LIB|${jetty.base}/lib/jetty-webapp-9.3.jar +LIB|${jetty.base}/lib/jetty-xml-9.3.jar +LIB|${jetty.base}/lib/jetty-jndi-9.3.jar + # The Properties we expect (order is irrelevant) # (these are the properties we actually set in the configuration) diff --git a/jetty-start/src/test/resources/assert-home.txt b/jetty-start/src/test/resources/assert-home.txt index aab1bae2e9d..70515e30a78 100644 --- a/jetty-start/src/test/resources/assert-home.txt +++ b/jetty-start/src/test/resources/assert-home.txt @@ -7,43 +7,43 @@ XML|${jetty.base}/etc/jetty-plus.xml XML|${jetty.base}/etc/jetty-annotations.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar +LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar LIB|${jetty.base}/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar -LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar -LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar +LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar +LIB|${jetty.base}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar LIB|${jetty.base}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-impl-1.2.1.jar LIB|${jetty.base}/lib/apache-jstl/org.apache.taglibs.taglibs-standard-spec-1.2.1.jar LIB|${jetty.base}/lib/annotations/asm-5.0.1.jar LIB|${jetty.base}/lib/annotations/asm-commons-5.0.1.jar LIB|${jetty.base}/lib/annotations/javax.annotation-api-1.2.jar -LIB|${jetty.base}/lib/jetty-jndi-TEST.jar +LIB|${jetty.base}/lib/jetty-jndi-9.3.jar LIB|${jetty.base}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar LIB|${jetty.base}/lib/jndi/javax.transaction-api-1.2.jar -LIB|${jetty.base}/lib/jetty-annotations-TEST.jar -LIB|${jetty.base}/lib/jetty-http-TEST.jar -LIB|${jetty.base}/lib/jetty-io-TEST.jar -LIB|${jetty.base}/lib/jetty-deploy-TEST.jar -LIB|${jetty.base}/lib/jetty-plus-TEST.jar +LIB|${jetty.base}/lib/jetty-annotations-9.3.jar +LIB|${jetty.base}/lib/jetty-http-9.3.jar +LIB|${jetty.base}/lib/jetty-io-9.3.jar +LIB|${jetty.base}/lib/jetty-deploy-9.3.jar +LIB|${jetty.base}/lib/jetty-plus-9.3.jar LIB|${jetty.base}/lib/jetty-schemas-3.1.jar -LIB|${jetty.base}/lib/jetty-security-TEST.jar -LIB|${jetty.base}/lib/jetty-server-TEST.jar -LIB|${jetty.base}/lib/jetty-servlet-TEST.jar -LIB|${jetty.base}/lib/jetty-util-TEST.jar -LIB|${jetty.base}/lib/jetty-webapp-TEST.jar -LIB|${jetty.base}/lib/jetty-xml-TEST.jar +LIB|${jetty.base}/lib/jetty-security-9.3.jar +LIB|${jetty.base}/lib/jetty-server-9.3.jar +LIB|${jetty.base}/lib/jetty-servlet-9.3.jar +LIB|${jetty.base}/lib/jetty-util-9.3.jar +LIB|${jetty.base}/lib/jetty-webapp-9.3.jar +LIB|${jetty.base}/lib/jetty-xml-9.3.jar LIB|${jetty.base}/lib/servlet-api-3.1.jar LIB|${jetty.base}/lib/websocket/javax.websocket-api-1.0.jar -LIB|${jetty.base}/lib/websocket/javax-websocket-client-impl-TEST.jar -LIB|${jetty.base}/lib/websocket/javax-websocket-server-impl-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-api-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-client-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-common-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-server-TEST.jar -LIB|${jetty.base}/lib/websocket/websocket-servlet-TEST.jar +LIB|${jetty.base}/lib/websocket/javax-websocket-client-impl-9.3.jar +LIB|${jetty.base}/lib/websocket/javax-websocket-server-impl-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-api-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-client-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-common-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-server-9.3.jar +LIB|${jetty.base}/lib/websocket/websocket-servlet-9.3.jar # The Properties we expect (order is irrelevant) # (these are the properties we actually set in the configuration) -PROP|jetty.http.port=9090 +PROP|jetty.http.port=8080 # (these are the ones set by default from jetty.home modules) PROP|jetty.httpConfig.delayDispatchUntilContent=false PROP|jetty.server.dumpAfterStart=false diff --git a/jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar b/jetty-start/src/test/resources/dist-home/etc/jetty-infinispan.xml similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar rename to jetty-start/src/test/resources/dist-home/etc/jetty-infinispan.xml diff --git a/jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar b/jetty-start/src/test/resources/dist-home/etc/jetty-jdbc-sessions.xml similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar rename to jetty-start/src/test/resources/dist-home/etc/jetty-jdbc-sessions.xml diff --git a/jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar b/jetty-start/src/test/resources/dist-home/etc/jetty-nosql.xml similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar rename to jetty-start/src/test/resources/dist-home/etc/jetty-nosql.xml diff --git a/jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-client-TEST.jar b/jetty-start/src/test/resources/dist-home/etc/jetty-ssl-context.xml similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-client-TEST.jar rename to jetty-start/src/test/resources/dist-home/etc/jetty-ssl-context.xml diff --git a/jetty-start/src/test/resources/dist-home/etc/webdefault.xml b/jetty-start/src/test/resources/dist-home/etc/webdefault.xml index d54d76f3072..e69de29bb2d 100644 --- a/jetty-start/src/test/resources/dist-home/etc/webdefault.xml +++ b/jetty-start/src/test/resources/dist-home/etc/webdefault.xml @@ -1,534 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Default web.xml file. - This file is applied to a Web application before it's own WEB_INF/web.xml file - - - - - - - - org.eclipse.jetty.servlet.listener.ELContextCleaner - - - - - - - - org.eclipse.jetty.servlet.listener.IntrospectorCleaner - - - - - - - - - - - - - - - - - default - org.eclipse.jetty.servlet.DefaultServlet - - aliases - false - - - acceptRanges - true - - - dirAllowed - true - - - welcomeServlets - false - - - redirectWelcome - false - - - maxCacheSize - 256000000 - - - maxCachedFileSize - 200000000 - - - maxCachedFiles - 2048 - - - gzip - false - - - etags - false - - - useFileMappedBuffer - true - - - - 0 - - - - default - / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.eclipse.jetty.jsp.JettyJspServlet - - logVerbosityLevel - DEBUG - - - fork - false - - - xpoweredBy - false - - - compilerTargetVM - 1.7 - - - compilerSourceVM - 1.7 - - - 0 - - - - jsp - *.jsp - *.jspf - *.jspx - *.xsp - *.JSP - *.JSPF - *.JSPX - *.XSP - - - - - - - - 30 - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - - - - - - ar - ISO-8859-6 - - - be - ISO-8859-5 - - - bg - ISO-8859-5 - - - ca - ISO-8859-1 - - - cs - ISO-8859-2 - - - da - ISO-8859-1 - - - de - ISO-8859-1 - - - el - ISO-8859-7 - - - en - ISO-8859-1 - - - es - ISO-8859-1 - - - et - ISO-8859-1 - - - fi - ISO-8859-1 - - - fr - ISO-8859-1 - - - hr - ISO-8859-2 - - - hu - ISO-8859-2 - - - is - ISO-8859-1 - - - it - ISO-8859-1 - - - iw - ISO-8859-8 - - - ja - Shift_JIS - - - ko - EUC-KR - - - lt - ISO-8859-2 - - - lv - ISO-8859-2 - - - mk - ISO-8859-5 - - - nl - ISO-8859-1 - - - no - ISO-8859-1 - - - pl - ISO-8859-2 - - - pt - ISO-8859-1 - - - ro - ISO-8859-2 - - - ru - ISO-8859-5 - - - sh - ISO-8859-5 - - - sk - ISO-8859-2 - - - sl - ISO-8859-2 - - - sq - ISO-8859-2 - - - sr - ISO-8859-5 - - - sv - ISO-8859-1 - - - tr - ISO-8859-9 - - - uk - ISO-8859-5 - - - zh - GB2312 - - - zh_TW - Big5 - - - - - - - - - Disable TRACE - / - TRACE - - - - - - Enable everything but TRACE - / - TRACE - - - - - diff --git a/jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-server-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-server-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/http2/http2-common-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/http2/http2-common-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/http2/http2-hpack-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/http2/http2-hpack-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/http2/http2-server-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/cdi-core-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/http2/http2-server-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/cdi-core-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-alpn-server-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/cdi-servlet-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-alpn-server-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/cdi-servlet-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-annotations-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/cdi-websocket-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-annotations-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/cdi-websocket-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-cdi-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-client-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-cdi-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-client-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-client-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-server-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-client-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/fcgi/fcgi-server-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-continuation-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/http2/http2-common-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-continuation-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/http2/http2-common-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-deploy-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/http2/http2-hpack-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-deploy-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/http2/http2-hpack-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-http-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/http2/http2-server-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-http-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/http2/http2-server-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-io-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-alpn-server-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-io-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-alpn-server-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-jaas-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-annotations-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-jaas-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-annotations-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-jaspi-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-client-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-jaspi-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-client-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-jmx-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-continuation-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-jmx-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-continuation-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-jndi-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-deploy-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-jndi-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-deploy-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-plus-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-http-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-plus-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-http-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-proxy-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-infinispan-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-proxy-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-infinispan-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-quickstart-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-io-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-quickstart-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-io-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-rewrite-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-jaas-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-rewrite-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-jaas-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-security-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-jaspi-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-security-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-jaspi-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-server-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-jmx-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-server-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-jmx-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-servlet-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-jndi-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-servlet-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-jndi-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-servlets-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-nosql-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-servlets-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-nosql-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-util-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-plus-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-util-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-plus-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-webapp-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-proxy-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-webapp-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-proxy-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/jetty-xml-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-quickstart-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/jetty-xml-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-quickstart-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/monitor/jetty-monitor-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-rewrite-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/monitor/jetty-monitor-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-rewrite-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/setuid/jetty-setuid-java-1.0.1.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-security-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/setuid/jetty-setuid-java-1.0.1.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-security-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/spring/jetty-spring-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-server-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/spring/jetty-spring-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-server-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-client-impl-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-servlet-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-client-impl-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-servlet-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-server-impl-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-servlets-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-server-impl-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-servlets-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-api-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-util-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/websocket-api-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-util-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-client-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-webapp-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/websocket-client-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-webapp-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-common-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/jetty-xml-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/websocket-common-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/jetty-xml-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-server-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/monitor/jetty-monitor-9.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/websocket-server-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/monitor/jetty-monitor-9.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-servlet-TEST.jar b/jetty-start/src/test/resources/dist-home/lib/setuid/jetty-setuid-java-1.0.3.jar similarity index 100% rename from jetty-start/src/test/resources/dist-home/lib/websocket/websocket-servlet-TEST.jar rename to jetty-start/src/test/resources/dist-home/lib/setuid/jetty-setuid-java-1.0.3.jar diff --git a/jetty-start/src/test/resources/dist-home/lib/spring/jetty-spring-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/spring/jetty-spring-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-client-impl-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-client-impl-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-server-impl-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/javax-websocket-server-impl-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-api-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-api-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-client-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-client-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-common-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-common-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-server-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-server-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-servlet-9.3.jar b/jetty-start/src/test/resources/dist-home/lib/websocket/websocket-servlet-9.3.jar new file mode 100644 index 00000000000..e69de29bb2d diff --git a/jetty-start/src/test/resources/dist-home/modules/alpn.mod b/jetty-start/src/test/resources/dist-home/modules/alpn.mod index 41a6f295d3e..cc3d6862b91 100644 --- a/jetty-start/src/test/resources/dist-home/modules/alpn.mod +++ b/jetty-start/src/test/resources/dist-home/modules/alpn.mod @@ -44,7 +44,7 @@ lib/alpn/ # jetty.alpn.defaultProtocol=http/1.1 # ALPN debug logging on System.err -jetty.alpn.debug=false +# jetty.alpn.debug=false [license] ALPN is a hosted at github under the GPL v2 with ClassPath Exception. diff --git a/jetty-start/src/test/resources/dist-home/modules/cdi.mod b/jetty-start/src/test/resources/dist-home/modules/cdi.mod index cde3090e0cd..3ae7de09610 100644 --- a/jetty-start/src/test/resources/dist-home/modules/cdi.mod +++ b/jetty-start/src/test/resources/dist-home/modules/cdi.mod @@ -10,12 +10,24 @@ plus jsp [files] -lib/weld/ -maven://org.jboss.weld.servlet/weld-servlet/2.2.5.Final|lib/weld/weld-servlet-2.2.5.Final.jar +lib/cdi/ +maven://javax.enterprise/cdi-api/1.2|lib/cdi/javax.enterprise.cdi-api-1.2.jar +maven://javax.interceptor/javax.interceptor-api/1.2|lib/cdi/javax.interceptor-api-1.2.jar +maven://javax.inject/javax.inject/1|lib/cdi/javax.inject-1.0.jar +maven://org.jboss.weld.servlet/weld-servlet-core/2.2.9.Final|lib/cdi/weld-servlet-core-2.2.9.Final.jar +maven://org.jboss.weld.environment/weld-environment-common/2.2.9.Final|lib/cdi/weld-environment-common-2.2.9.Final.jar +maven://org.jboss.weld/weld-core-impl/2.2.9.Final|lib/cdi/weld-core-impl-2.2.9.Final.jar +maven://org.jboss.classfilewriter/jboss-classfilewriter/1.0.5.Final|lib/cdi/jboss-classfilewriter-1.0.5.Final.jar +maven://com.google.guava/guava/13.0.1|lib/cdi/com.google.guava.guava-13.0.1.jar +maven://org.jboss.weld/weld-spi/2.2.SP3|lib/cdi/weld-spi-2.2.SP3.jar +maven://org.jboss.weld/weld-api/2.2.SP3|lib/cdi/weld-api-2.2.SP3.jar +maven://org.jboss.logging/jboss-logging/3.1.3.GA|lib/cdi/jboss-logging-3.1.3.GA.jar + [lib] -lib/weld/weld-servlet-2.2.5.Final.jar -lib/jetty-cdi-${jetty.version}.jar +lib/cdi/*.jar +lib/cdi-core-${jetty.version}.jar +lib/cdi-servlet-${jetty.version}.jar [xml] etc/jetty-cdi.xml diff --git a/jetty-start/src/test/resources/dist-home/modules/http.mod b/jetty-start/src/test/resources/dist-home/modules/http.mod index 0957a796c59..896a3884fe5 100644 --- a/jetty-start/src/test/resources/dist-home/modules/http.mod +++ b/jetty-start/src/test/resources/dist-home/modules/http.mod @@ -15,7 +15,7 @@ etc/jetty-http.xml # jetty.http.host=0.0.0.0 ## Connector port to listen on -# jetty.http.port=80 +jetty.http.port=8080 ## Connector idle timeout in milliseconds # jetty.http.idleTimeout=30000 diff --git a/jetty-start/src/test/resources/dist-home/modules/https.mod b/jetty-start/src/test/resources/dist-home/modules/https.mod index 34f3344db67..092e0d70c72 100644 --- a/jetty-start/src/test/resources/dist-home/modules/https.mod +++ b/jetty-start/src/test/resources/dist-home/modules/https.mod @@ -5,6 +5,9 @@ [depend] ssl +[optional] +http2 + [xml] etc/jetty-https.xml diff --git a/jetty-start/src/test/resources/dist-home/modules/infinispan.mod b/jetty-start/src/test/resources/dist-home/modules/infinispan.mod new file mode 100644 index 00000000000..a1cea31f434 --- /dev/null +++ b/jetty-start/src/test/resources/dist-home/modules/infinispan.mod @@ -0,0 +1,35 @@ +# +# Jetty Infinispan module +# + +[depend] +annotations +webapp + + +[files] +maven://org.infinispan/infinispan-core/7.1.1.Final|lib/infinispan/infinispan-core-7.1.1.Final.jar +maven://org.infinispan/infinispan-commons/7.1.1.Final|lib/infinispan/infinispan-commons-7.1.1.Final.jar +maven://org.jgroups/jgroups/3.6.1.Final|lib/infinispan/jgroups-3.6.1.Final.jar +maven://org.jboss.marshalling/jboss-marshalling-osgi/1.4.4.Final|lib/infinispan/jboss-marshalling-osgi-1.4.4.Final.jar +maven://org.jboss.logging/jboss-logging/3.1.2.GA|lib/infinispan/jboss-logging-3.1.2.GA.jar + +[lib] +lib/jetty-infinispan-${jetty.version}.jar +lib/infinispan/*.jar + + +[xml] +etc/jetty-infinispan.xml + +[license] +Infinispan is an open source project hosted on Github and released under the Apache 2.0 license. +http://infinispan.org/ +http://www.apache.org/licenses/LICENSE-2.0.html + +[ini-template] +## Infinispan Session config + +## Unique identifier for this node in the cluster +jetty.infinispanSession.workerName=node1 + diff --git a/jetty-start/src/test/resources/dist-home/modules/jdbc-sessions.mod b/jetty-start/src/test/resources/dist-home/modules/jdbc-sessions.mod new file mode 100644 index 00000000000..cc00e4a166a --- /dev/null +++ b/jetty-start/src/test/resources/dist-home/modules/jdbc-sessions.mod @@ -0,0 +1,27 @@ +# +# Jetty JDBC Session module +# + +[depend] +annotations +webapp + +[xml] +etc/jetty-jdbc-sessions.xml + + +[ini-template] +## JDBC Session config + +## Unique identifier for this node in the cluster +jetty.jdbcSession.workerName=node1 + +## The interval in seconds between sweeps of the scavenger +jetty.jdbcSession.scavenge=600 + +##Uncomment either the datasource name or driverClass and connectionURL +#jetty.jdbcSession.datasource=sessions +#jetty.jdbcSession.driverClass=changeme +#jetty.jdbcSession.connectionURL=changeme + + diff --git a/jetty-start/src/test/resources/dist-home/modules/nosql.mod b/jetty-start/src/test/resources/dist-home/modules/nosql.mod new file mode 100644 index 00000000000..264699cc7ff --- /dev/null +++ b/jetty-start/src/test/resources/dist-home/modules/nosql.mod @@ -0,0 +1,32 @@ +# +# Jetty NoSql module +# + +[depend] +webapp + +[files] +maven://org.mongodb/mongo-java-driver/2.6.1|lib/nosql/mongo-java-driver-2.6.1.jar + +[lib] +lib/jetty-nosql-${jetty.version}.jar +lib/nosql/*.jar + +[xml] +etc/jetty-nosql.xml + +[license] +The java driver for the MongoDB document-based database system is hosted on GitHub and released under the Apache 2.0 license. +http://www.mongodb.org/ +http://www.apache.org/licenses/LICENSE-2.0.html + +[ini-template] +## MongoDB SessionIdManager config + +## Unique identifier for this node in the cluster +jetty.nosqlSession.workerName=node1 + + +## Interval in seconds between scavenging expired sessions +jetty.nosqlSession.scavenge=1800 + diff --git a/jetty-start/src/test/resources/dist-home/modules/ssl.mod b/jetty-start/src/test/resources/dist-home/modules/ssl.mod index 7893e17359b..9123ea22b0b 100644 --- a/jetty-start/src/test/resources/dist-home/modules/ssl.mod +++ b/jetty-start/src/test/resources/dist-home/modules/ssl.mod @@ -1,15 +1,18 @@ # # SSL Keystore module # +[name] +ssl [depend] server [xml] etc/jetty-ssl.xml +etc/jetty-ssl-context.xml [files] -http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/main/config/etc/keystore|etc/keystore +http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/test/config/etc/keystore?id=${jetty.tag.version}|etc/keystore [ini-template] ### TLS(SSL) Connector Configuration @@ -18,7 +21,7 @@ http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/ # jetty.ssl.host=0.0.0.0 ## Connector port to listen on -# jetty.ssl.port=443 +jetty.ssl.port=8443 ## Connector idle timeout in milliseconds # jetty.ssl.idleTimeout=30000 @@ -38,28 +41,42 @@ http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/ ## Thread priority delta to give to acceptor threads # jetty.ssl.acceptorPriorityDelta=0 +## Whether request host names are checked to match any SNI names +# jetty.ssl.sniHostCheck=true + ### SslContextFactory Configuration - -## Keystore file path (relative to $jetty.base) -# jetty.sslContext.keystorePath=etc/keystore - -## Truststore file path (relative to $jetty.base) -# jetty.sslContext.truststorePath - ## Note that OBF passwords are not secure, just protected from casual observation ## See http://www.eclipse.org/jetty/documentation/current/configuring-security-secure-passwords.html +## Keystore file path (relative to $jetty.base) +# jetty.sslContext.keyStorePath=etc/keystore + +## Truststore file path (relative to $jetty.base) +# jetty.sslContext.trustStorePath=etc/keystore + ## Keystore password -# jetty.sslContext.keystorePassword=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4 +# jetty.sslContext.keyStorePassword=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4 + +## Keystore type and provider +# jetty.sslContext.keyStoreType=JKS +# jetty.sslContext.keyStoreProvider= ## KeyManager password # jetty.sslContext.keyManagerPassword=OBF:1u2u1wml1z7s1z7a1wnl1u2g ## Truststore password -# jetty.sslContext.truststorePassword=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4 +# jetty.sslContext.trustStorePassword=OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4 + +## Truststore type and provider +# jetty.sslContext.trustStoreType=JKS +# jetty.sslContext.trustStoreProvider= ## whether client certificate authentication is required # jetty.sslContext.needClientAuth=false ## Whether client certificate authentication is desired # jetty.sslContext.wantClientAuth=false + +## Whether cipher order is significant (since java 8 only) +# jetty.sslContext.useCipherSuitesOrder=true + diff --git a/jetty-start/src/test/resources/usecases/agent-properties.assert.txt b/jetty-start/src/test/resources/usecases/agent-properties.assert.txt index e1a69ed047d..5707b4ce405 100644 --- a/jetty-start/src/test/resources/usecases/agent-properties.assert.txt +++ b/jetty-start/src/test/resources/usecases/agent-properties.assert.txt @@ -4,13 +4,13 @@ XML|${jetty.home}/etc/jetty-http.xml XML|${jetty.home}/etc/jetty-jmx.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar -LIB|${jetty.home}/lib/jetty-jmx-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar +LIB|${jetty.home}/lib/jetty-jmx-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar LIB|${jetty.base}/lib/agent-jdk-1.6.jar diff --git a/jetty-start/src/test/resources/usecases/barebones.assert.txt b/jetty-start/src/test/resources/usecases/barebones.assert.txt index 6f933edd33d..3314346f91f 100644 --- a/jetty-start/src/test/resources/usecases/barebones.assert.txt +++ b/jetty-start/src/test/resources/usecases/barebones.assert.txt @@ -3,12 +3,12 @@ XML|${jetty.home}/etc/jetty.xml XML|${jetty.home}/etc/jetty-http.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar # The Properties we expect (order is irrelevant) diff --git a/jetty-start/src/test/resources/usecases/basic-properties.assert.txt b/jetty-start/src/test/resources/usecases/basic-properties.assert.txt index df9ae27f5bb..ab45829fe56 100644 --- a/jetty-start/src/test/resources/usecases/basic-properties.assert.txt +++ b/jetty-start/src/test/resources/usecases/basic-properties.assert.txt @@ -3,12 +3,12 @@ XML|${jetty.home}/etc/jetty.xml XML|${jetty.home}/etc/jetty-http.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar # The Properties we expect (order is irrelevant) diff --git a/jetty-start/src/test/resources/usecases/database.assert.txt b/jetty-start/src/test/resources/usecases/database.assert.txt index fbd4bebd840..e8fd0ecd885 100644 --- a/jetty-start/src/test/resources/usecases/database.assert.txt +++ b/jetty-start/src/test/resources/usecases/database.assert.txt @@ -6,21 +6,21 @@ XML|${jetty.home}/etc/jetty-plus.xml XML|${jetty.base}/etc/jetty-db.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar -LIB|${jetty.home}/lib/jetty-jndi-TEST.jar +LIB|${jetty.home}/lib/jetty-jndi-9.3.jar LIB|${jetty.home}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar LIB|${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar -LIB|${jetty.home}/lib/jetty-plus-TEST.jar -LIB|${jetty.home}/lib/jetty-deploy-TEST.jar -LIB|${jetty.home}/lib/jetty-security-TEST.jar -LIB|${jetty.home}/lib/jetty-webapp-TEST.jar -LIB|${jetty.home}/lib/jetty-servlet-TEST.jar +LIB|${jetty.home}/lib/jetty-plus-9.3.jar +LIB|${jetty.home}/lib/jetty-deploy-9.3.jar +LIB|${jetty.home}/lib/jetty-security-9.3.jar +LIB|${jetty.home}/lib/jetty-webapp-9.3.jar +LIB|${jetty.home}/lib/jetty-servlet-9.3.jar LIB|${jetty.base}/lib/db/mysql-driver.jar LIB|${jetty.base}/lib/db/bonecp.jar diff --git a/jetty-start/src/test/resources/usecases/deep-ext.assert.txt b/jetty-start/src/test/resources/usecases/deep-ext.assert.txt index 8b18c198665..bb8684e131a 100644 --- a/jetty-start/src/test/resources/usecases/deep-ext.assert.txt +++ b/jetty-start/src/test/resources/usecases/deep-ext.assert.txt @@ -3,12 +3,12 @@ XML|${jetty.home}/etc/jetty.xml XML|${jetty.home}/etc/jetty-http.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar LIB|${jetty.base}/lib/ext/agent.jar LIB|${jetty.base}/lib/ext/jdbc/mariadb-jdbc.jar diff --git a/jetty-start/src/test/resources/usecases/http2.assert.txt b/jetty-start/src/test/resources/usecases/http2.assert.txt index a8a05d81d85..359b08f0edf 100644 --- a/jetty-start/src/test/resources/usecases/http2.assert.txt +++ b/jetty-start/src/test/resources/usecases/http2.assert.txt @@ -3,54 +3,39 @@ XML|${jetty.home}/etc/jetty.xml XML|${jetty.home}/etc/jetty-http.xml XML|${jetty.home}/etc/jetty-jmx.xml XML|${jetty.home}/etc/jetty-ssl.xml +XML|${jetty.home}/etc/jetty-ssl-context.xml XML|${jetty.home}/etc/jetty-alpn.xml XML|${jetty.home}/etc/jetty-http2.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar -LIB|${jetty.home}/lib/jetty-jmx-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar +LIB|${jetty.home}/lib/jetty-jmx-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar -LIB|${jetty.home}/lib/jetty-alpn-server-TEST.jar -LIB|${jetty.home}/lib/http2/http2-common-TEST.jar -LIB|${jetty.home}/lib/http2/http2-hpack-TEST.jar -LIB|${jetty.home}/lib/http2/http2-server-TEST.jar +LIB|${jetty.home}/lib/jetty-alpn-server-9.3.jar +LIB|${jetty.home}/lib/http2/http2-common-9.3.jar +LIB|${jetty.home}/lib/http2/http2-hpack-9.3.jar +LIB|${jetty.home}/lib/http2/http2-server-9.3.jar # The Properties we expect (order is irrelevant) # (this is the property we actually set in jetty.base) PROP|jetty.http.port=9090 +PROP|jetty.ssl.port=8443 PROP|java.version=1.7.0_60 PROP|jetty.sslContext.keyStorePath=etc/keystore PROP|jetty.sslContext.keyStorePassword=friendly PROP|jetty.sslContext.keyManagerPassword=icecream PROP|jetty.sslContext.trustStorePath=etc/keystore PROP|jetty.sslContext.trustStorePassword=sundae -# (these are the ones set by default from jetty.home modules) -PROP|jetty.alpn.debug=false -# PROP|jetty.httpConfig.securePort=8443 -# PROP|jetty.ssl.port=8443 -# PROP|jetty.ssl.idleTimeout=30000 -# PROP|jetty.http.idleTimeout=30000 -# PROP|jetty.httpConfig.delayDispatchUntilContent=false -# PROP|jetty.server.dumpAfterStart=false -# PROP|jetty.server.dumpBeforeStop=false -# PROP|jetty.httpConfig.outputBufferSize=32768 -# PROP|jetty.httpConfig.requestHeaderSize=8192 -# PROP|jetty.httpConfig.responseHeaderSize=8192 -# PROP|jetty.httpConfig.sendDateHeader=false -# PROP|jetty.httpConfig.sendServerVersion=true -# PROP|jetty.threadPool.maxThreads=200 -# PROP|jetty.threadPool.minThreads=10 -# PROP|jetty.threadPool.idleTimeout=60000 # The Downloads DOWNLOAD|maven://org.mortbay.jetty.alpn/alpn-boot/7.1.0.v20141016|lib/alpn/alpn-boot-7.1.0.v20141016.jar -DOWNLOAD|http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/main/config/etc/keystore|etc/keystore +DOWNLOAD|http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/test/config/etc/keystore?id=master|etc/keystore # The Bootlib BOOTLIB|-Xbootclasspath/p:lib/alpn/alpn-boot-7.1.0.v20141016.jar diff --git a/jetty-start/src/test/resources/usecases/include-jetty-dir-logging.assert.txt b/jetty-start/src/test/resources/usecases/include-jetty-dir-logging.assert.txt index 85453e86742..60f10dd0af0 100644 --- a/jetty-start/src/test/resources/usecases/include-jetty-dir-logging.assert.txt +++ b/jetty-start/src/test/resources/usecases/include-jetty-dir-logging.assert.txt @@ -5,13 +5,13 @@ XML|${jetty.home}/etc/jetty-http.xml XML|${jetty.home}/etc/jetty-jmx.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar -LIB|${jetty.home}/lib/jetty-jmx-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar +LIB|${jetty.home}/lib/jetty-jmx-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar LIB|${jetty.base}/resources LIB|${maven-test-resources}/extra-jetty-dirs/logging/lib/logging/logback.jar diff --git a/jetty-start/src/test/resources/usecases/jmx.assert.txt b/jetty-start/src/test/resources/usecases/jmx.assert.txt index 4bfc6903d87..205c2eae720 100644 --- a/jetty-start/src/test/resources/usecases/jmx.assert.txt +++ b/jetty-start/src/test/resources/usecases/jmx.assert.txt @@ -4,13 +4,13 @@ XML|${jetty.home}/etc/jetty-http.xml XML|${jetty.home}/etc/jetty-jmx.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar -LIB|${jetty.home}/lib/jetty-jmx-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar +LIB|${jetty.home}/lib/jetty-jmx-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar # The Properties we expect (order is irrelevant) diff --git a/jetty-start/src/test/resources/usecases/jsp.assert.txt b/jetty-start/src/test/resources/usecases/jsp.assert.txt index cf6d3a4ab08..96bd0ca416d 100644 --- a/jetty-start/src/test/resources/usecases/jsp.assert.txt +++ b/jetty-start/src/test/resources/usecases/jsp.assert.txt @@ -5,28 +5,28 @@ XML|${jetty.home}/etc/jetty-plus.xml XML|${jetty.home}/etc/jetty-annotations.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-annotations-TEST.jar +LIB|${jetty.home}/lib/jetty-annotations-9.3.jar LIB|${jetty.home}/lib/annotations/asm-5.0.1.jar LIB|${jetty.home}/lib/annotations/asm-commons-5.0.1.jar LIB|${jetty.home}/lib/annotations/javax.annotation-api-1.2.jar -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar -LIB|${jetty.home}/lib/jetty-jndi-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar +LIB|${jetty.home}/lib/jetty-jndi-9.3.jar LIB|${jetty.home}/lib/jndi/javax.mail.glassfish-1.4.1.v201005082020.jar LIB|${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar -LIB|${jetty.home}/lib/jetty-plus-TEST.jar +LIB|${jetty.home}/lib/jetty-plus-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-security-TEST.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-servlet-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-webapp-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-security-9.3.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-servlet-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-webapp-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar -LIB|${jetty.home}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-TEST.jar +LIB|${jetty.home}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.jar LIB|${jetty.home}/lib/apache-jsp/org.eclipse.jetty.orbit.org.eclipse.jdt.core-3.8.2.v20130121.jar -LIB|${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.9.M3.jar -LIB|${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.9.M3.jar +LIB|${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.20.M0.jar +LIB|${jetty.home}/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.20.M0.jar # The Properties we expect (order is irrelevant) # (these are the properties we actually set in the configuration) diff --git a/jetty-start/src/test/resources/usecases/logging.assert.txt b/jetty-start/src/test/resources/usecases/logging.assert.txt index 4b5df4c365f..90780a970b4 100644 --- a/jetty-start/src/test/resources/usecases/logging.assert.txt +++ b/jetty-start/src/test/resources/usecases/logging.assert.txt @@ -3,12 +3,12 @@ XML|${jetty.home}/etc/jetty.xml XML|${jetty.home}/etc/jetty-http.xml # The LIBs we expect (order is irrelevant) -LIB|${jetty.home}/lib/jetty-http-TEST.jar -LIB|${jetty.home}/lib/jetty-io-TEST.jar +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar LIB|${jetty.home}/lib/jetty-schemas-3.1.jar -LIB|${jetty.home}/lib/jetty-server-TEST.jar -LIB|${jetty.home}/lib/jetty-util-TEST.jar -LIB|${jetty.home}/lib/jetty-xml-TEST.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar LIB|${jetty.home}/lib/servlet-api-3.1.jar LIB|${jetty.base}/lib/logging/slf4j-api.jar LIB|${jetty.base}/lib/logging/jul-to-slf4j.jar diff --git a/jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http.mod b/jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http.mod new file mode 100644 index 00000000000..cff80285133 --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http.mod @@ -0,0 +1,39 @@ +# +# Jetty HTTP Connector +# + +[version] +9.3 + +[depend] +server + +[xml] +etc/jetty-http.xml + +[ini-template] +### HTTP Connector Configuration + +## Connector host/address to bind to +# jetty.http.host=0.0.0.0 + +## Connector port to listen on +# jetty.http.port=80 + +## Connector idle timeout in milliseconds +# jetty.http.idleTimeout=30000 + +## Connector socket linger time in seconds (-1 to disable) +# jetty.http.soLingerTime=-1 + +## Number of acceptors (-1 picks default based on number of cores) +# jetty.http.acceptors=-1 + +## Number of selectors (-1 picks default based on number of cores) +# jetty.http.selectors=-1 + +## ServerSocketChannel backlog (0 picks platform default) +# jetty.http.acceptorQueueSize=0 + +## Thread priority delta to give to acceptor threads +# jetty.http.acceptorPriorityDelta=0 diff --git a/jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http3.mod b/jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http3.mod new file mode 100644 index 00000000000..34ec4774162 --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules-too-new/modules/http3.mod @@ -0,0 +1,10 @@ +# +# Fake Jetty HTTP/3 Connector +# + +[version] +10.0 + +[depend] +server + diff --git a/jetty-start/src/test/resources/usecases/versioned-modules-too-new/start.ini b/jetty-start/src/test/resources/usecases/versioned-modules-too-new/start.ini new file mode 100644 index 00000000000..42b2db88de4 --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules-too-new/start.ini @@ -0,0 +1,6 @@ + +--module=server +--module=http +--module=http3 + +jetty.http.port=9090 diff --git a/jetty-start/src/test/resources/usecases/versioned-modules.assert.txt b/jetty-start/src/test/resources/usecases/versioned-modules.assert.txt new file mode 100644 index 00000000000..6de9e84b8ac --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules.assert.txt @@ -0,0 +1,16 @@ +# The XMLs we expect (order is important) +XML|${jetty.home}/etc/jetty.xml +XML|${jetty.home}/etc/jetty-http.xml + +# The LIBs we expect (order is irrelevant) +LIB|${jetty.home}/lib/jetty-http-9.3.jar +LIB|${jetty.home}/lib/jetty-io-9.3.jar +LIB|${jetty.home}/lib/jetty-schemas-3.1.jar +LIB|${jetty.home}/lib/jetty-server-9.3.jar +LIB|${jetty.home}/lib/jetty-util-9.3.jar +LIB|${jetty.home}/lib/jetty-xml-9.3.jar +LIB|${jetty.home}/lib/servlet-api-3.1.jar + +# The Properties we expect (order is irrelevant) +# (this is the property we actually set in jetty.base) +PROP|jetty.http.port=9090 diff --git a/jetty-start/src/test/resources/usecases/versioned-modules/modules/http.mod b/jetty-start/src/test/resources/usecases/versioned-modules/modules/http.mod new file mode 100644 index 00000000000..cff80285133 --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules/modules/http.mod @@ -0,0 +1,39 @@ +# +# Jetty HTTP Connector +# + +[version] +9.3 + +[depend] +server + +[xml] +etc/jetty-http.xml + +[ini-template] +### HTTP Connector Configuration + +## Connector host/address to bind to +# jetty.http.host=0.0.0.0 + +## Connector port to listen on +# jetty.http.port=80 + +## Connector idle timeout in milliseconds +# jetty.http.idleTimeout=30000 + +## Connector socket linger time in seconds (-1 to disable) +# jetty.http.soLingerTime=-1 + +## Number of acceptors (-1 picks default based on number of cores) +# jetty.http.acceptors=-1 + +## Number of selectors (-1 picks default based on number of cores) +# jetty.http.selectors=-1 + +## ServerSocketChannel backlog (0 picks platform default) +# jetty.http.acceptorQueueSize=0 + +## Thread priority delta to give to acceptor threads +# jetty.http.acceptorPriorityDelta=0 diff --git a/jetty-start/src/test/resources/usecases/versioned-modules/modules/http3.mod b/jetty-start/src/test/resources/usecases/versioned-modules/modules/http3.mod new file mode 100644 index 00000000000..bc88f69f3b1 --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules/modules/http3.mod @@ -0,0 +1,12 @@ +# +# Fake Jetty HTTP/3 Connector +# + +[version] +10.0 + +[depend] +server + +[xml] +etc/jetty-http3.xml diff --git a/jetty-start/src/test/resources/usecases/versioned-modules/start.ini b/jetty-start/src/test/resources/usecases/versioned-modules/start.ini new file mode 100644 index 00000000000..a3d92b9524b --- /dev/null +++ b/jetty-start/src/test/resources/usecases/versioned-modules/start.ini @@ -0,0 +1,5 @@ + +--module=server +--module=http + +jetty.http.port=9090