Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1217

Address in use errors from attempt to repeatedly start and stop services

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.0.4
    • Transports
    • None
    • Any

    Description

      Edit org.apache.cxf.javascript.JsHttpRequestTest to take out the @org.junit.Ignore from the test case that has one, and run from eclipse. Watch the logging traffic. Observe:

      WARNING: failed Server@1174031
      java.net.BindException: Address already in use: bind
      at sun.nio.ch.Net.bind(Native Method)

      which eventually, as far as I can tell, turns into:

      INFO: doOpen POST http://localhost:8808/Greeter false
      Nov 18, 2007 10:07:08 PM org.apache.cxf.javascript.JsXMLHttpRequest communicate
      SEVERE: IO error reading response
      java.io.FileNotFoundException: http://localhost:8808/Greeter

      On the other hand, all is well in Eclipse.

      I will probably commit a workaround to this soon, so it would be good to move this muddle to its own test case.

      Attachments

        1. jetty6.1.6.patch
          3 kB
          Gary Tully
        2. busShutdownTest.patch.txt
          4 kB
          Gary Tully

        Activity

          People

            njiang Willem Jiang
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: