[keycloak-user] can not deploy quick start "app-authz-jee-servlet"

Masanobu Hatanaka mhatanak at redhat.com
Thu Sep 28 21:17:00 EDT 2017


Thank you so much for the response. I could deploy it with the option.

Kind regards,
Masanobu.


On 2017年09月27日 19:15, Marko Strukelj wrote:
> You may need to run your server with
> -Dkeycloak.profile.feature.authorization=enabled to enable authorization
> feature.
> 
> It should be enabled by default on Keycloak, but not on RHSSO.
> 
> On Wed, Sep 27, 2017 at 11:20 AM, Masanobu Hatanaka <mhatanak at redhat.com
> <mailto:mhatanak at redhat.com>> wrote:
> 
>     Hi,
> 
>     I'm trying to deploy quick start application "app-authz-jee-servlet"
>     here:
>     https://github.com/redhat-developer/redhat-sso-quickstarts/tree/7.1.x/app-authz-jee-servlet
>     <https://github.com/redhat-developer/redhat-sso-quickstarts/tree/7.1.x/app-authz-jee-servlet>
> 
>     and follow the configuration steps.
> 
>     However, "mvn install wildfly:deploy" command failed and the following
>     exception is logged.
>     Do I need to configure others to use this sample?
> 
>     Kind regards,
>     Masanobu.
> 
>     ------------------
>     [ERROR] Failed to execute goal
>     org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Beta1:deploy
>     (default-cli) on project rh-sso-app-authz-jee-servlet: Failed to execute
>     goal deploy: {"WFLYCTL0062: 複合演算が失敗しロールバックされました。
>     失敗した操作:"
>     => {"操作 step-1" => {"WFLYCTL0080: サービスに問題がありました" =>
>     {"jboss.undertow.deployment.default-server.default-host./authz-servlet"
>     => "org.jboss.msc.service.StartException in service
>     jboss.undertow.deployment.default-server.default-host./authz-servlet:
>     java.lang.RuntimeException: Could not find resource.
>     [ERROR]     Caused by: java.lang.RuntimeException: Could not find
>     resource.
>     [ERROR]     Caused by:
>     org.keycloak.authorization.client.util.HttpResponseException: Unexpected
>     response from server: 501 / Not Implemented"}}}}
>     [ERROR] -> [Help 1]
>     org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>     execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Beta1:deploy
>     (default-cli) on project rh-sso-app-authz-jee-servlet: Failed to execute
>     goal deploy: {"WFLYCTL0062: 複合演算が失敗しロールバックされました。
>     失敗した操作:"
>     => {"操作 step-1" => {"WFLYCTL0080: サービスに問題がありました" =>
>     {"jboss.undertow.deployment.default-server.default-host./authz-servlet"
>     => "org.jboss.msc.service.StartException in service
>     jboss.undertow.deployment.default-server.default-host./authz-servlet:
>     java.lang.RuntimeException: Could not find resource.
>         Caused by: java.lang.RuntimeException: Could not find resource.
>         Caused by:
>     org.keycloak.authorization.client.util.HttpResponseException: Unexpected
>     response from server: 501 / Not Implemented"}}}}
>             at
>     org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>             at
>     org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
>             at
>     org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
>             at
>     org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>             at
>     org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>             at
>     org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>             at
>     org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>             at
>     org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>             at
>     org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>             at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>             at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>             at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>             at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>             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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>             at
>     org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>     Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
>     execute goal deploy: {"WFLYCTL0062: 複合演算が失敗しロールバックされ
>     ました。失敗した操作:"
>     => {"操作 step-1" => {"WFLYCTL0080: サービスに問題がありました" =>
>     {"jboss.undertow.deployment.default-server.default-host./authz-servlet"
>     => "org.jboss.msc.service.StartException in service
>     jboss.undertow.deployment.default-server.default-host./authz-servlet:
>     java.lang.RuntimeException: Could not find resource.
>         Caused by: java.lang.RuntimeException: Could not find resource.
>         Caused by:
>     org.keycloak.authorization.client.util.HttpResponseException: Unexpected
>     response from server: 501 / Not Implemented"}}}}
>             at
>     org.wildfly.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:148)
>             at
>     org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>             at
>     org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>             ... 20 more
>     --------------------------
> 
>     SSO server side, the following error is displayed
>     --------------------------
>     :00,353 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default
>     task-113) RESTEASY002010: Failed to execute:
>     javax.ws.rs <http://javax.ws.rs>.WebApplicationException: Feature
>     not enabled
>             at
>     org.keycloak.utils.ProfileHelper.requireFeature(ProfileHelper.java:32)
>             at
>     org.keycloak.services.resources.RealmsResource.getAuthorizationService(RealmsResource.java:268)
>             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.jboss.resteasy.core.ResourceLocatorInvoker.createResource(ResourceLocatorInvoker.java:79)
>             at
>     org.jboss.resteasy.core.ResourceLocatorInvoker.createResource(ResourceLocatorInvoker.java:58)
>             at
>     org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:100)
>             at
>     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:402)
>             at
>     org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:209)
>             at
>     org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
>             at
>     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
>             at
>     org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>             at
>     io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
>             at
>     io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
>             at
>     org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:90)
>             at
>     io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
>             at
>     io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
>             at
>     io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
>             at
>     io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
>             at
>     io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
>             at
>     org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
>             at
>     io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>             at
>     io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
>             at
>     io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
>             at
>     io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>             at
>     io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
>             at
>     io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
>             at
>     io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
>             at
>     io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
>             at
>     io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
>             at
>     io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
>             at
>     io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>             at
>     org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
>             at
>     io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>             at
>     io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>             at
>     io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)
>             at
>     io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)
>             at
>     io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
>             at
>     io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)
>             at
>     io.undertow.server.Connectors.executeRootHandler(Connectors.java:209)
>             at
>     io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:802)
>             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:748)
>     --------------------------
>     _______________________________________________
>     keycloak-user mailing list
>     keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-user
>     <https://lists.jboss.org/mailman/listinfo/keycloak-user>
> 
> 



More information about the keycloak-user mailing list