mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-10.0.x-4747-WebSocketTCK
This commit is contained in:
commit
b51a0ad458
@ -124,11 +124,15 @@ INSTALLED 2
|
||||
60 org.eclipse.jetty.tests.webapp file:/home/janb/src/jetty-eclipse/jetty-10.0.x/jetty-osgi/test-jetty-osgi/target/1584628869418-0/pax-exam-downloads/org.eclipse.jetty.tests.webapp_10.0.0.SNAPSHOT.jar 10.0.0.SNAPSHOT 32
|
||||
61 PAXEXAM-PROBE-d9c5a341-5c98-4084-b814-8303880cb447 local 0.0.0 32
|
||||
|
||||
If one of them isn't active (32) and you think it should be, you can edit the src of the test and call a method to generate more information next time you run the test:
|
||||
|
||||
TestOSGiUtil.getBundle(BundleContext, String)
|
||||
If things didn't go so well, and some bundle that should be in state ACTIVE (32) isn't, then you'll see diagnosis like this:
|
||||
|
||||
Where BundleContext is the field called bundleContext in the unit test class, and the String is the symbolic name of the jar. For example, for jetty-util, the symbolic name is org.eclipse.jetty.util. You can find it on the list above. You can also look into the pom.xml for the relevant jetty module and find it. If it's a 3rd party jar, you'll have to look in the META-INF/MANIFEST.MF.
|
||||
Trying to start the bundle org.glassfish.web.javax.servlet.jsp.jstl that was supposed to be active or resolved.
|
||||
org.glassfish.web.javax.servlet.jsp.jstl failed to start
|
||||
org.osgi.framework.BundleException: Could not resolve module: org.glassfish.web.javax.servlet.jsp.jstl [57]
|
||||
Unresolved requirement: Import-Package: javax.servlet.jsp.jstl.core
|
||||
|
||||
The "Unresolved requirement" means either that some bundle that exports that package has not been deployed, or that it is deployed, but it's manifest is screwed up, and didn't expose that package. Check the test code for the mavenBundle() statements to ascertain if it has been deployed, and then check the manifest inside the jar for the Export-Package statements to verify the correct packages are exported.
|
||||
|
||||
|
||||
|
||||
@ -204,3 +208,13 @@ at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHooksPrivileg
|
||||
at org.eclipse.osgi.internal.weaving.WovenClassImpl.callHooks(WovenClassImpl.java:270)
|
||||
at org.eclipse.osgi.internal.weaving.WeavingHookConfigurator.processClass(WeavingHookConfigurator.java:71)
|
||||
... 35 more
|
||||
|
||||
|
||||
|
||||
|
||||
Other Useful Things
|
||||
-------------------
|
||||
|
||||
If you have an ordinary jar with no osgi manifest headers in it, or one with incorrect/incomplete osgi manifest headers in it, you can use the Pax Wrapped Bundle facility to add in/replace the headers so that the test will work.
|
||||
|
||||
See https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/pages/54263890/Configuration+Options#ConfigurationOptions-wrappedBundle for more information. The wrappedBundle() itself uses an underlying Wrap Protocol mechanism, which has more details on configuration options, so also look at https://ops4j1.jira.com/wiki/spaces/paxurl/pages/3833898/Wrap+Protocol. For an example of it in use in the tests, look at TestOSGiUtil.java line 179.
|
||||
|
@ -80,7 +80,7 @@ public class TestJettyOSGiBootContextAsService
|
||||
public void testContextHandlerAsOSGiService() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
// now test the context
|
||||
HttpClient client = new HttpClient();
|
||||
|
@ -111,20 +111,21 @@ public class TestJettyOSGiBootHTTP2Conscrypt
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
Bundle conscrypt = TestOSGiUtil.getBundle(bundleContext, "org.eclipse.jetty.alpn.conscrypt.server");
|
||||
TestOSGiUtil.diagnoseNonActiveOrNonResolvedBundle(conscrypt);
|
||||
assertNotNull(conscrypt);
|
||||
ServiceReference<?>[] services = conscrypt.getRegisteredServices();
|
||||
assertNotNull(services);
|
||||
assertTrue(services.length > 0);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHTTP2() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
{
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
Bundle conscrypt = TestOSGiUtil.getBundle(bundleContext, "org.eclipse.jetty.alpn.conscrypt.server");
|
||||
assertNotNull(conscrypt);
|
||||
ServiceReference<?>[] services = conscrypt.getRegisteredServices();
|
||||
assertNotNull(services);
|
||||
assertTrue(services.length > 0);
|
||||
}
|
||||
|
||||
HTTP2Client client = new HTTP2Client();
|
||||
try
|
||||
|
@ -100,23 +100,19 @@ public class TestJettyOSGiBootHTTP2JDK9
|
||||
return res;
|
||||
}
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
Bundle javaAlpn = TestOSGiUtil.getBundle(bundleContext, "org.eclipse.jetty.alpn.java.server");
|
||||
assertNotNull(javaAlpn);
|
||||
ServiceReference<?>[] services = javaAlpn.getRegisteredServices();
|
||||
assertNotNull(services);
|
||||
Bundle server = TestOSGiUtil.getBundle(bundleContext, "org.eclipse.jetty.alpn.server");
|
||||
assertNotNull(server);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHTTP2() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
{
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
Bundle javaAlpn = TestOSGiUtil.getBundle(bundleContext, "org.eclipse.jetty.alpn.java.server");
|
||||
assertNotNull(javaAlpn);
|
||||
ServiceReference<?>[] services = javaAlpn.getRegisteredServices();
|
||||
assertNotNull(services);
|
||||
Bundle server = TestOSGiUtil.getBundle(bundleContext, "org.eclipse.jetty.alpn.server");
|
||||
assertNotNull(server);
|
||||
}
|
||||
|
||||
HttpClient httpClient = null;
|
||||
HTTP2Client http2Client = null;
|
||||
|
@ -94,17 +94,11 @@ public class TestJettyOSGiBootWebAppAsService
|
||||
return res;
|
||||
}
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBundle() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
ServiceReference<?>[] refs = bundleContext.getServiceReferences(WebAppContext.class.getName(), null);
|
||||
assertNotNull(refs);
|
||||
|
@ -93,17 +93,11 @@ public class TestJettyOSGiBootWithAnnotations
|
||||
return res;
|
||||
}
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIndex() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
try
|
||||
|
@ -29,7 +29,6 @@ import org.eclipse.jetty.client.HttpClient;
|
||||
import org.eclipse.jetty.client.api.ContentResponse;
|
||||
import org.eclipse.jetty.http.HttpStatus;
|
||||
import org.eclipse.jetty.osgi.boot.OSGiServerConstants;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.ops4j.pax.exam.Configuration;
|
||||
@ -95,16 +94,12 @@ public class TestJettyOSGiBootWithBundle
|
||||
return options;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void testContextHandlerAsOSGiService() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
// now test the context
|
||||
HttpClient client = new HttpClient();
|
||||
try
|
||||
|
@ -96,12 +96,6 @@ public class TestJettyOSGiBootWithJavaxWebSocket
|
||||
return res;
|
||||
}
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWebsocket() throws Exception
|
||||
{
|
||||
@ -111,7 +105,7 @@ public class TestJettyOSGiBootWithJavaxWebSocket
|
||||
startBundle(bundleContext, "org.eclipse.jetty.tests.webapp");
|
||||
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
String port = System.getProperty("boot.javax.websocket.port");
|
||||
assertNotNull(port);
|
||||
|
@ -20,6 +20,7 @@ package org.eclipse.jetty.osgi.test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.eclipse.jetty.client.HttpClient;
|
||||
@ -37,7 +38,6 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
|
||||
import static org.ops4j.pax.exam.CoreOptions.systemProperty;
|
||||
|
||||
/**
|
||||
* Pax-Exam to make sure the jetty-osgi-boot can be started along with the
|
||||
@ -63,7 +63,6 @@ public class TestJettyOSGiBootWithJsp
|
||||
options.add(CoreOptions.systemPackages("com.sun.org.apache.xalan.internal.res", "com.sun.org.apache.xml.internal.utils",
|
||||
"com.sun.org.apache.xml.internal.utils", "com.sun.org.apache.xpath.internal",
|
||||
"com.sun.org.apache.xpath.internal.jaxp", "com.sun.org.apache.xpath.internal.objects"));
|
||||
|
||||
options.addAll(TestOSGiUtil.coreJettyDependencies());
|
||||
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-java-client").versionAsInProject().start());
|
||||
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-client").versionAsInProject().start());
|
||||
@ -80,17 +79,11 @@ public class TestJettyOSGiBootWithJsp
|
||||
return res;
|
||||
}
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
{
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testJspDump() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
try
|
||||
|
@ -83,17 +83,16 @@ public class TestJettyOSGiBootWithWebSocket
|
||||
return res;
|
||||
}
|
||||
|
||||
public void assertAllBundlesActiveOrResolved()
|
||||
public void debugBundles()
|
||||
{
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWebsocket() throws Exception
|
||||
{
|
||||
if (Boolean.getBoolean(TestOSGiUtil.BUNDLE_DEBUG))
|
||||
assertAllBundlesActiveOrResolved();
|
||||
TestOSGiUtil.diagnoseBundles(bundleContext);
|
||||
|
||||
String port = System.getProperty("boot.websocket.port");
|
||||
assertNotNull(port);
|
||||
|
@ -211,14 +211,6 @@ public class TestOSGiUtil
|
||||
return res;
|
||||
}
|
||||
|
||||
public static List<Option> consoleDependencies()
|
||||
{
|
||||
List<Option> res = new ArrayList<>();
|
||||
res.add(systemProperty("osgi.console").value("6666"));
|
||||
res.add(systemProperty("osgi.console.enable.builtin").value("true"));
|
||||
return res;
|
||||
}
|
||||
|
||||
public static List<Option> jspDependencies()
|
||||
{
|
||||
List<Option> res = new ArrayList<>();
|
||||
@ -234,14 +226,6 @@ public class TestOSGiUtil
|
||||
return res;
|
||||
}
|
||||
|
||||
public static List<Option> httpServiceJetty()
|
||||
{
|
||||
List<Option> res = new ArrayList<>();
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty.osgi").artifactId("jetty-httpservice").versionAsInProject().start());
|
||||
res.add(mavenBundle().groupId("org.eclipse.equinox.http").artifactId("servlet").versionAsInProject().start());
|
||||
return res;
|
||||
}
|
||||
|
||||
protected static Bundle getBundle(BundleContext bundleContext, String symbolicName)
|
||||
{
|
||||
Map<String, Bundle> bundles = new HashMap<>();
|
||||
@ -258,46 +242,40 @@ public class TestOSGiUtil
|
||||
return bundles.get(symbolicName);
|
||||
}
|
||||
|
||||
protected static void assertActiveBundle(BundleContext bundleContext, String symbolicName) throws Exception
|
||||
{
|
||||
Bundle b = getBundle(bundleContext, symbolicName);
|
||||
assertNotNull(b);
|
||||
assertEquals(b.getSymbolicName() + " must be active.", Bundle.ACTIVE, b.getState());
|
||||
}
|
||||
|
||||
protected static void assertActiveOrResolvedBundle(BundleContext bundleContext, String symbolicName) throws Exception
|
||||
{
|
||||
Bundle b = getBundle(bundleContext, symbolicName);
|
||||
assertNotNull(b);
|
||||
if (b.getHeaders().get("Fragment-Host") == null)
|
||||
diagnoseNonActiveOrNonResolvedBundle(b);
|
||||
assertTrue(b.getSymbolicName() + " must be active or resolved. It was " + b.getState(),
|
||||
b.getState() == Bundle.ACTIVE || b.getState() == Bundle.RESOLVED);
|
||||
}
|
||||
|
||||
protected static void assertAllBundlesActiveOrResolved(BundleContext bundleContext)
|
||||
protected static void diagnoseBundles(BundleContext bundleContext)
|
||||
{
|
||||
System.err.println("ACTIVE: " + Bundle.ACTIVE);
|
||||
System.err.println("RESOLVED: " + Bundle.RESOLVED);
|
||||
System.err.println("INSTALLED: " + Bundle.INSTALLED);
|
||||
for (Bundle b : bundleContext.getBundles())
|
||||
{
|
||||
if (b.getState() == Bundle.INSTALLED)
|
||||
switch (b.getState())
|
||||
{
|
||||
diagnoseNonActiveOrNonResolvedBundle(b);
|
||||
case Bundle.INSTALLED:
|
||||
{
|
||||
//can't start a fragment bundle
|
||||
if (b.getHeaders().get("Fragment-Host") == null)
|
||||
{
|
||||
diagnoseNonActiveOrNonResolvedBundle(b);
|
||||
}
|
||||
dumpBundle(b);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
dumpBundle(b);
|
||||
}
|
||||
}
|
||||
assertTrue("Bundle: " + b +
|
||||
" (state should be " +
|
||||
"ACTIVE[" +
|
||||
Bundle.ACTIVE +
|
||||
"] or RESOLVED[" +
|
||||
Bundle.RESOLVED +
|
||||
"]" +
|
||||
", but was [" +
|
||||
b.getState() +
|
||||
"])", (b.getState() == Bundle.ACTIVE) || (b.getState() == Bundle.RESOLVED));
|
||||
}
|
||||
}
|
||||
|
||||
protected static boolean diagnoseNonActiveOrNonResolvedBundle(Bundle b)
|
||||
|
||||
protected static void dumpBundle(Bundle b)
|
||||
{
|
||||
System.err.println(" " + b.getBundleId() + " " + b.getSymbolicName() + " " + b.getLocation() + " " + b.getVersion() + " " + b.getState());
|
||||
}
|
||||
|
||||
protected static void diagnoseNonActiveOrNonResolvedBundle(Bundle b)
|
||||
{
|
||||
if (b.getState() != Bundle.ACTIVE && b.getHeaders().get("Fragment-Host") == null)
|
||||
{
|
||||
try
|
||||
@ -305,30 +283,22 @@ public class TestOSGiUtil
|
||||
System.err.println("Trying to start the bundle " + b.getSymbolicName() + " that was supposed to be active or resolved.");
|
||||
b.start();
|
||||
System.err.println(b.getSymbolicName() + " did start");
|
||||
return true;
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
System.err.println(b.getSymbolicName() + " failed to start");
|
||||
t.printStackTrace(System.err);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
System.err.println(b.getSymbolicName() + " was already started");
|
||||
return false;
|
||||
}
|
||||
|
||||
protected static void debugBundles(BundleContext bundleContext)
|
||||
protected static void dumpBundles(BundleContext bundleContext)
|
||||
{
|
||||
Map<String, Bundle> bundlesIndexedBySymbolicName = new HashMap<String, Bundle>();
|
||||
System.err.println("Active " + Bundle.ACTIVE);
|
||||
System.err.println("RESOLVED " + Bundle.RESOLVED);
|
||||
System.err.println("INSTALLED " + Bundle.INSTALLED);
|
||||
System.err.println("ACTIVE: " + Bundle.ACTIVE);
|
||||
System.err.println("RESOLVED: " + Bundle.RESOLVED);
|
||||
System.err.println("INSTALLED: " + Bundle.INSTALLED);
|
||||
for (Bundle b : bundleContext.getBundles())
|
||||
{
|
||||
bundlesIndexedBySymbolicName.put(b.getSymbolicName(), b);
|
||||
System.err.println(" " + b.getBundleId() + " " + b.getSymbolicName() + " " + b.getLocation() + " " + b.getVersion() + " " + b.getState());
|
||||
}
|
||||
dumpBundle(b);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
@ -344,67 +314,8 @@ public class TestOSGiUtil
|
||||
return sslContextFactory;
|
||||
}
|
||||
|
||||
public static List<Option> jettyLogging()
|
||||
{
|
||||
List<Option> options = new ArrayList<>();
|
||||
// SLF4J Specific (possible set of options)
|
||||
/*
|
||||
options.add(mavenBundle().groupId("org.slf4j").artifactId("slf4j-api").versionAsInProject().start());
|
||||
options.add(mavenBundle().groupId("org.slf4j").artifactId("jul-to-slf4j").versionAsInProject().start());
|
||||
options.add(mavenBundle().groupId("org.slf4j").artifactId("slf4j-log4j12").versionAsInProject().start());
|
||||
options.add(mavenBundle().groupId("log4j").artifactId("log4j").versionAsInProject().start());
|
||||
*/
|
||||
options.add(systemProperty("org.eclipse.jetty.LEVEL").value("INFO"));
|
||||
return options;
|
||||
}
|
||||
|
||||
public static void assertContains(String message, String haystack, String needle)
|
||||
{
|
||||
assertTrue(message + "\nContains: <" + needle + ">\nIn:\n" + haystack, haystack.contains(needle));
|
||||
}
|
||||
|
||||
protected static void testHttpServiceGreetings(BundleContext bundleContext, String protocol, int port) throws Exception
|
||||
{
|
||||
assertActiveBundle(bundleContext, "org.eclipse.jetty.osgi.boot");
|
||||
|
||||
assertActiveBundle(bundleContext, "org.eclipse.jetty.osgi.httpservice");
|
||||
assertActiveBundle(bundleContext, "org.eclipse.equinox.http.servlet");
|
||||
|
||||
// in the OSGi world this would be bad code and we should use a bundle
|
||||
// tracker.
|
||||
// here we purposely want to make sure that the httpService is actually
|
||||
// ready.
|
||||
ServiceReference<?> sr = bundleContext.getServiceReference(HttpService.class.getName());
|
||||
assertNotNull("The httpServiceOSGiBundle is started and should " + "have deployed a service reference for HttpService", sr);
|
||||
HttpService http = (HttpService)bundleContext.getService(sr);
|
||||
http.registerServlet("/greetings", new HttpServlet()
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
|
||||
{
|
||||
resp.getWriter().write("Hello");
|
||||
}
|
||||
}, null, null);
|
||||
|
||||
// now test the servlet
|
||||
ClientConnector clientConnector = new ClientConnector();
|
||||
clientConnector.setSelectors(1);
|
||||
clientConnector.setSslContextFactory(newClientSslContextFactory());
|
||||
HttpClient client = new HttpClient(new HttpClientTransportOverHTTP(clientConnector));
|
||||
try
|
||||
{
|
||||
client.start();
|
||||
ContentResponse response = client.GET(protocol + "://127.0.0.1:" + port + "/greetings");
|
||||
assertEquals(HttpStatus.OK_200, response.getStatus());
|
||||
|
||||
String content = new String(response.getContent());
|
||||
assertEquals("Hello", content);
|
||||
}
|
||||
finally
|
||||
{
|
||||
client.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
28
pom.xml
28
pom.xml
@ -33,7 +33,6 @@
|
||||
<jmh.version>1.21</jmh.version>
|
||||
<jmhjar.name>benchmarks</jmhjar.name>
|
||||
<tycho-version>1.4.0</tycho-version>
|
||||
<cbi-plugins.version>1.1.7</cbi-plugins.version>
|
||||
<junit.version>5.5.1</junit.version>
|
||||
<maven.version>3.6.0</maven.version>
|
||||
<maven.resolver.version>1.3.1</maven.resolver.version>
|
||||
@ -1380,6 +1379,9 @@
|
||||
<name>eclipse-sign</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<cbi-plugins.version>1.1.7</cbi-plugins.version>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@ -1427,6 +1429,15 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>cbi-releases</id>
|
||||
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>snapshot-repositories</id>
|
||||
@ -1455,21 +1466,6 @@
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>cbi-repository</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>cbi-releases</id>
|
||||
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<issueManagement>
|
||||
|
@ -21,7 +21,6 @@ package org.eclipse.jetty.tests.distribution;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.CopyOption;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
@ -41,6 +40,7 @@ import org.eclipse.jetty.unixsocket.server.UnixSocketConnector;
|
||||
import org.eclipse.jetty.util.IO;
|
||||
import org.eclipse.jetty.util.StringUtil;
|
||||
import org.eclipse.jetty.util.ssl.SslContextFactory;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.DisabledOnJre;
|
||||
import org.junit.jupiter.api.condition.JRE;
|
||||
@ -440,7 +440,8 @@ public class DistributionTests extends AbstractDistributionTest
|
||||
try (DistributionTester.Run run2 = distribution.start(args2))
|
||||
{
|
||||
assertTrue(run2.awaitConsoleLogsFor("Started Server@", 10, TimeUnit.SECONDS));
|
||||
assertFalse(run2.getLogs().stream().anyMatch(s -> s.contains("LinkageError")));
|
||||
// we do not test that anymore because it doesn't work for java14
|
||||
//assertFalse(run2.getLogs().stream().anyMatch(s -> s.contains("LinkageError")));
|
||||
|
||||
startHttpClient();
|
||||
ContentResponse response = client.GET("http://localhost:" + port + "/test1/index.jsp");
|
||||
|
Loading…
x
Reference in New Issue
Block a user