Public bug reported:

Binary package hint: glassfish

Glassfish throws an UnknownHostException on install when the hostname of
the local machine does not appear as an alias of 127.0.0.1.

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_reader.unknownHost
java.net.UnknownHostException: lincoln: lincoln
        at java.net.InetAddress.getLocalHost(InetAddress.java:1346)
        at 
com.sun.enterprise.util.net.NetUtils.getCanonicalHostName(NetUtils.java:89)
        at 
com.sun.enterprise.util.ASenvPropertyReader.setSystemProperties(ASenvPropertyReader.java:188)
        at 
com.sun.enterprise.cli.commands.S1ASCommand.<init>(S1ASCommand.java:140)
        at 
com.sun.enterprise.cli.commands.BaseLifeCycleCommand.<init>(BaseLifeCycleCommand.java:86)
        at 
com.sun.enterprise.cli.commands.CreateDomainCommand.<init>(CreateDomainCommand.java:84)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at 
com.sun.enterprise.cli.framework.CommandFactory.createCommand(CommandFactory.java:76)
        at 
com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:150)
        at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:63)


However if you change the first line of the hosts file to 
127.0.0.1 localhost lincoln 
it will work.

** Affects: glassfish (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Glassfish unknown host exception on install
https://bugs.launchpad.net/bugs/184963
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to