Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ENTESB-223
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Willem Jiang
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse ESB Enterprise

Restaring a cxf endpoint using the cxf commands does not work

Created: 02/Jul/12 01:11 PM   Updated: 06/Jul/12 02:29 PM
Component/s: None
Affects Version/s: 7.0.1
Fix Version/s: 7.0.1, 7.1.0

Issue Links:
Blockers
 


 Description  « Hide
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


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 02/Jul/12 01:13 PM
If I restart the ESB itself, then the service is running again if I hit http://localhost:8181/cxf

Willem Jiang added a comment - 04/Jul/12 02:38 PM
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.

Willem Jiang added a comment - 06/Jul/12 01:17 PM
committed the patch into cxf-2.5.0-fuse-7-0-x-stable