Hi Neil,

thanks for the clarificactions. I might have found what happens.
In DOSGi 1.3 we used the jetty transport to create default endpoints if no address is given. In DOSGi 1.4 we use the servlet transport of cxf. This is part of the cxf http transport. CXF there uses a blueprint config to attach to the OSGi HttpService using the whiteboard pattern. (See http://svn.apache.org/repos/asf/cxf/trunk/rt/transports/http/src/main/resources/OSGI-INF/blueprint/osgiservlet.xml)

So to use this you need to have blueprint and pax web installed. The whiteboard pattern for the HttpService is not standardized so pax web is needed. In the future we might switch to an Activator there to have less dependencies but currently this is needed.

Btw. The easiest way to use CXF and DOSGi on the server is with Apache Karaf. There we have features that make the installation quite trivial.

Christian

Am 17.05.2013 18:53, schrieb NCorbet:
Sergey,

Thanks for the quick response.

The endpoint is being set by cxf itself in whatever manner the default
mechanism provides. My spring configuration above is the only configuration
I have for CXF. I think this happens because of the absence of the property
*org.apache.cxf.rs.address* and/or *org.apache.cxf.rs.httpservice.context*.

 From the distributed-osgi-reference page, for the
*org.apache.cxf.rs.address* it states /"If this property is not specified,
this defaults to {{ http://localhost:9000/fully/qualified/ClassName}}"/

I believe this is why I get the following addresses:

*CXF 1.3* :
http://172.16.40.2:9000/org/syntech/ambassador/shared/fuelmaster/services/SiteService

*CXF 1.4* :
http://172.16.40.2:8181/cxf/org/syntech/ambassador/shared/fuelmaster/services/SiteService

When *org.apache.cxf.rs.httpservice.context* is excluded the documentation
states: /When this property is specified, the OSGi HTTP Service which is
used to expose the service, rather than a dedicated Jetty HTTP Server./

My wonder is if the mechanism that binds the port has changed or requires
some extra config in order to "work right out of the box" as they say.
Through netstat I can see it is not being done.

Thanks,
Neil



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Migration-from-cxf-dosgi-1-3-to-cxf-dosgi-1-4-broke-my-rest-services-tp5727840p5727865.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to