Hello,

I'm currently having an issue with running karaf as a windows service.
Intermittently, I'm getting an exception during startup of the service (see
below). If I restart sometimes, it'll be fine, but other times, I get this
issue. This doesn't occur if I start karaf manually and stop it manually. Is
there a known issue or recommended strategy for dealing with this?

!org.ops4j.pax.web.pax-web-runtime - 6.0.7 | Could not start the servlet
context for context path []
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
        at sun.nio.ch.Net.bind(Net.java:433) [?:?]
        at sun.nio.ch.Net.bind(Net.java:425) [?:?]
        at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
[?:?]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
[?:?]
        at 
org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:317)
[178:org.eclipse.jetty.server:9.3.14.v20161028]
        at
org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
[178:org.eclipse.jetty.server:9.3.14.v20161028]
        at
org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235)
[178:org.eclipse.jetty.server:9.3.14.v20161028]
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[181:org.eclipse.jetty.util:9.3.14.v20161028]
        at org.eclipse.jetty.server.Server.doStart(Server.java:401)
[178:org.eclipse.jetty.server:9.3.14.v20161028]
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[181:org.eclipse.jetty.util:9.3.14.v20161028]
        at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:329)
[203:org.ops4j.pax.web.pax-web-jetty:6.0.7]
        at
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:250)
[205:org.ops4j.pax.web.pax-web-runtime:6.0.7]
        at
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:221)
[205:org.ops4j.pax.web.pax-web-runtime:6.0.7]
        at
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:205)
[205:org.ops4j.pax.web.pax-web-runtime:6.0.7]
        at
org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:65)
[205:org.ops4j.pax.web.pax-web-runtime:6.0.7]
        at
org.apache.cxf.transport.http.osgi.ServletExporter.updated(ServletExporter.java:108)
[125:org.apache.cxf.cxf-rt-transports-http:3.1.11]
        at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)
[7:org.apache.felix.configadmin:1.8.16]
        at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)
[7:org.apache.felix.configadmin:1.8.16]
        at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)
[7:org.apache.felix.configadmin:1.8.16]
        at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1479)
[7:org.apache.felix.configadmin:1.8.16]
        at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1435)
[7:org.apache.felix.configadmin:1.8.16]
        at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)
[7:org.apache.felix.configadmin:1.8.16]
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)
[7:org.apache.felix.configadmin:1.8.16]
        at java.lang.Thread.run(Thread.java:748) [?:?]

Stephen




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to