You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Wim Verreydt (JIRA)" <ji...@apache.org> on 2013/06/11 14:19:19 UTC

[jira] [Created] (SM-2204) jaxrs-example: service cannot be reached

Wim Verreydt created SM-2204:
--------------------------------

             Summary: jaxrs-example: service cannot be reached
                 Key: SM-2204
                 URL: https://issues.apache.org/jira/browse/SM-2204
             Project: ServiceMix
          Issue Type: Bug
          Components: examples
    Affects Versions: 5.0.0
            Reporter: Wim Verreydt
            Priority: Minor


Running the cxf-jaxrs example, the service is not 'registered' properly. 

- Visiting {{http://localhost:8181/cxf}} displays No services have been found.
- A request to {{http://localhost:8181/cxf/crm/customerservice/customers/123}} returns No services have been found.
- The servicemix log states: 
    2013-06-11 14:04:01,417 | INFO  | ExtenderThread-2 | ServerImpl                       | ?                                   ? | 116 - org.apache.cxf.cxf-api - 2.7.4 | Setting the server's publish address to be /crm
    ...
    2013-06-11 14:04:22,619 | WARN  | qtp153718882-85  | ServletController                | ?                                   ? | 116 - org.apache.cxf.cxf-api - 2.7.4 | Can't find the the request for http://localhost:8181/cxf/crm/customerservice/customers/123's Observer

The problem can be avoided by providing a absolute url in the jaxrs server configuration  
(address="http://localhost:8910/test" instead of address="/crm")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira