if (contextRoot == null) {
LOG.warning("Remote address is unavailable");
return;
}
CXFNonSpringServlet cxf = new CXFNonSpringServlet();
HttpService httpService = getHttpService();
try {
httpService.registerServlet(contextRoot, cxf, new Hashtable<String, String>(),
getHttpContext(dswContext, httpService));
LOG.info("Successfully registered CXF DOSGi servlet at " + contextRoot);
} catch (Exception e) {
throw new ServiceException("CXF DOSGi: problem registering CXF HTTP Servlet", e);
}
Bus bus = cxf.getBus();
DataBinding databinding;
String dataBindingImpl = (String)exportRegistration.getExportedService()
.getProperty(Constants.WS_DATABINDING_PROP_KEY);
if ("jaxb".equals(dataBindingImpl)) {
databinding = new JAXBDataBinding();