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.
- blocks
-
ENTESB-9852 keycloak-cxf quickstart fails after upgrading to CXF 3.2.x
- Closed
-
ENTESB-10177 Keycloak-cxf quickstarts fails with "Unable to initialize bean kc-cxf-endpoint-config"
- Closed
- is related to
-
ENTESB-10352 Fuse 7.3 blacklisted features
- Closed
-
RHSSO-1729 Fuse 7.3: change OSGi import ranges to match Fuse 7.3/Undertow 2
- Closed