Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Class project

ALPN is the protocol negotiation for TLS in order to use HTTP/2
Unfortunately, ALPN is not yet provided by the JVM/JDK classes (support is due in Java 9)
So that means, we have provided our own ALPN modifications to the OpenJDK SSL layers
This is accomplished by a JVM specific XBootClasspath jar that adds this functionality in.

Note: not ALL JVMs have an alpn-boot.jar available for it.

See https://www.eclipse.org/jetty/documentation/current/alpn-chapter.html#alpn-versions
If the JVM you are using is not on this list, then you can't use that JVM to build/compile/test Jetty.
ALPN support is only available for Oracle and/or OpenJDK release of Java (currently).
If you are using an alternate JVM (such as Android, IBM, Azul, IcedTea, Kaffe, GCJ, etc) you will be unable to build/test Jetty.


Joakim Erdfelt / joakim@xxxxxxxxxxx

On Mon, Oct 26, 2015 at 10:21 AM, snipes paul <slaughter.p@xxxxxxxxxxx> wrote:

Hello Joakim,


I am trying to build Jetty project to run the unit test. However, I am getting error message like 


"Tests in error: 

  ALPNNegotiationTest.testAbruptCloseDuringHandshake:129 » AbstractMethod org.ec...

  ALPNNegotiationTest.testClientAdvertisingHTTPServerSpeaksHTTP:191 » AbstractMethod

  ALPNNegotiationTest.testClientAdvertisingMultipleProtocolsServerSpeaksHTTPWhenNegotiated:243 » AbstractMethod

  ALPNNegotiationTest.testClientNotSupportingALPNServerSpeaksDefaultProtocol:294 » AbstractMethod

  ALPNNegotiationTest.testGentleCloseDuringHandshake:70 » AbstractMethod org.ecl..."


I was wondering if the problem is with my SSL set up on my entire server or if it's something else I'm doing wrong?


Here is the test code where the error happens:


        SslContextFactory sslContextFactory = newSslContextFactory();

        sslContextFactory.start();

        SSLEngine sslEngine = sslContextFactory.newSSLEngine(address);

        sslEngine.setUseClientMode(true);

        ALPN.put(sslEngine, new ALPN.ClientProvider()

        {

            @Override

            public void unsupported()

            {

            }


            @Override

            public List<String> protocols()

            {

                return Arrays.asList("h2");

            }


            @Override

            public void selected(String s)

            {

            }

        });

        sslEngine.beginHandshake();


Thanks




From: jetty-dev-bounces@xxxxxxxxxxx <jetty-dev-bounces@xxxxxxxxxxx> on behalf of Joakim Erdfelt <joakim@xxxxxxxxxxx>
Sent: Thursday, October 22, 2015 2:48 PM

To: Jetty @ Eclipse developer discussion list
Subject: Re: [jetty-dev] Class project
 
First, if you are using the git repository, use one of the stable tags to build from, not the master branch or anything that could be considered "in flux"

Use Maven 3.3.3 (or better)
Your JVM is fine, no change needed.

Our test cases can be very network heavy (for obvious reasons), so if you don't have your file handles or (other ulimits) setup properly you might hit other errors.  I can't offer advice on what to set the ulimits up as, as it varys per individual.  But know that if you do have test failures, the details should quickly reveal if its a ulimit issue or not.

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Thu, Oct 22, 2015 at 11:32 AM, snipes paul <slaughter.p@xxxxxxxxxxx> wrote:

Thanks Greg!!


I downloaded the project, however, I'm having a problem building Jetty, went I run "mvn clean install" from the command line.

error message:

"Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test" "Jetty :: Asynchronous HTTP Client ................. FAILURE [8:37.885s]"


I am using:

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)

Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)


with:

Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_60, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.8.0_60/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-25-generic", arch: "amd64", family: "unix"


I installed Ubuntu on my VMware:

ubuntu 14.04 LTS


I want to run the unit tests for a class project but I am not able to run them. Can you please help me to get it working.


Thanks


From: jetty-dev-bounces@xxxxxxxxxxx <jetty-dev-bounces@xxxxxxxxxxx> on behalf of Greg Wilkins <gregw@xxxxxxxxxxx>
Sent: Wednesday, October 21, 2015 4:17 PM
To: Jetty @ Eclipse developer discussion list
Subject: Re: [jetty-dev] Class project
 

Unit tests are available if you checkout the project from git. See https://www.eclipse.org/jetty/documentation/current/contributing-source-build.html

On 22 October 2015 at 03:39, snipes paul <slaughter.p@xxxxxxxxxxx> wrote:
Hello,

I downloaded jetty-9.3.3.v20150827. However, I will like to know where I can download the developer version because I would like to run the junit test for my class project. 

Thanks

Sent from my T-Mobile 4G LTE Device

_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev



--

_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


Back to the top