[ https://issues.apache.org/jira/browse/CAMEL-12728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581113#comment-16581113 ]
Zoran Regvart commented on CAMEL-12728: --------------------------------------- [~chirino] naah, Undertow component implements the {{org.apache.camel.spi.RestProducerFactory}} contract, so it needs and does start the UndertowEndpoint in {{UndertowComponent::createProducer}}. I'll work on a test to see if this is something that we need to address in the {{camel-rest-swagger} or in {{camel-undertow}}. > Configured SSL Context on Undertow component not honored by camel-rest-swagger > ------------------------------------------------------------------------------ > > Key: CAMEL-12728 > URL: https://issues.apache.org/jira/browse/CAMEL-12728 > Project: Camel > Issue Type: Bug > Components: camel-rest-swagger > Affects Versions: 2.22.0 > Reporter: Hiram Chirino > Assignee: Zoran Regvart > Priority: Major > > Say you have: > {code:java} > <camel:sslContextParameters id="sslContextParameters"> > <camel:trustManagers> > <camel:keyStore password="redhat123" type="JKS" ... /> > </camel:trustManagers> > </camel:sslContextParameters> > .. and .. > <bean id="myundertow" > class="org.apache.camel.component.undertow.UndertowComponent"> > <property name="sslContextParameters" > value="#{sslContextParameters}"/> > </bean> > .. and .. > <to id="_to1" pattern="InOut" > uri="rest-swagger:swagger.json#getMembersList?basePath=/membersweb/rest/v2&componentName=myundertow&host=https://myapp.demolab.local:443”/>{code} > It will fail with > {code} > java.io.IOException: UT000065: SSL must be specified to connect to a https URL > at > io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:72) > at > io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:60) > at io.undertow.client.UndertowClient.connect(UndertowClient.java:133) > at > org.apache.camel.component.undertow.UndertowProducer.process(UndertowProducer.java:165) > at > org.apache.camel.component.rest.RestProducer.process(RestProducer.java:86) > at > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) > at > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) > at > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) > at > org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) > at > org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) > at java.util.TimerThread.mainLoop(Timer.java:555) > at java.util.TimerThread.run(Timer.java:505) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)