Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I installed a SSL certificate on the TESB Open source Runtime. I am able to access the admin console (9001 on the default secure port). I have done the changes in <KarafRuntime>/etc/org.ops4j.pax.web.cfg
org.osgi.service.http.port=8040 org.osgi.service.http.enabled=false org.osgi.service.http.port.secure=9001 org.osgi.service.http.secure.enabled=true #org.ops4j.pax.web.ssl.keystore=${karaf.base}/etc/keystores/keystore.jks org.ops4j.pax.web.ssl.keystore=${karaf.base}/etc/keystores/push.jks org.ops4j.pax.web.ssl.password=password org.ops4j.pax.web.ssl.keypassword=password #org.ops4j.pax.web.config.file=${karaf.base}/etc/jetty.xml
What do I need to do is access my service setup on tRestRequest via HTTPS also.
I have tried the following in the RestEndpoint as:
a. https://0.0.0.0:8443/ b. https://<publicIP>:8443/ c. / (relative URL)
None of them are working. In the tesb.log I see the following error:
Caused by: org.apache.cxf.service.factory.ServiceConstructionException at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219) ~[?:?] at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?] at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736) ~[?:?] ... 37 more Caused by: java.lang.RuntimeException: Protocol mismatch for port 8443: engine's protocol is http, the url protocol is https
What am I missing here? Any help is appreciated.
Thank you
Hello,
We have redirected your issue to talend ESB experts and then come back to you as soon as we can.
Best regards
Sabrina
I have the same issue here, I need to access the service through HTTPS connection:
but I'm getting the following error:
Starting job RulesSetService at 13:12 11/10/2018.
[statistics] connecting to socket on port 3581
[statistics] connected
org.apache.cxf.service.factory.ServiceConstructionException
at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219)
at gdt_playpen.rulessetservice_0_1.RulesSetService$Thread4RestServiceProviderEndpoint.run(RulesSetService.java:852)
Caused by: java.lang.RuntimeException: Protocol mismatch for port 8443: engine's protocol is http, the url protocol is https
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:156)
at org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:281)
at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:84)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:63)
at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:173)
... 1 more
Caused by: java.io.IOException: Protocol mismatch for port 8443: engine's protocol is http, the url protocol is https
at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:282)
at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:312)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:122)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:154)
... 5 more