Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.3
    • Fix Version/s: fuse-7.3
    • Component/s: Examples, Karaf
    • Labels:
      None
    • Environment:

      fuse karaf 7.3.0.fuse-730052
      quickstarts 7.3.0.fuse-730010

    • Steps to Reproduce:
      Hide

      config:edit org.ops4j.pax.url.mvn
      config:property-append org.ops4j.pax.url.mvn.repositories ", http://indy.psi.redhat.com/api/content/maven/group/builds-untested+shared-imports/"
      config:update
      karaf@root()> feature:repo-add mvn:org.keycloak/keycloak-osgi-features/4.8.3.Final/xml/features
      Adding feature url mvn:org.keycloak/keycloak-osgi-features/4.8.3.Final/xml/features
      karaf@root()> feature:install keycloak-pax-http-undertow
      karaf@root()> bundle:install -s mvn:org.jboss.fuse.quickstarts.security/keycloak-httpservice-blueprint/7.3.0.fuse-730010
      Bundle ID: 237

      Show
      config:edit org.ops4j.pax.url.mvn config:property-append org.ops4j.pax.url.mvn.repositories ", http://indy.psi.redhat.com/api/content/maven/group/builds-untested+shared-imports/ " config:update karaf@root()> feature:repo-add mvn:org.keycloak/keycloak-osgi-features/4.8.3.Final/xml/features Adding feature url mvn:org.keycloak/keycloak-osgi-features/4.8.3.Final/xml/features karaf@root()> feature:install keycloak-pax-http-undertow karaf@root()> bundle:install -s mvn:org.jboss.fuse.quickstarts.security/keycloak-httpservice-blueprint/7.3.0.fuse-730010 Bundle ID: 237

      Description

      When testing the keycloak quickstarts I ran across this error:

      2019-03-05 14:25:53,753 | ERROR | nt/7.3.0.fuse-730010 | Felix                            |  -  -  | Bundle org.ops4j.pax.web.pax-web-runtime [219] ServiceRegistrationImpl: Error ungetting service. (java.lang.NullPointerException)
      java.lang.NullPointerException: null
      	at io.undertow.servlet.core.DeploymentImpl.createThreadSetupAction(DeploymentImpl.java:176) ~[?:?]
      	at io.undertow.servlet.core.DeploymentManagerImpl.stop(DeploymentManagerImpl.java:607) ~[?:?]
      	at org.ops4j.pax.web.service.undertow.internal.Context.destroyHandler(Context.java:323) ~[?:?]
      	at org.ops4j.pax.web.service.undertow.internal.Context.destroy(Context.java:233) ~[?:?]
      	at org.ops4j.pax.web.service.undertow.internal.ServerControllerImpl.removeContext(ServerControllerImpl.java:909) ~[?:?]
      	at org.ops4j.pax.web.service.internal.HttpServiceStarted.stop(HttpServiceStarted.java:192) ~[?:?]
      ...
      2019-03-05 14:25:53,762 | ERROR | nt/7.3.0.fuse-730010 | o.a.a.b.c.BlueprintContainerImpl | 52 - org.apache.aries.blueprint.core - 1.10.1 | Unable to start container for blueprint bundle keycloak-httpservice-blueprint/7.3.0.fuse-730010
      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean registrar
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:593) ~[52:org.apache.aries.blueprint.core:1.10.1]
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:703) ~[52:org.apache.aries.blueprint.core:1.10.1]
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) ~[52:org.apache.aries.blueprint.core:1.10.1]
      	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) ~[52:org.apache.aries.blueprint.core:1.10.1]
      ...
      Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      	at org.keycloak.adapters.undertow.KeycloakServletExtension.handleDeployment(KeycloakServletExtension.java:117) ~[?:?]
      	at io.undertow.servlet.core.DeploymentManagerImpl.handleExtensions(DeploymentManagerImpl.java:299) ~[?:?]
      	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:154) ~[?:?]
      	at org.ops4j.pax.web.service.undertow.internal.Context.doCreateHandler(Context.java:673) ~[?:?]
      ...
      Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext not found by org.keycloak.keycloak-undertow-adapter [235]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
      

      At first I couldn't even install the keycloak-pax-http-undertow feature, because these artifacts were only in pnc-indy repo:

      org.apache.httpcomponents/httpcore-osgi/4.4.4.redhat-2
      org.apache.httpcomponents/httpclient-osgi/4.5.2.redhat-2
      

      After resolving it I see the above error. It can be reproduced even without running keycloak/rh-sso instance.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  grgrzybek Grzegorz Grzybek
                  Reporter:
                  jkasztur Jan Kasztura
                  Tester:
                  Jan Kasztura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: