Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-21

Application not accessible on localhost

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      Created a simple JAX-RS sample as at:

      https://github.com/arun-gupta/wildfly-samples/tree/master/swarm

      The application is accessible at http://127.0.0.1:8080/resources/resource but not at http://localhost:8080/resources/resource. This is using curl. Both the URLs work from the browser.

      Error log from localhost:

      curl -v http://localhost:8080/resources/resource
      * Hostname was NOT found in DNS cache
      *   Trying ::1...
      * connect to ::1 port 8080 failed: Connection refused
      *   Trying fe80::1...
      * connect to fe80::1 port 8080 failed: Connection refused
      * Failed to connect to localhost port 8080: Connection refused
      * Closing connection 0
      curl: (7) Failed to connect to localhost port 8080: Connection refused
      

      Log from 127.0.0.1:

      curl -v http://127.0.0.1:8080/resources/resource
      * Hostname was NOT found in DNS cache
      *   Trying 127.0.0.1...
      * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
      > GET /resources/resource HTTP/1.1
      > User-Agent: curl/7.37.1
      > Host: 127.0.0.1:8080
      > Accept: */*
      > 
      < HTTP/1.1 200 OK
      < Connection: keep-alive
      < Content-Type: application/octet-stream
      < Content-Length: 12
      < Date: Wed, 06 May 2015 19:29:10 GMT
      < 
      * Connection #0 to host 127.0.0.1 left intact
      hello swarm!
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ArunGupta Arun Gupta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: