I did my configuration in Java (Kotlin) instead of XML. It's nice that some things are compile errors when you use code. Here is my sample project, in case it helps: https://github.com/GlenKPeterson/http2-server-jar-sample Not sure if it's helped anyone else, but it should get an A on the SSL Labs test and also support IE11/Win7 if you do it that way.
On Fri, Feb 7, 2020 at 2:03 PM Balaji Srinivasan <[email protected]> wrote: > I am just following the code in the examples given in the link shared > earlier. I am also including the correct packages as in code . What am I > missing? How it's valid only in Java code whereas not in XML ? Anyway > definition of XML needs to be changed ? Guide me > > On Fri, 7 Feb, 2020, 8:00 pm Simone Bordet, <[email protected]> wrote: > >> Hi, >> >> On Fri, Feb 7, 2020 at 12:33 PM Balaji Srinivasan <[email protected]> >> wrote: >> > >> > Tried with few combinations >> >> You should look at the Java code and match what you write in the XML. >> In particular the signatures for constructors and methods. >> >> > <Call name="addConnector"> >> > <Arg> >> > <New class="org.eclipse.jetty.server.ServerConnector"> >> > <Arg><Ref refid="<ServerName From Configure>"/></Arg> >> > <Arg><Ref refid="httpFactory"/></Arg> >> > </New> >> >> There is no such constructor in Java code, and correctly it is reported >> below: >> >> > Caused by: java.lang.IllegalStateException: No suitable constructor: >> <New class="org.eclipse.jetty.server.ServerConnector"><Arg><Ref >> refid="<ServerNameFromConfigure>"/></Arg><Arg><Ref >> refid="httpFactory"/></Arg></New> on Server@2038ae61 >> {STOPPED}[9.4.26.v20200117] >> >> There is no such constructor. >> Please look at the Java signature for ServerConnector and match that >> with your XML. >> >> -- >> Simone Bordet >> ---- >> http://cometd.org >> http://webtide.com >> Developer advice, training, services and support >> from the Jetty & CometD experts. >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://www.eclipse.org/mailman/listinfo/jetty-users >> > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/jetty-users -- Glen K. Peterson (828) 393-0081
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
