[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-dev] setting up multiple SSL listeners
|
I'm using jetty-distribution-9.3.21.v20170918, and want to stand
up two SSL listeners.
My first shot at this failed, and I wanted to understand if there
was an approved way of doing this.
My naive experiments:
- Create a local copy of "etc/jetty-ssl.xml", and within it, create
a duplicate <Call name="addConnector"> block, changing only the
port number from 8443 to 443.
- Create a copy of the stock jetty-ssl.xml into etc/new-jetty-ssl.xml,
and alter the port, and name of property to 'jetty.ssl.port.second'.
In both cases, I got this error thrown upon startup, but I'm uncertain
how to move on from here.
I'd appreciate any feedback..
2017-10-05 21:48:23.096:INFO:oejs.AbstractConnector:main: Started
ServerConnector@1e5034eb{SSL,[ssl, http/1.1]}{0.0.0.0:443}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:215)
at org.eclipse.jetty.start.Main.start(Main.java:458)
at org.eclipse.jetty.start.Main.main(Main.java:76)
Caused by: java.lang.IllegalStateException: No protocol factory for default
protocol: null
at
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:258)
at
org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81)
at
org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:401)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1540)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1462)
... 7 more
--
Brian Reichert <reichert@xxxxxxxxxxx>
BSD admin/developer at large