Making a WebService available via https
inspector Mar 19, 2015 10:40 AMHi everybody,
I've got a webservice which by the .wsdl should be available via https.
I can make the service available via http but I haven't figured out how to do in via https. When I read the doc right, I will have to do something like this:
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" xmlns:cxf="http://cxf.apache.org/blueprint/core" xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration" xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemaLocation=" http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd "> <cxf:bus> <cxf:features> <httpj:identifiedTLSServerParameters id="secure"> <httpj:tlsServerParameters> <sec:keyManagers keyPassword="changeit"> <sec:keyStore type="JKS" password="changeit" file="/home/me/keystore.jks"/> </sec:keyManagers> </httpj:tlsServerParameters> </httpj:identifiedTLSServerParameters> <httpj:engine port="9001"> <httpj:tlsServerParametersRef id="secure" /> <httpj:threadingParameters minThreads="5" maxThreads="15" /> <httpj:connector> <beans:bean class="org.eclipse.jetty.server.bio.SocketConnector"> <beans:property name = "port" value="9001" /> </beans:bean> </httpj:connector> <httpj:handlers> <beans:bean class="org.eclipse.jetty.server.handler.DefaultHandler"/> </httpj:handlers> <httpj:sessionSupport>true</httpj:sessionSupport> </httpj:engine> <jaxws:endpoint implementor="com.acme.MyService" address="https://localhost:9001/services/MyService"/> </cxf:features> </cxf:bus> </blueprint>
When I deploy this bundle via osgi:install it will go active but the blueprint state will stay on GracePeriod forever (I have tried waiting longer than the default grace period of 5mins bunt not longer than 10mins). I'm kind of confused because I'm kind of fresh with both FUSE and OSGI.
Any hints on what I probably missed?
Regards!