Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7977

http-undertow|http-jetty transport: Port 8282 is configured with wrong protocol "https" with blueprint configuration

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.2.9, 3.3.2
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Run quickstart security/keycloak/keycloak-cxf according to README.md

      Bundle deployment fails with following error:

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Yue Fang
                Reporter:
                jondruse Jiri Ondrusek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m