JBoss Fuse
  1. JBoss Fuse
  2. ENTESB-223

Restaring a cxf endpoint using the cxf commands does not work

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.1, 7.1.0
    • Component/s: None
    • Labels:
      None
    • Similar Issues:
      Show 8 results 

      Description

      I am trying the soap example and installed it according to its readme file
      osgi:install -s fab:mvn:org.fusesource.examples/soap/7.0.1.fuse-069

      I then played a bit with it. And stopped the cxf endpoint using the cxf:stop-endpoint command.
      And the serivce is no longer listed when i do
      http://localhost:8181/cxf/ from a web browser
      > No services have been found.

      I then start the cxf endpoint again using the cxf:start-endpoint command

      FuseESB:karaf@root> cxf:start-endpoint org.fusesource.examples.soap-cxf1649827064 HelloWorldImplPort
      FuseESB:karaf@root> cxf:list-endpoints
      Name                      State      Address                                                      BusID                                   
      [HelloWorldImplPort     ] [Started ] [http://localhost:8181/cxf/HelloWorld                      ] [org.fusesource.examples.soap-cxf1649827064]
      

      But if I hit the url in the web browser
      http://localhost:8181/cxf/

      It still says no services.

      From the log I can spot this WARN

      2012-07-02 14:58:57,171 | WARN  | tp1379276060-241 | ServletController                | 165 - org.apache.cxf.bundle - 2.5.0.fuse-70-069 | Can't find the the request for http://localhost:8181/cxf/HelloWorld's Observer
      

        Issue Links

          Activity

          Hide
          Claus Ibsen
          added a comment -

          If I restart the ESB itself, then the service is running again if I hit http://localhost:8181/cxf

          Show
          Claus Ibsen
          added a comment - If I restart the ESB itself, then the service is running again if I hit http://localhost:8181/cxf
          Hide
          Willem Jiang
          added a comment -

          I just checked the CXF code, current server shutdown will set the servlet registry to be null which means even you start the server again, the CXFServlet will never know the server is back.
          It should be easy fix by not calling the destination.shutdown() method when the server is stopped.
          I just created SF-421 to trace the fix.

          Show
          Willem Jiang
          added a comment - I just checked the CXF code, current server shutdown will set the servlet registry to be null which means even you start the server again, the CXFServlet will never know the server is back. It should be easy fix by not calling the destination.shutdown() method when the server is stopped. I just created SF-421 to trace the fix.
          Hide
          Willem Jiang
          added a comment -

          committed the patch into cxf-2.5.0-fuse-7-0-x-stable

          Show
          Willem Jiang
          added a comment - committed the patch into cxf-2.5.0-fuse-7-0-x-stable

            People

            • Assignee:
              Willem Jiang
              Reporter:
              Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: