Uploaded image for project: 'CXF Distributed OSGi'
  1. CXF Distributed OSGi
  2. DOSGI-252

Unable to export RS services with same addresses and different contexts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I've tried to export RS services with such urls:

      http://<default_host>:<default_port>/service1/v1
      http://<default_host>:<default_port>/service2/v1
      

      if I use only

      org.apache.cxf.rs.httpservice.context=/service1/v1
      org.apache.cxf.rs.httpservice.context=/service2/v1
      

      I receive an exception

      org.apache.cxf.service.factory.ServiceConstructionException
      	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219)
      ...
      Caused by: org.apache.cxf.service.factory.ServiceConstructionException: There is an endpoint already running on /.
      	at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:85)
      

      If I use

      org.apache.cxf.rs.httpservice.context=/service1
      org.apache.cxf.rs.address=/v1
      
      org.apache.cxf.rs.httpservice.context=/service2
      org.apache.cxf.rs.address=/v1
      

      I receive another exception

      org.apache.cxf.service.factory.ServiceConstructionException
      	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219)
      ...
      Caused by: org.apache.cxf.service.factory.ServiceConstructionException: There is an endpoint already running on /v1.
      	at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:85)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dpishchukhin Dmytro Pishchukhin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: