[keycloak-user] applications-by-id

Stian Thorgersen stian at redhat.com
Wed Mar 4 09:03:03 EST 2015


In 1.1.0.Final Keycloak is deployed as a WildFly subsystem not as a WAR, that's why there's no auth-server.war anymore

----- Original Message -----
> From: "Hernan Dario Metaute Sarmiento" <hernan.metaute at ceiba.com.co>
> To: "Stian Thorgersen" <stian at redhat.com>
> Cc: keycloak-user at lists.jboss.org
> Sent: Wednesday, March 4, 2015 2:54:30 PM
> Subject: Re: [keycloak-user] applications-by-id
> 
> Hi, Stian
> I noticed something odd when trying to begin from scratch.
> I downloaded the appliance server zip
> http://sourceforge.net/projects/keycloak/files/1.1.0.Final/keycloak-appliance-dist-all-1.1.0.Final.zip/download
> however, inside the keycloak/standalone/deployments there are no files of
> keycloak server. The files I usually see in this folder are:
> keycloak/standalone/deployments/auth-server.war
> keycloak/standalone/deployments/auth-server.war.deployed
> keycloak/standalone/deployments/keycloak-ds.xml
> keycloak/standalone/deployments/keycloak-ds.xml.deployed
> 
> or at least keycloak/standalone/deployments/auth-server.war should be there
> according to the documentation from
> http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/server-installation.html
> 
> should I then start from the war distribution and a wildfly server from the
> wildfly downloads page?
> 
> 2015-03-04 8:30 GMT-05:00 Hernan Dario Metaute Sarmiento <
> hernan.metaute at ceiba.com.co>:
> 
> > Hi, Stian. Thanks a lot again for answering
> > Well, maybe I didn't explain myself clearly:
> > What I was trying to say was that my starting point was this file:
> > http://sourceforge.net/projects/keycloak/files/1.1.0.Final/keycloak-appliance-dist-all-1.1.0.Final.zip/download
> > I unzipped, configured my mongo database and imported my realm from a json
> > I had previously configured in another instance.
> > At some point I started getting the error from the first email.
> > That being said, it does make sense that at some point I might have
> > replaced the deployments folder with the contents of
> > http://sourceforge.net/projects/keycloak/files/1.1.0.Final/keycloak-war-dist-all-1.1.0.Final.zip/download/deployments
> > so the mismatch of versions could be the issue. I will try then configuring
> > from scratch starting from the appliance distribution and will come back
> > and tell you how it went.
> > Thanks again for your time.
> >
> >
> >
> >
> > 2015-03-04 8:11 GMT-05:00 Stian Thorgersen <stian at redhat.com>:
> >
> > In the first email you said you're using a "wildfly install with keycloak
> >> from the appliance distribution". That doesn't make sense as the appliance
> >> distribution comes with WildFly.
> >>
> >> Also now you're saying you've upgraded
> >> $WILDFLY_HOME/standalone/deployments from the war distribution.
> >>
> >> It sounds like your problems may be caused by a miss-match between the
> >> admin console and the rest services.
> >>
> >> Please try the appliance distribution and see if you get the same issue
> >> there, if not then refer to the migration guides on how to upgrade
> >> correctly.
> >>
> >> ----- Original Message -----
> >> > From: "Hernan Dario Metaute Sarmiento" <hernan.metaute at ceiba.com.co>
> >> > To: "Stian Thorgersen" <stian at redhat.com>
> >> > Cc: keycloak-user at lists.jboss.org
> >> > Sent: Wednesday, March 4, 2015 1:44:55 PM
> >> > Subject: Re: [keycloak-user] applications-by-id
> >> >
> >> > Hi, Stian. Thanks for taking the time of answering:
> >> > Yes I have in fact cleared the browser's cache. Also I have replaced the
> >> > contents of $WILDFLY_HOME/standalone/deployments with a fresh install of
> >> > keycloak from the war distribution. As I said before, I am starting from
> >> > the appliance distribution.
> >> > The stacktrace I sent you comes from the server's logs so I doubt it
> >> might
> >> > be cache issues.
> >> > I understand that in the default configuration (which I'm not using
> >> since
> >> > I'm using a mongo database) keycloak uses a h2 database for storing
> >> > configuration data (what I can see in
> >> > $WILDFLY_HOME/standalone/deployments/keycloak-ds.xml). However, deleting
> >> > this file didn't make much difference
> >> >
> >> > 2015-03-04 1:14 GMT-05:00 Stian Thorgersen <stian at redhat.com>:
> >> >
> >> > > Have you tried to clear you browsers cache? It maybe be caused by
> >> cached
> >> > > resources from a previous release.
> >> > >
> >> > > ----- Original Message -----
> >> > > > From: "Hernan Dario Metaute Sarmiento" <hernan.metaute at ceiba.com.co
> >> >
> >> > > > To: keycloak-user at lists.jboss.org
> >> > > > Sent: Tuesday, March 3, 2015 11:36:21 PM
> >> > > > Subject: [keycloak-user] applications-by-id
> >> > > >
> >> > > > Hi, I've been using keycloak for some time now and I'm having this
> >> weird
> >> > > > error all of a sudden
> >> > > > I have a fresh wildfly install with keycloak from the appliance
> >> > > distribution.
> >> > > > I also configured a fresh database (mongodb), configured the
> >> connection
> >> > > on
> >> > > > keycloak-server.json and fired up the server.
> >> > > > I log in the first time to the admin console, change the password,
> >> etc.
> >> > > > Then I create a realm called, let's say, myApp. Everything goes
> >> well and
> >> > > then
> >> > > > I use that realm (change it on the drop down) and click on
> >> applications.
> >> > > > I get an error on screen saying "Not Found" and when going to the
> >> > > console I
> >> > > > get
> >> > > >
> >> > > > 17:30:23,885 INFO [stdout] (default task-33) 2015-03-03 17:30:23
> >> WARN
> >> > > > ExceptionHandler:135 - failed to execute
> >> > > > 17:30:23,886 INFO [stdout] (default task-33)
> >> > > javax.ws.rs.NotFoundException:
> >> > > > Could not find resource for full path:
> >> > > > http://localhost:8080/auth/admin/realms/myApp/applications-by-id
> >> > > > 17:30:23,886 INFO [stdout] (default task-33) at
> >> > > >
> >> org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:112)
> >> > > > 17:30:23,887 INFO [stdout] (default task-33) at
> >> > > > org.jboss.resteasy.core.registry.RootNode.match(RootNode.java:43)
> >> > > > 17:30:23,887 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.LocatorRegistry.getResourceInvoker(LocatorRegistry.java:79)
> >> > > > 17:30:23,888 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:131)
> >> > > > 17:30:23,888 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109)
> >> > > > 17:30:23,888 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135)
> >> > > > 17:30:23,888 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)
> >> > > > 17:30:23,889 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
> >> > > > 17:30:23,889 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
> >> > > > 17:30:23,889 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
> >> > > > 17:30:23,890 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
> >> > > > 17:30:23,890 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
> >> > > > 17:30:23,891 INFO [stdout] (default task-33) at
> >> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> >> > > > 17:30:23,891 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
> >> > > > 17:30:23,891 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
> >> > > > 17:30:23,892 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41)
> >> > > > 17:30:23,892 INFO [stdout] (default task-33) at
> >> > > >
> >> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
> >> > > > 17:30:23,892 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
> >> > > > 17:30:23,893 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40)
> >> > > > 17:30:23,893 INFO [stdout] (default task-33) at
> >> > > >
> >> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
> >> > > > 17:30:23,893 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
> >> > > > 17:30:23,894 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
> >> > > > 17:30:23,894 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
> >> > > > 17:30:23,894 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> >> > > > 17:30:23,895 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> >> > > > 17:30:23,895 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >> > > > 17:30:23,895 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
> >> > > > 17:30:23,896 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
> >> > > > 17:30:23,896 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >> > > > 17:30:23,896 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
> >> > > > 17:30:23,897 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)
> >> > > > 17:30:23,899 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
> >> > > > 17:30:23,899 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
> >> > > > 17:30:23,900 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
> >> > > > 17:30:23,900 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >> > > > 17:30:23,902 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> >> > > > 17:30:23,902 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >> > > > 17:30:23,902 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> >> > > > 17:30:23,903 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
> >> > > > 17:30:23,903 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
> >> > > > 17:30:23,903 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
> >> > > > 17:30:23,904 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
> >> > > > 17:30:23,910 INFO [stdout] (default task-33) at
> >> > > >
> >> io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
> >> > > > 17:30:23,912 INFO [stdout] (default task-33) at
> >> > > >
> >> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
> >> > > > 17:30:23,912 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >> > > > 17:30:23,913 INFO [stdout] (default task-33) at
> >> > > >
> >> > >
> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >> > > > 17:30:23,913 INFO [stdout] (default task-33) at
> >> > > > java.lang.Thread.run(Thread.java:745)
> >> > > >
> >> > > >
> >> > > > Can anyone give me a hint as to where to look or what to look for?
> >> > > > I previously had a realm configured and started getting this error
> >> so I
> >> > > > started fresh and am still getting it.
> >> > > > Thanks in advance
> >> > > > --
> >> > > >
> >> > > >
> >> > > >
> >> > > > Hernán Metaute
> >> > > > Arquitecto
> >> > > > Ceiba Software
> >> > > > (57 4) 444 5 111 Ext 110
> >> > > > Cl 8 B 65 - 191 Of 409, Centro Empresarial Puertoseco – Medellín,
> >> > > Colombia
> >> > > > Visite nuestro sitio www.ceiba.co
> >> > > ________________________________________
> >> > > > BEste mensaje, incluido su adjunto, es confidencial y puede ser
> >> > > privilegiado.
> >> > > > Si usted no es su destinatario, por favor notifique al emisor, luego
> >> > > > destruya la comunicacion y todas las copias. Usted no debe copiar,
> >> > > > distribuir y/o revelar esta comunicacion parcial o totalmente sin
> >> > > > autorización del emisor.
> >> > > >
> >> > > > _______________________________________________
> >> > > > keycloak-user mailing list
> >> > > > keycloak-user at lists.jboss.org
> >> > > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > *Hernán Metaute*
> >> > Arquitecto
> >> >
> >> > *Ceiba Software *(57 4) 444 5 111 Ext 110
> >> > Cl 8 B  65 - 191 Of 409, Centro Empresarial Puertoseco – Medellín,
> >> Colombia
> >> > Visite nuestro sitio www.ceiba.co <http://www.ceiba.com.co/>
> >> > ________________________________________
> >> > BEste mensaje, incluido su adjunto, es confidencial y puede ser
> >> > privilegiado. Si usted no es su destinatario, por favor notifique al
> >> > emisor, luego destruya la comunicacion y todas las copias. Usted no debe
> >> > copiar, distribuir y/o revelar esta comunicacion parcial o totalmente
> >> sin
> >> > autorización del emisor.
> >> >
> >>
> >
> >
> >
> > --
> >
> > *Hernán Metaute*
> > Arquitecto
> >
> > *Ceiba Software *(57 4) 444 5 111 Ext 110
> > Cl 8 B  65 - 191 Of 409, Centro Empresarial Puertoseco – Medellín, Colombia
> > Visite nuestro sitio www.ceiba.co <http://www.ceiba.com.co/>
> > ________________________________________
> > BEste mensaje, incluido su adjunto, es confidencial y puede ser
> > privilegiado. Si usted no es su destinatario, por favor notifique al
> > emisor, luego destruya la comunicacion y todas las copias. Usted no debe
> > copiar, distribuir y/o revelar esta comunicacion parcial o totalmente sin
> > autorización del emisor.
> >
> 
> 
> 
> --
> 
> *Hernán Metaute*
> Arquitecto
> 
> *Ceiba Software *(57 4) 444 5 111 Ext 110
> Cl 8 B  65 - 191 Of 409, Centro Empresarial Puertoseco – Medellín, Colombia
> Visite nuestro sitio www.ceiba.co <http://www.ceiba.com.co/>
> ________________________________________
> BEste mensaje, incluido su adjunto, es confidencial y puede ser
> privilegiado. Si usted no es su destinatario, por favor notifique al
> emisor, luego destruya la comunicacion y todas las copias. Usted no debe
> copiar, distribuir y/o revelar esta comunicacion parcial o totalmente sin
> autorización del emisor.
>


More information about the keycloak-user mailing list