0
votes

I tried to run server in standalone mode but I get this:

Failed to start service jboss.deployment.unit."keycloak-server.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."keycloak-server.war".undertow-deployment: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)

I downloaded the 'keycloak-7.0.0.zip' file, unzip it and run with standalone.bat file as stated in the documentation. I made my research about this error but couldn't find much. This is the full log I get

Full Log

Anyone knows how to handle this errors?

Thanks in advance

1

1 Answers

0
votes

TL;DR

Try to start keycloak using cmd line:

> standalone.bat -Dkeycloak.profile=COMMUNITY

The longer version:

The error in the logs mentions a wrong ProfileValue

Caused by: java.lang.IllegalArgumentException: No enum constant org.keycloak.common.Profile.ProfileValue.COMMUNÝTY
at java.lang.Enum.valueOf(Enum.java:238)
at org.keycloak.common.Profile$ProfileValue.valueOf(Profile.java:71)
at org.keycloak.common.Profile.<init>(Profile.java:91)
at org.keycloak.common.Profile.<clinit>(Profile.java:77)
... 42 more

ProfileValue.COMMUNÝTY is undefined.

The corresponding class org.keycloak.common.Profile only defines a ProfileValue.COMMUNITY. (see line 72) The Config class (inner class of Profile) provides the value, read from different possible locations.

  1. System property "keycloak.profile"
  2. JBoss configuration directory > profile.properties > profile
  3. etc.

For unknown reason the property read by your installation gets an incorrect value. Hopefully this helps to find the wrong configuration by yourself.