Unable to start Glassfish 3.1 even though port not occupied

后端 未结 10 1191
傲寒
傲寒 2021-02-07 02:11

I\'m having trouble starting Glassfish 3.1 on a newly setup Debian \"Squeeze\" server. This is a testing server that has been setup and the Glassfish i

相关标签:
10条回答
  • 2021-02-07 02:43

    I encountered similar problem in centOS when i set hostname for my linux. set your hostname to localhost , probably your problem will be solved.

    command : hostname localhost or

    edit /etc/sysconfig/network file in redHat based linux.

    goodluck

    0 讨论(0)
  • 2021-02-07 02:44

    Check your /etc/hosts file if the current hostname translates to a valid IP address. I think something is misconfigured or simple the IP do not exists.

    When I changed it back (in my situation) to the 127.0.0.1 address (of course it could be any other but working and attached IP address), the glassfish could be started properly again.

    0 讨论(0)
  • 2021-02-07 02:45

    the problem that the file /etc/host havent PC name with IP add this line in the file.

    ip_PC name_PC 192.144.168.2 miserver

    This works

    http://jvm-java.blogspot.com.es/2010/12/glassfish-v3-linux-process-already.html

    0 讨论(0)
  • 2021-02-07 02:58

    -step 1 start glassfish -step 2 change the hostname

    result: error starting glassfish

    solution: 1 quit the hostname and just leave localhost

    2 start glassfish 3 stop glassfish

    4 add the hostname

    5 start glassfish and it works!!!

    $ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.2 YOURHOSTNAME

    $ glassfish4/bin/asadmin start-domain Waiting for domain1 to start ....... Successfully started the domain : domain1

    0 讨论(0)
提交回复
热议问题