[ https://issues.apache.org/jira/browse/CXF-7977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773014#comment-16773014 ]
Jiri Ondrusek commented on CXF-7977: ------------------------------------ [~ffang] Thank you. My current results shows, that problem is probably not in cxf. I was able to simulate expected (correct) behavior through cxf's junit tests -> so error is probably somewhere else. To be sure I'll investigate it more. > Deployment of osgi quickstasrt (keycloak-cxf) fails with Port 8282 is > configured with wrong protocol "https" > ------------------------------------------------------------------------------------------------------------ > > Key: CXF-7977 > URL: https://issues.apache.org/jira/browse/CXF-7977 > Project: CXF > Issue Type: Bug > Components: Transports > Affects Versions: 3.3.0 > Reporter: Jiri Ondrusek > Assignee: Freeman Fang > Priority: Major > Time Spent: 20m > Remaining Estimate: 0h > > Run quickstart security/keycloak/keycloak-cxf according to > [README.md|https://github.com/jboss-fuse/karaf-quickstarts/blob/7.x.redhat-7-x/security/keycloak/keycloak-cxf/README.md] > Bundle deployment fails with following error: > {noformat}org.osgi.service.blueprint.container.ComponentDefinitionException: > Unable to initialize bean externalJaxWs > at > org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:593) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:703) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?] > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:717) > ~[50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) > [50:org.apache.aries.blueprint.core:1.10.1] > at > org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) > [?:?] > at > org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) > [?:?] > at > org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) > [?:?] > at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) > [?:?] > at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) [?:?] > at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) > [?:?] > at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) > [?:?] > at org.apache.karaf.bundle.command.Install.execute(Install.java:115) > [120:org.apache.karaf.bundle.core:4.2.0.fuse-730019] > at > org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) > [144:org.apache.karaf.shell.core:4.2.0.fuse-730019] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [?:?] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [?:?] > at java.lang.Thread.run(Thread.java:745) [?:?] > Caused by: java.lang.RuntimeException: Port 8282 is configured with wrong > protocol "https" for "http://localhost:8282/jaxws" > at > org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.finalizeConfig(UndertowHTTPDestination.java:131) > ~[?:?] > at > org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:288) > ~[?:?] > at > org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:135) > ~[?:?] > at > org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85) ~[?:?] > at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:64) ~[?:?] > at > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:182) > ~[?:?] > at > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) > ~[?:?] > at > org.apache.cxf.jaxws.blueprint.JAXWSBPNamespaceHandler$BPJaxWsServerFactoryBean.create(JAXWSBPNamespaceHandler.java:111) > ~[?:?] > at > org.apache.cxf.jaxws.blueprint.JAXWSBPNamespaceHandler$BPJaxWsServerFactoryBean.init(JAXWSBPNamespaceHandler.java:106) > ~[?:?] > 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:337) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:591) > ~[?:?] > ... 40 more > Caused by: java.lang.IllegalStateException: Port 8282 is configured with > wrong protocol "https" for "http://localhost:8282/jaxws" > at > org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.retrieveEngine(UndertowHTTPDestination.java:115) > ~[?:?] > at > org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.finalizeConfig(UndertowHTTPDestination.java:129) > ~[?:?] > at > org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:288) > ~[?:?] > at > org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:135) > ~[?:?] > at > org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85) ~[?:?] > at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:64) ~[?:?] > at > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:182) > ~[?:?] > at > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) > ~[?:?] > at > org.apache.cxf.jaxws.blueprint.JAXWSBPNamespaceHandler$BPJaxWsServerFactoryBean.create(JAXWSBPNamespaceHandler.java:111) > ~[?:?] > at > org.apache.cxf.jaxws.blueprint.JAXWSBPNamespaceHandler$BPJaxWsServerFactoryBean.init(JAXWSBPNamespaceHandler.java:106) > ~[?:?] > 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:337) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) > ~[?:?] > at > org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:591) > ~[?:?] > ... 40 more > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)