HiAccording to the error I think I have to add infinispan jar file in providers folder but I don't know that I am right or not, and there are many jar file regarding this .My keycloak-server.json file is given below:{"providers": ["classpath:${jboss.server.config.dir}/providers/*" ],"admin": {"realm": "master"},"eventsStore": {"provider": "jpa","jpa": {"exclude-events": [ "REFRESH_TOKEN" ]}},"realm": {"provider": "jpa"},"user": {"provider": "jpa"},"realmCache": {"provider": "infinispan"},"userCache": {"provider": "infinispan"},"userSessions": {"provider": "infinispan"},"timer": {"provider": "basic"},"theme": {"default": "keycloak","staticMaxAge": 2592000,"cacheTemplates": true,"cacheThemes": true,"folder": {"dir": "${jboss.server.config.dir}/themes" }},"scheduled": {"interval": 900},"connectionsHttpClient": {"default": {"disable-trust-manager": true}},"connectionsJpa": {"default": {"dataSource": "java:jboss/datasources/KeycloakDS", "databaseSchema": "update"}},"connectionsInfinispan": {"default" : {"cacheContainer" : "java:jboss/infinispan/Keycloak" }}}--On Wed, Sep 14, 2016 at 10:20 PM, Aman Jaiswal <aman.jaiswal@arvindinternet.com > wrote:Hi I am geting follwoing error when trying to integrate infinispan with keycloak
/home/ubuntu/keycloak/keycloa
k-2.1.0.Final/bin/standalone. sh --server-config=standalone-ha. xml -b=$ip -Djava.net.preferIPv4Stack=tru e -Djboss.default.jgroups.stack= s3 -Djgroups.s3.bucket=keycloak-d ev -Djgroups.s3.access_key=AKIAJL ZZOFCWT37CYAXQ -Djgroups.s3.secret_access_key =N4iy7/K3hzqaCzIwhVYKXui8oFFHo utkFz3Sf/yl -Djgroups.management.address=$ ipkeycloakdevadmin ==============================
============================== =============
JBoss Bootstrap Environment
JBOSS_HOME: /home/ubuntu/keycloak/keycloak
-2.1.0.Final
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=tru
e -Djboss.modules.system.pkgs=or g.jboss.byteman -Djava.awt.headless=true
==============================
============================== =============
16:16:59,292 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
16:16:59,556 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
16:16:59,648 INFO [org.jboss.as] (MSC service thread 1-3) WFLYSRV0049: Keycloak 2.1.0.Final (WildFly Core 2.0.10.Final) starting
16:17:01,235 INFO [org.jboss.as.controller.mana
gement-deprecated] (ServerService Thread Pool -- 16) WFLYCTL0028: Attribute 'default-stack' in the resource at address '/subsystem=jgroups' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 16:17:01,618 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
16:17:01,647 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.3.4.Final
16:17:01,674 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.3.4.Final
16:17:01,740 INFO [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 4.0.18.Final
16:17:01,786 INFO [org.jboss.as.connector.subsy
stems.datasources] (ServerService Thread Pool -- 35) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 16:17:01,792 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 39) WFLYCLINF0001: Activating Infinispan subsystem. 16:17:01,794 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 38) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors
16:17:01,811 INFO [org.jboss.as.connector.subsy
stems.datasources] (ServerService Thread Pool -- 35) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 16:17:01,846 INFO [org.jboss.as.clustering.jgro
ups] (ServerService Thread Pool -- 43) WFLYCLJG0001: Activating JGroups subsystem. 16:17:01,875 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 46) WFLYJSF0007: Activated the following JSF Implementations: [main]
16:17:01,901 INFO [org.jboss.as.connector] (MSC service thread 1-3) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.2.Final)
16:17:01,907 INFO [org.jboss.as.connector.deplo
yers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = mysql 16:17:01,908 INFO [org.jboss.as.connector.deplo
yers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2 16:17:01,912 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 49) WFLYNAM0001: Activating Naming Subsystem
16:17:02,026 INFO [org.jboss.as.security] (ServerService Thread Pool -- 56) WFLYSEC0002: Activating Security Subsystem
16:17:02,050 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 59) WFLYWS0002: Activating WebServices Extension
16:17:02,066 INFO [org.jboss.as.security] (MSC service thread 1-3) WFLYSEC0001: Current PicketBox version=4.9.4.Final
16:17:02,072 INFO [org.wildfly.extension.undert
ow] (ServerService Thread Pool -- 58) WFLYUT0003: Undertow 1.3.15.Final starting 16:17:02,078 INFO [org.wildfly.extension.undert
ow] (MSC service thread 1-4) WFLYUT0003: Undertow 1.3.15.Final starting 16:17:02,112 INFO [org.jboss.as.naming] (MSC service thread 1-4) WFLYNAM0003: Starting Naming Service
16:17:02,113 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
16:17:02,394 INFO [org.wildfly.extension.undert
ow] (ServerService Thread Pool -- 58) WFLYUT0014: Creating file handler for path '/home/ubuntu/keycloak/keycloa k-2.1.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]'] 16:17:02,404 INFO [org.wildfly.extension.undert
ow] (MSC service thread 1-1) WFLYUT0012: Started server default-server. 16:17:02,442 INFO [org.wildfly.extension.undert
ow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting 16:17:02,515 INFO [org.wildfly.extension.undert
ow] (MSC service thread 1-3) WFLYUT0006: Undertow HTTP listener default listening on 10.1.3.93:8080 16:17:02,523 INFO [org.wildfly.extension.undert
ow] (MSC service thread 1-1) WFLYUT0006: Undertow AJP listener ajp listening on 10.1.3.93:8009 16:17:02,527 INFO [org.jboss.modcluster] (ServerService Thread Pool -- 62) MODCLUSTER000001: Initializing mod_cluster version 1.3.1.Final
16:17:02,542 INFO [org.jboss.modcluster] (ServerService Thread Pool -- 62) MODCLUSTER000032: Listening to proxy advertisements on /224.0.1.105:23364
16:17:03,071 INFO [org.jboss.as.connector.subsy
stems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/Keyclo akDS] 16:17:03,304 INFO [org.jboss.as.server.deployme
nt] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "keycloak-server.war" (runtime-name: "keycloak-server.war") 16:17:03,627 INFO [org.jboss.ws.common.manageme
nt] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.1.3.Final (Apache CXF 3.1.4) 16:17:08,079 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-4) ISPN000078: Starting JGroups channel keycloak 16:17:08,080 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-1) ISPN000078: Starting JGroups channel server 16:17:08,081 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-3) ISPN000078: Starting JGroups channel hibernate 16:17:08,081 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-2) ISPN000078: Starting JGroups channel web 16:17:08,096 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-4) ISPN000094: Received new cluster view for channel keycloak: [ip-10-1-3-93|0] (1) [ip-10-1-3-93] 16:17:08,096 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-1) ISPN000094: Received new cluster view for channel server: [ip-10-1-3-93|0] (1) [ip-10-1-3-93] 16:17:08,096 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-3) ISPN000094: Received new cluster view for channel hibernate: [ip-10-1-3-93|0] (1) [ip-10-1-3-93] 16:17:08,098 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-2) ISPN000094: Received new cluster view for channel web: [ip-10-1-3-93|0] (1) [ip-10-1-3-93] 16:17:08,101 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-3) ISPN000079: Channel hibernate local address is ip-10-1-3-93, physical addresses are [10.1.3.93:55200] 16:17:08,102 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-1) ISPN000079: Channel server local address is ip-10-1-3-93, physical addresses are [10.1.3.93:55200] 16:17:08,105 INFO [org.infinispan.factories.Glo
balComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final 16:17:08,108 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-2) ISPN000079: Channel web local address is ip-10-1-3-93, physical addresses are [10.1.3.93:55200] 16:17:08,108 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-4) ISPN000079: Channel keycloak local address is ip-10-1-3-93, physical addresses are [10.1.3.93:55200] 16:17:08,147 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-3) ISPN000078: Starting JGroups channel ejb 16:17:08,150 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-3) ISPN000094: Received new cluster view for channel ejb: [ip-10-1-3-93|0] (1) [ip-10-1-3-93] 16:17:08,150 INFO [org.infinispan.remoting.tran
sport.jgroups.JGroupsTransport ] (MSC service thread 1-3) ISPN000079: Channel ejb local address is ip-10-1-3-93, physical addresses are [10.1.3.93:55200] 16:17:08,473 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 67) WFLYCLINF0002: Started work cache from keycloak container 16:17:08,482 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 65) WFLYCLINF0002: Started realms cache from keycloak container 16:17:08,487 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started offlineSessions cache from keycloak container 16:17:08,491 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 66) WFLYCLINF0002: Started loginFailures cache from keycloak container 16:17:08,492 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 63) WFLYCLINF0002: Started sessions cache from keycloak container 16:17:08,494 INFO [org.jboss.as.clustering.infi
nispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started users cache from keycloak container 16:17:09,206 INFO [org.keycloak.services] (ServerService Thread Pool -- 66) KC-SERVICES0001: Loading config from /home/ubuntu/keycloak/keycloak
-2.1.0.Final/standalone/ configuration/keycloak-server. json 16:17:09,477 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 66) MSC000001: Failed to start service jboss.undertow.deployment.defa
ult-server.default-host./auth: org.jboss.msc.service.StartExc eption in service jboss.undertow.deployment.defa ult-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resource s.KeycloakApplication(javax. servlet.ServletContext,org. jboss.resteasy.core.Dispatcher ) at org.wildfly.extension.undertow
.deployment.UndertowDeployment Service$1.run( UndertowDeploymentService.java :85) at java.util.concurrent.Executors
$RunnableAdapter.call( Executors.java:511) at java.util.concurrent.FutureTas
k.run(FutureTask.java:266) at java.util.concurrent.ThreadPoo
lExecutor.runWorker(ThreadPool Executor.java:1142) at java.util.concurrent.ThreadPoo
lExecutor$Worker.run(ThreadPoo lExecutor.java:617) at java.lang.Thread.run(Thread.ja
va:745) at org.jboss.threads.JBossThread.
run(JBossThread.java:320) Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resource
s.KeycloakApplication(javax. servlet.ServletContext,org. jboss.resteasy.core.Dispatcher ) at org.jboss.resteasy.core.Constr
uctorInjectorImpl.construct(Co nstructorInjectorImpl.java:162 ) at org.jboss.resteasy.spi.Resteas
yProviderFactory.createProvide rInstance(ResteasyProviderFact ory.java:2209) at org.jboss.resteasy.spi.Resteas
yDeployment.createApplication( ResteasyDeployment.java:299) at org.jboss.resteasy.spi.Resteas
yDeployment.start(ResteasyDepl oyment.java:240) at org.jboss.resteasy.plugins.ser
ver.servlet.ServletContainerDi spatcher.init(ServletContainer Dispatcher.java:113) at org.jboss.resteasy.plugins.ser
ver.servlet.HttpServletDispatc her.init(HttpServletDispatcher .java:36) at io.undertow.servlet.core.Lifec
yleInterceptorInvocation.proce ed(LifecyleInterceptorInvocati on.java:117) at org.wildfly.extension.undertow
.security.RunAsLifecycleInterc eptor.init(RunAsLifecycleInter ceptor.java:78) at io.undertow.servlet.core.Lifec
yleInterceptorInvocation.proce ed(LifecyleInterceptorInvocati on.java:103) at io.undertow.servlet.core.Manag
edServlet$DefaultInstanceStrat egy.start(ManagedServlet.java: 231) at io.undertow.servlet.core.Manag
edServlet.createServlet(Manage dServlet.java:132) at io.undertow.servlet.core.Deplo
ymentManagerImpl.start(Deploym entManagerImpl.java:526) at org.wildfly.extension.undertow
.deployment.UndertowDeployment Service.startContext(UndertowD eploymentService.java:101) at org.wildfly.extension.undertow
.deployment.UndertowDeployment Service$1.run( UndertowDeploymentService.java :82) ... 6 more
Caused by: java.lang.RuntimeException: Failed to find provider infinispan for realmCache
at org.keycloak.services.DefaultK
eycloakSessionFactory.loadSPIs (DefaultKeycloakSessionFactory .java:96) at org.keycloak.services.DefaultK
eycloakSessionFactory.init(Def aultKeycloakSessionFactory.jav a:75) at org.keycloak.services.resource
s.KeycloakApplication.createSe ssionFactory(KeycloakApplicati on.java:244) at org.keycloak.services.resource
s.KeycloakApplication.<init>( KeycloakApplication.java:78) at sun.reflect.NativeConstructorA
ccessorImpl.newInstance0( Native Method) at sun.reflect.NativeConstructorA
ccessorImpl.newInstance(Native ConstructorAccessorImpl.java: 62) at sun.reflect.DelegatingConstruc
torAccessorImpl.newInstance(De legatingConstructorAccessorImp l.java:45) at java.lang.reflect.Constructor.
newInstance(Constructor.java:4 23) at org.jboss.resteasy.core.Constr
uctorInjectorImpl.construct(Co nstructorInjectorImpl.java:150 ) ... 19 more
16:17:09,482 ERROR [org.jboss.as.controller.manag
ement-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "keycloak-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.de fault-server.default-host./aut h" => "org.jboss.msc.service.StartEx ception in service jboss.undertow.deployment.defa ult-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resource s.KeycloakApplication(javax. servlet.ServletContext,org. jboss.resteasy.core.Dispatcher ) Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resource
s.KeycloakApplication(javax. servlet.ServletContext,org. jboss.resteasy.core.Dispatcher ) Caused by: java.lang.RuntimeException: Failed to find provider infinispan for realmCache"}}
16:17:09,543 INFO [org.jboss.as.server] (ServerService Thread Pool -- 61) WFLYSRV0010: Deployed "keycloak-server.war" (runtime-name : "keycloak-server.war")
16:17:09,545 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.undertow.deployment.defa
ult-server.default-host./auth: org.jboss.msc.service.StartExc eption in service jboss.undertow.deployment.defa ult-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resource s.KeycloakApplication(javax. servlet.ServletContext,org. jboss.resteasy.core.Dispatcher )
16:17:09,750 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/manageme
nt 16:17:09,751 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
16:17:09,753 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: Keycloak 2.1.0.Final (WildFly Core 2.0.10.Final) started (with errors) in 10846ms - Started 475 of 853 services (2 services failed or missing dependencies, 588 services are lazy, passive or on-demand)
--Thanks,Aman JaiswalThanks,Aman Jaiswal