Install the Keycloak Wildfly Adapter
> $WILDFLY_HOME/bin/jboss-cli.sh -c --file=adapter-install.cli
In dcm4chee-arc.xml:
<system-properties>
<property name="super-user-role" value="admin"/>
<property name="realm-name" value="dcm4che"/>
<property name="auth-server-url" value="http://127.0.0.1:8880/auth"/>
<property name="org.dcm4che.audit-keycloak.AppName" value="keycloak"/>
</system-properties>
</security-domain>
<security-domain name="keycloak">
<authentication>
<login-module code="org.keycloak.adapters.jboss.KeycloakLoginModule" flag="required"/>
</authentication>
</security-domain>
</security-domains>
I am using
LDAP Configuration and Keycloak User Federation.
This is what I got when I was trying to deploy dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear on ec2 Ubuntu 18.04.
--deploy /mnt/data/dcm4chee-arc/deploy/dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear#dcm4chee-arc\"" => "org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.
http://<host>:8880/auth/
I am comparing dcm4chee-arc.xml from my working docker version of dcm4chee-arc 5.14.1 (postgresql) with the dcm4chee-arc.xml from 5.15.1 (postgresql) standalone. It looks like 5.15.1 it is missing mechanism-name="Keycloak" and some other entries, like <extension module="org.keycloak.keycloak-adapter-subsystem"/>
On Tuesday, January 22, 2019 at 2:59:02 PM UTC-5, leogrande wrote:Yes, it was a db connection issue but now I am getting Keycloak authentication errors. I have just edited my initial post to replace that initial issue with the new one. My bad. I had to just reply to my post, sorry. But that issue with the Keycloak still persists. Thank you.
On Tuesday, January 22, 2019 at 2:40:33 PM UTC-5, gunterze wrote:Check your DB (connection configuration)!On Tue, Jan 22, 2019 at 6:15 PM leogrande <leon....@gmail.com> wrote:--This is what I got when I was trying to deploy dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear on ec2 Ubuntu 18.04.deploy /mnt/data/dcm4chee-arc/deploy/dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear#dcm4chee-arc\"" => "org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.
> $WILDFLY_HOME/bin/jboss-cli.sh -c --file=adapter-install.cli
keycloak-wildfly-adapter-dist-4.6.0
wildfly-12.0.0.Final
keycloak-4.6.0.Final
/subsystem=keycloak/secure-deployment=dcm4chee-arc-ui2-5.15.1-secure.war/:add(realm=dcm4che,resource=dcm4chee-arc-ui,auth-server-url=http://127.0.0.1:8880/auth,ssl-required=external,public-client=true)
But now I can't deploy dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear
I will try to figure it out.
- Install the Keycloak Wildfly Adapter
````
> $WILDFLY_HOME/bin/jboss-cli.sh -c --file=adapter-install.cli [UNIX]
> %WILDFLY_HOME%\bin\jboss-cli.bat -c --file=adapter-install.cli [Windows]
````