eXo platform: java.net.BindException: Address already in use: bind

Trabla: eXo platform: java.net.BindException: Address already in use: bind


eXo platform java.net.BindException Address already


Full Console Output:

2016-04-23 21:09:07,358 | ERROR | Failed to start end point associated with Prot
ocolHandler ["http-nio-0.0.0.0-8080"] [o.apache.coyote.http11.Http11NioProtocol<
main>]
java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_92]
        at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_92]
        at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_92]
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_92
]
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_92]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:475) ~[t
omcat-coyote.jar:7.0.63]
        at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.ja
va:666) ~[tomcat-coyote.jar:7.0.63]
        at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:449) ~
[tomcat-coyote.jar:7.0.63]
        at org.apache.catalina.connector.Connector.startInternal(Connector.java:
1007) [catalina.jar:7.0.63]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[catalina.jar:7.0.63]
        at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:459) [catalina.jar:7.0.63]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[catalina.jar:7.0.63]
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:739) [catalina.jar:7.0.63]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[catalina.jar:7.0.63]
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689) [catali
na.jar:7.0.63]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.
0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.
0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:
1.8.0_92]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_92]
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321) [boot
strap.jar:7.0.63]
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) [boots
trap.jar:7.0.63]
2016-04-23 21:09:07,408 | ERROR | Failed to start connector [Connector[org.apach
e.coyote.http11.Http11NioProtocol-8080]] [org.apache.catalina.core.StandardServi
ce<main>]
org.apache.catalina.LifecycleException: Failed to start component [Connector[org
.apache.coyote.http11.Http11NioProtocol-8080]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
[catalina.jar:7.0.63]
        at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:459) ~[catalina.jar:7.0.63]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[catalina.jar:7.0.63]
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:739) [catalina.jar:7.0.63]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[catalina.jar:7.0.63]
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689) [catali
na.jar:7.0.63]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.
0_92]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.
0_92]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:
1.8.0_92]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_92]
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321) [boot
strap.jar:7.0.63]
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) [boots
trap.jar:7.0.63]
Caused by: org.apache.catalina.LifecycleException: service.getName(): "Catalina"
;  Protocol handler start failed
        at org.apache.catalina.connector.Connector.startInternal(Connector.java:
1014) ~[catalina.jar:7.0.63]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[catalina.jar:7.0.63]
        ... 11 common frames omitted
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_92]
        at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_92]
        at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_92]
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_92
]
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_92]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:475) ~[t
omcat-coyote.jar:7.0.63]
        at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.ja
va:666) ~[tomcat-coyote.jar:7.0.63]
        at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:449) ~
[tomcat-coyote.jar:7.0.63]
        at org.apache.catalina.connector.Connector.startInternal(Connector.java:
1007) ~[catalina.jar:7.0.63]
        ... 12 common frames omitted
2016-04-23 21:09:07,458 | INFO  | Starting ProtocolHandler ["ajp-bio-0.0.0.0-800
9"] [org.apache.coyote.ajp.AjpProtocol<main>]
2016-04-23 21:09:07,568 | INFO  | Server startup in 750410 ms [org.apache.catali
na.startup.Catalina<main>]

This error typically appears when any another application is using
default port 8080.

Solving:

1. Stop eXo platform via stop_eXo.bat

eXo platform java.net.BindException  howto fix tutorial 1


2. Open file <your_eXo_files>\conf\server.xml
for example on my PC C:\eXo\conf\server.xml

eXo platform java.net.BindException  howto fix tutorial 2


3. Change default port from 8080  to 8081

eXo platform java.net.BindException  howto fix tutorial 3

eXo platform java.net.BindException  howto fix tutorial 4


4. Start eXo platform via start_eXo.bat

eXo platform java.net.BindException  howto fix tutorial 5


No comments:

Post a Comment