Linux で実行している Java アプリケーションで UnknownHostException エラーが発生する
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
