"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, 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