cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1217) Address in use errors from attempt to repeatedly start and stop services
Date Wed, 21 Nov 2007 02:14:43 GMT

    [ https://issues.apache.org/jira/browse/CXF-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544143
] 

willem Jiang commented on CXF-1217:
-----------------------------------

After tracing the log , I found we did not really turn off the  "org.apache.cxf.transports.http_jetty.DontClosePort"
flag in the parent pom.xml.

When you run the test from Eclipse the flag is not set , the jetty engine will be shutdown
when  we call the bus.shutdown() in @After method.
Since we still set the "org.apache.cxf.transports.http_jetty.DontClosePort" true in the parent
pom.xml, the jetty engine will not be shut down instead.

After I truned off the "org.apache.cxf.transports.http_jetty.DontClosePort" , I found there
were dozens of systests failed. Now we still need to use "org.apache.cxf.transports.http_jetty.DontClosePort"
flag in our parent pom.xml.

If we want to close the port when call the bus.shutdown(false), we still need set the "org.apache.cxf.transports.http_jetty.DontClosePort"
to be false.

Willem.


> Address in use errors from attempt to repeatedly start and stop services
> ------------------------------------------------------------------------
>
>                 Key: CXF-1217
>                 URL: https://issues.apache.org/jira/browse/CXF-1217
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1
>         Environment: Any
>            Reporter: Benson Margulies
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message