thank Jan
On Dec 3, 2015, at 2:58 PM, Jan Willem Janssen 
<janwillem.jans...@luminis.eu<mailto:janwillem.jans...@luminis.eu>> wrote:


On 03 Dec 2015, at 14:54, Antonio Sanso 
<asa...@adobe.com<mailto:asa...@adobe.com>> wrote:

this is really similar to the code I have been used.
But I always have

03.12.2015 15:17:32.412 *ERROR* [qtp88980584-1333] org.apache.felix.http.jetty 
Failed starting connector 
'ServerConnector@6c9616e3{SSL-HTTP/1.1}{0.0.0.0:8433}' provided by 
[org.apache.felix.http.jetty.ConnectorFactory] (java.net.BindException: Address 
already in use)

I assume this is due

...
ServerConnector connector = new ServerConnector(server, sslContextFactory);
…

did you experience the same issue?

Not that I remember, but I can think of a reason why you get this error: I 
think you are trying
to use the same port that Jetty is also is using for its own SSL connector. 
Either you need to
disable the HTTPS port for Jetty (by providing it a configuration) or bind your 
own SSL connector
to a different port…

actually the Jetty HTTPS connector is not enabled.
On top I have tried to configure a different port aka 8434 but got the same 
result

03.12.2015 15:27:52.560 *ERROR* [qtp88980584-1363] org.apache.felix.http.jetty 
Failed starting connector 
'ServerConnector@2324caee{SSL-HTTP/1.1}{0.0.0.0:8434}' provided by 
[org.apache.felix.http.jetty.ConnectorFactory] (java.net.BindException: Address 
already in use)
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.Net.bind(Net.java:428)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
at 
org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at 
org.apache.felix.http.jetty.internal.ConnectorFactoryTracker.addingService(ConnectorFactoryTracker.java:58)

I think this is more related to the host used. Should I use a different host as 
well?

regards

antonio


--
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

My world is revolving around INAETICS and Amdatu

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

http://www.luminis-technologies.com
http://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8169.78.566.B.01


Reply via email to