2 Replies Latest reply on Dec 12, 2017 2:47 PM by jdelgadot

    Adress already in use?

    jdelgadot

      sometimes when i build my project inside Eclipse with wildly:run i found the next error:

       

      22:53:08,681 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.

      22:53:08,765 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0018: Host default-host starting

      22:53:08,645 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0014: Creating file handler for path '/Users/jdeltru/git/jpa-addressbook/target/wildfly-run/wildfly-11.0.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      22:53:09,090 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.default: Address already in use /127.0.0.1:8080

        at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:179)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

       

       

      It is strange because the final message is that Wildly is stopped but i can connect in a terminal with boss-cli.

       

      22:53:24,234 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) stopped in 308ms

      Dec 10, 2017 10:56:26 PM org.jboss.remoting3.remote.RemoteConnection handleException

      ERROR: JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

       

      So i write the shutdown command and try again inside Eclipse wildly:run and then works.

      What did it happen the first wildly:run ?

      Who was occupying the address?

        • 1. Re: Adress already in use?
          gir489

          If you're on Windows you can use netstat to figure out what's holding that port hostage.

           

          If you're randomly opening port 8080 from your machine, it could be infected, and the virus is trying to phone home via port 8080, since 80 is usually blocked on most ISP firewalls.

          • 2. Re: Adress already in use?
            jdelgadot

            It is not a virus is the Wildfly itself.

             

            If a do mvn wildly:run twice the first i haven't got any errors but the second it appears address already in use.

            If i shutdown the server and the i do mvn wildly:run again i haven't any error.

             

            mvn wildly:run what does exactly do if it is already wildly started?

            it seems that wildly:run start a new instance server?