同じ JBoss Java プロセスでポートが競合して "Address already in use" が発生するため JBoss が起動しない場合がある

Solution Unverified - Updated -

Issue

JBoss サーバーの起動時に以下の例外が発生します。

ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=org.jboss.ejb3.RemotingConnector state=Create
java.io.IOException:SocketServerInvoker[xxx.xxx.xxx.xxx:3873] error creating ServerSocket[xxx.xxx.xxx.xxx:3873]:Address already in use
    at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSockets(SocketServerInvoker.java:370)
    at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:250)
    at org.jboss.remoting.transport.Connector.start(Connector.java:344)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

lsof または netstat コマンドを使用して、ポートをつかんでいるプロセスと、その JBoss プロセスが 3873 ポートをリッスンしていることを確認します。

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.