Translated message

A translation of this page exists in English.

Linux で実行している Java アプリケーションで UnknownHostException エラーが発生する

Solution Verified - Updated -

Issue

JBoss を起動すると以下のエラーが発生します。

ERROR [ServerInfo] Error looking up local address
java.net.UnknownHostException: xxx: xxx

JMX サーバーを調べるときに Java が失敗し、以下のエラーが発生します。

Error executing command: java.io.IOException:Failed to retrieve RMIServer stub: javax.naming.ConfigurationException [Root exception is java.rmi.UnknownHostException:Unknown host: xxx; nested exception is:
        java.net.UnknownHostException: xxx]
  • JBoss EAP 5.x または 4.x の設定を何も変更していないが、起動に失敗し、以下の例外が発生します。
14:27:23,626 ERROR [ServerInfo] Error looking up local address
java.net.UnknownHostException: myhost: myhost
  at java.net.InetAddress.getLocalHost(InetAddress.java:1402)
  at org.jboss.system.server.ServerInfo.getHostAddress(ServerInfo.java:366)

Environment

  • JBoss Enterprise Application Platform (EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content