Glassfish unknown host exception on install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glassfish (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: glassfish
Glassfish throws an UnknownHostExce
Eg if the following appears in the hosts file:
127.0.0.1 localhost
127.0.1.1 lincoln.LOCALDOMAIN
Glassfish cannot resolve the hostname and throws this exception:
SEVERE: property_
java.net.
at java.net.
at com.sun.
at com.sun.
at com.sun.
at com.sun.
at com.sun.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at java.lang.
at java.lang.
at com.sun.
at com.sun.
at com.sun.
However if you change the first line of the hosts file to
127.0.0.1 localhost lincoln
it will work.
a similar problem occurs when running a J2ME application with Sun wireless toolkit
WMAClient: localhost has no IP address: java.net. UnknownHostExce ption: Mina-Laptop: Mina-Laptop UnknownHostExce ption: Mina-Laptop: Mina-Laptop
Warning: Failed to initialize WMA message routing support
ClientConnector: localhost has no IP address: java.net.
Warning: Failed to initialize Bluetooth (JSR 82) support
this makes wireless messaging APIs and bluetooth apis not available in emulation.
I found this problem previously and when not finding a solution I reinstalled ubuntu and it works fine after reinstallation
but the problem appeared again with unknown reasons.