[keycloak-dev] Keycloak 1.2.0 - more template issues/changes?
Sebastien Blanc
sblanc at redhat.com
Wed May 27 13:15:11 EDT 2015
Nevermind it's unrelated but I found the issue, Matzew you can cherry-pick
this :
https://github.com/sebastienblanc/aerogear-unified-push-server/commit/af01e241691879b20702e0b98d4d5a8defdcb3b7
On Wed, May 27, 2015 at 6:58 PM, Sebastien Blanc <sblanc at redhat.com> wrote:
> Could this be related to that
> http://lists.jboss.org/pipermail/keycloak-dev/2015-February/003864.html ?
>
> On Wed, May 27, 2015 at 5:26 PM, Matthias Wessendorf <matzew at apache.org>
> wrote:
>
>> Hi,
>>
>> for UPS 1.0.3 we used the 1.0.5.Final version Keycloak.
>>
>> We are using a custom WAR file that we feed w/ some configuration:
>> *
>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/servers/auth-server/src/main/webapp/WEB-INF/ups-realm.json
>> *
>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/servers/auth-server/src/main/resources/META-INF/keycloak-server.json
>>
>> Now, after logging in to UPS (w/ our admin), I am also able to access the
>> "Admin UI Console" of Keycloak
>> http(s)://SERVER:PORT/auth/admin/aerogear/console/index.html
>>
>>
>> That works fine w/ 1.1.0 of Keycloak as well.
>>
>> However, when trying to access the
>> "auth/admin/aerogear/console/index.html" URL w/ 1.2.0.Final, I am getting a
>> 500 error and some stack (see below).
>>
>> Looks like a bit more changes on the template are required?
>> See also Stian's commit from last week
>> https://github.com/matzew/aerogear-unifiedpush-server/commit/6d1142cb70bf8f37eb336fa9f6a0df41a292ee55
>>
>>
>> Oh, and the login to UPS itself is all fine and is great, it is just the
>> access to "Admin UI Console" of Keycloak seems broken:
>>
>>
>> 17:20:53,621 ERROR
>> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/auth].[Keycloak
>> REST Interface]] (http-/0.0.0.0:8080-4) JBWEB000236: Servlet.service()
>> for servlet Keycloak REST Interface threw exception:
>> java.lang.RuntimeException: request path: /auth/admin/aerogear/console/
>> at
>> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:54)
>> [keycloak-services-1.2.0.Final.jar:1.2.0.Final]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
>> [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
>> at
>> org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
>> [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
>> at
>> org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
>> [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
>> Caused by: org.jboss.resteasy.spi.UnhandledException:
>> org.keycloak.freemarker.FreeMarkerException: Failed to process template
>> index.ftl
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:364)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:232)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:208)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:556)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41)
>> [keycloak-services-1.2.0.Final.jar:1.2.0.Final]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
>> [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
>> at
>> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40)
>> [keycloak-services-1.2.0.Final.jar:1.2.0.Final]
>> ... 15 more
>> Caused by: org.keycloak.freemarker.FreeMarkerException: Failed to process
>> template index.ftl
>> at
>> org.keycloak.freemarker.FreeMarkerUtil.processTemplate(FreeMarkerUtil.java:47)
>> [keycloak-forms-common-freemarker-1.2.0.Final.jar:1.2.0.Final]
>> at
>> org.keycloak.services.resources.admin.AdminConsole.getMainPage(AdminConsole.java:292)
>> [keycloak-services-1.2.0.Final.jar:1.2.0.Final]
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> [rt.jar:1.7.0_65]
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> [rt.jar:1.7.0_65]
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [rt.jar:1.7.0_65]
>> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
>> at
>> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:158)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:91)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> at
>> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:541)
>> [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:]
>> ... 27 more
>> Caused by: java.io.FileNotFoundException: Template "index.ftl" not found.
>> at freemarker.template.Configuration.getTemplate(Configuration.java:742)
>> [freemarker-2.3.20.jar:2.3.20]
>> at freemarker.template.Configuration.getTemplate(Configuration.java:665)
>> [freemarker-2.3.20.jar:2.3.20]
>> at
>> org.keycloak.freemarker.FreeMarkerUtil.getTemplate(FreeMarkerUtil.java:54)
>> [keycloak-forms-common-freemarker-1.2.0.Final.jar:1.2.0.Final]
>> at
>> org.keycloak.freemarker.FreeMarkerUtil.processTemplate(FreeMarkerUtil.java:34)
>> [keycloak-forms-common-freemarker-1.2.0.Final.jar:1.2.0.Final]
>> ... 38 more
>>
>>
>> Any thoughts?
>>
>> -Matthias
>>
>> PS: I think it's unrelated, but I am running on EAP 6.4
>>
>>
>> --
>> Matthias Wessendorf
>>
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> twitter: http://twitter.com/mwessendorf
>>
>> _______________________________________________
>> keycloak-dev mailing list
>> keycloak-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150527/cb93c645/attachment-0001.html
More information about the keycloak-dev
mailing list