"java.net.UnknownHostException: true" when starting JBoss

Solution Verified - Updated -

Issue

IssueWe see the following exception when starting JBoss

Caused by: java.net.UnknownHostException: true
    at java.net.InetAddress.getAllByName0(InetAddress.java:1201)
    at java.net.InetAddress.getAllByName(InetAddress.java:1128)
    at java.net.InetAddress.getAllByName(InetAddress.java:1064)
    at java.net.InetAddress.getByName(InetAddress.java:1014)
    ...

Environment

  • JBoss Enterprise Application Platform (EAP)

Resolution

Ensure you have an equals sign between the -D key and value in JAVA_OPTS

Root Cause

JAVA_OPTS contained "-Djboss.bind.address 192.168.0.1" instead of "-Djboss.bind.address=192.168.0.1"

Environment

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.