[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] SSL Config with Jetty 9
|
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:
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.
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
Hi,
On Fri, Feb 7, 2020 at 12:33 PM Balaji Srinivasan <balaaagi@xxxxxxxxx> 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
jetty-users@xxxxxxxxxxx
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
jetty-users@xxxxxxxxxxx
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