There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server; ERROR

After long time later, I am writing my programming blog again. Today, I downloaded glassfish-3.1.2.2-unix.sh.

I am running Fedora 16. After successful installation of the glassfish, I was getting error when I ran the the following command:

asadmin>start-domain

"There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command start-domain failed."


Then I checked my hostname of the machine:

hostname

I got my hostname is nix-domain

Now, nix-domain is not listed in the /etc/hosts file. Therefore, I added nix-domain in the file.

127.0.0.1               localhost nix-domain



Now, I tried to run the start-domain again. It started perfectly without any error.

Therefore, I understood that my machine assigned hostname 'nix-domain' is not listed in the hosts file, glassfish generated the error.

I am hoping, it is not only the solution, there must be other way to solve this problem.

Comments

  1. thank you very much!
    this helped me !

    ReplyDelete
  2. Thanks a lot, this worked for me too.

    ReplyDelete
  3. Wow||worked for me as well. simpel and straight forward solution . Thanks much

    ReplyDelete

Post a Comment

Popular posts from this blog

How to install Homebrew in Mac OSX (High Sierra)

WildFly 19 and Log4J2