Deployed application is unable to start due to port conflict
Issue
-
JBoss is unable to bind to port errors.
-
While starting JBoss Server, when the application which is deployed on it tries to starts its unable to bind to some port like 40021 and causes following exception:
2013-08-28 08:33:39,803 INFO [STDOUT] (ExampleConsoleHandler) 2013-08-28 08:33:38:000065 Thread-10 INFO test.example.ExampleServer <unknown> <unknown> ExampleService HostManager Services was unable to create server socket on host 10.10.10.10 at port 40021.
2013-08-28 08:33:39,803 INFO [STDOUT] (ExampleConsoleHandler) 2013-08-28 08:33:38:000065 Thread-10 SEVERE test.example.ExampleServer <unknown> <unknown> A java.net.BindException Exception occurred in TestServerSocket.initServerSocket() : ExampleService HostManager Services Using IP address 10.10.10.10 Unable to bind to a port in range: 40021 to: 40021
java.net.BindException: ExampleService HostManager Services Using IP address 10.10.10.10 Unable to bind to a port in range: 40021 to: 40021
at aaa.bbb.ExampleService.TestServer.IP.TestServerIP$TestServerSocket.initServerSocket(TestServerIP.java:329)
at aaa.bbb.ExampleService.TestServer.IP.TestServerIP$TestServerSocket.<init>(TestServerIP.java:280)
at aaa.bbb.ExampleService.TestServer.XYZ.TestServerHostManager$TestServerHostManagerSocket.<init>(TestServerHostManager.java:263)
at aaa.bbb.ExampleService.TestServer.XYZ.TestServerHostManager.startServerSocket(TestServerHostManager.java:66)
at aaa.bbb.ExampleService.TestServer.IP.TestServerIP.init(TestServerIP.java:187)
at aaa.bbb.ExampleService.TestServer.XYZ.TestServerHostManager.init(TestServerHostManager.java:98)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.