I would like to host an SSL protected endpoint using CXF DOSGi and configure an absolute endpoint URL using the org.apache.cxf.rs.address configuration property.
I have searched through this list and am aware that it is possible to secure a web service with SSL by specifying a relative URL endpoint with the org.apache.cxf.httpservice.context configuration property. My understanding is that when using this property the CXF DOSGi hosts the service using the OSGI http service context which is affected by the org.ops4j.pax.web.cfg (and optionally jetty.xml) files. I have accomplished this successfully but it is not sufficient for my needs. Unfortunately, I cannot understand what affects the jetty server configuration when I use the org.apache.cxf.rs.address configuration property. My understanding, based on reading through the mailing list, is that this is a completely different server context. However, I can't figure out if there is a file that controls the configuration of this server or perhaps some undocumented properties? I have stepped through the code in debug to understand the differences between using the two properties. When using the org.apache.cxf.rs.address I can see that in the JaxRSPojoConfigurationTypeHandler the following line: String contextRoot = httpServiceManager.getServletContextRoot(sd, iClass); returns null while when using org.apache.cxf.httpservice.context it returns an object instance that later on in this line: Bus bus = contextRoot != null ? httpServiceManager.registerServletAndGetBus(contextRoot, callingContext, sref) : null; results in getting a bus that supports SSL. However when using org.apache.cxf.rs.address that bus reference remains null. Is there a way to configure the default bus for this service context so that it supports SSL? I'm lost and not sure how to move forward. I'm new to OSGi so that's probably part of the problem but I've talked to some other developers here who are familiar with the technology and they too can't provide any answers. If someone could help I would really appreciate it. Regards, D -- View this message in context: http://cxf.547215.n5.nabble.com/SSL-with-DOSGi-tp5721344.html Sent from the cxf-user mailing list archive at Nabble.com.