Hi Arun,

Can you check system.properties in etc folder? you are having a pax-web
http port clash.  In one of the instances
change org.osgi.service.http.port=8181 to some other port number.  Stack
trace is not able to start pax-web service on 8181 as it may have been used
by other instance already.

Regards,

Ulhas Bhole


On Thu, Nov 28, 2013 at 1:17 AM, arun kumar <[email protected]> wrote:

> Hello All,
>
> I am using Service mix instance 4.5.2.
> I have interconnected two serivemix instances (running on same machine)
> using network of brokers but in both the instances I see that the status of
> activemq-broker.xml is "Grace period".
>
> The config of activemq-broker.xml (Instance 1) is:
> <networkConnectors>
>              <networkConnector uri="static:(tcp://localhost:62001)"/>
>         </networkConnectors>
>         <transportConnectors>
>             <transportConnector uri="tcp://localhost:62002"/>
>  </transportConnectors>
>
> The config of activemq-broker.xml (Instance 2) is:
> <networkConnectors>
>              <networkConnector uri="static:(tcp://localhost:62002)"/>
>         </networkConnectors>
>         <transportConnectors>
>             <transportConnector uri="tcp://localhost:62001"/>
> </transportConnectors>
>
> I have changed the rmiRegistryPort on Smx instance 2 to different value
> than
> on Smx instance 1.
> On instance 1 logs there are no errors/excpetions but on instance 2 I get
> the BindException pasted below.
>
> I am not able to figure out what is wrong.
> Can some one throw some light on this issue.
>
> Thank you very much,
> Arun
>
>
> 02:07:49,047 | WARN  | g.ops4j.pax.web) | AbstractLifeCycle
>  |
> 121 - org.eclipse.jetty.util - 7.5.4.v20111024 | FAILED
> [email protected]:8181 FAILED: java.net.BindException:
> Address already in use: bind
> java.net.BindException: Address already in use: bind
>         at sun.nio.ch.Net.bind(Native Method)[:1.6.0_12]
>         at
>
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)[:1.6.0_12]
>         at
> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)[:1.6.0_12]
>         at
>
> org.eclipse.jetty.server.nio.BlockingChannelConnector.open(BlockingChannelConnector.java:122)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:300)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.server.nio.BlockingChannelConnector.doStart(BlockingChannelConnector.java:80)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)[121:org.eclipse.jetty.util:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.server.Server.doStart(Server.java:272)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)[121:org.eclipse.jetty.util:7.5.4.v20111024]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:98)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:356)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:67)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.configure(ServerControllerImpl.java:261)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:84)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.internal.Activator$2.updated(Activator.java:150)[139:org.ops4j.pax.web.pax-web-runtime:1.0.12.1]
>         at
>
> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1160)[5:org.apache.felix.configadmin:1.2.8]
>         at
>
> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)[5:org.apache.felix.configadmin:1.2.8]
>         at java.lang.Thread.run(Thread.java:619)[:1.6.0_12]
> 02:07:49,048 | WARN  | g.ops4j.pax.web) | AbstractLifeCycle
>  |
> 121 - org.eclipse.jetty.util - 7.5.4.v20111024 | FAILED
> org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper@19c8551:
> java.net.BindException: Address already in use: bind
> java.net.BindException: Address already in use: bind
>         at sun.nio.ch.Net.bind(Native Method)[:1.6.0_12]
>         at
>
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)[:1.6.0_12]
>         at
> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)[:1.6.0_12]
>         at
>
> org.eclipse.jetty.server.nio.BlockingChannelConnector.open(BlockingChannelConnector.java:122)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:300)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.server.nio.BlockingChannelConnector.doStart(BlockingChannelConnector.java:80)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)[121:org.eclipse.jetty.util:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.server.Server.doStart(Server.java:272)[117:org.eclipse.jetty.server:7.5.4.v20111024]
>         at
>
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)[121:org.eclipse.jetty.util:7.5.4.v20111024]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:98)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:356)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:67)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.configure(ServerControllerImpl.java:261)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:84)[137:org.ops4j.pax.web.pax-web-jetty:1.0.12.1]
>         at
>
> org.ops4j.pax.web.service.internal.Activator$2.updated(Activator.java:150)[139:org.ops4j.pax.web.pax-web-runtime:1.0.12.1]
>         at
>
> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1160)[5:org.apache.felix.configadmin:1.2.8]
>         at
>
> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)[5:org.apache.felix.configadmin:1.2.8]
>         at java.lang.Thread.run(Thread.java:619)[:1.6.0_12]
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/atcivemq-broker-xml-status-GracePeriod-forever-tp5718397.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to