Secured UI and Unsecured RESTful services : Deploy Error

192 views
Skip to first unread message

chris bashall

unread,
Feb 4, 2019, 1:58:26 AM2/4/19
to dcm4che
Wildfly 12
Keycloak 4.6
PSQL

running version 15.1 of Secured UI and Unsecured RESTful services

Im up to the deploy stage of the EAR file via wildfly and keep getting an error in the server.log will rolls back the deploy. Both Keycloak and LDAP running without errors



2019-02-03 22:49:44,427 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 2) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear")]) - failure description: {
    "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"dcm4chee-arc-ear-5.15.1-psql-secure-ui.ear#dcm4chee-arc\"" => "javax.persistence.PersistenceException: [PersistenceUnit: dcm4chee-arc] Unable to build Hibernate SessionFactory
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: dcm4chee-arc] Unable to build Hibernate SessionFactory
    Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.NullPointerException"},
    "WFLYCTL0412: Required services that are not installed:" => [ (rest of log file attached)


I have followed all the steps so far without errors - any ideas?

Chris
server.log

vrinda...@j4care.com

unread,
Feb 4, 2019, 5:31:18 AM2/4/19
to dcm4che
Unable to reproduce the issue. Simulated with same versions as yours.
keycloak4.6-server.log
wildfly12-server.log

chris bashall

unread,
Feb 4, 2019, 5:56:38 AM2/4/19
to dcm4che
I noticed that the latest release for psql secure-ui 15.1 is missing some of the ldif files that are in the previous psql release (15.0)

I tried to import them now but it might be too late - do you think this could effect the deploy (as in the reason some of the services are missing?)

Chris 

vrinda...@j4care.com

unread,
Feb 4, 2019, 6:11:55 AM2/4/19
to dcm4che
I simulated with the ldif files available in the release.
- dicom.ldif, dcm4che.ldif, dcm4chee-archive.ldif and dcm4chee-archive-ui.ldif : These are the only 4 schemas needed for successful startup of the archive
- init-config.ldif and default-config.ldif : These are sufficient at first for successful startup of the archive.

The UI related ldifs for default-ui-config.ldif is needed for default UI configurations and UI permissions, but these can be imported even later once you have archive started up and you are logged in.

Which ldifs are missing? Some UI related ldifs have been corrected with version 5.15.1 (which are not available in 5.15.0)

chris bashall

unread,
Feb 4, 2019, 6:46:45 AM2/4/19
to dcm4che


Step 5 of Import default configuration into LDAP Server
- requires the following ldifs 
$DCM4CHEE_ARC/ldap/default-config.ldif
$DCM4CHEE_ARC/ldap/init-ui-config.ldif
$DCM4CHEE_ARC/ldap/default-ui-permissions.ldif

secure ui 15.1 psql doesnt contain
- init-ui-config.ldif (but does contain init-config)
- default-ui-permissions

vrinda...@j4care.com

unread,
Feb 4, 2019, 7:05:47 AM2/4/19
to dcm4che
Thanks for pointing out the issue. It has been fixed.
In this case you only need the following two :

5.  Import
- `$DCM4CHEE_ARC/ldap/default-config.ldif`
- `$DCM4CHEE_ARC/ldap/default-ui-config.ldif`

Some issues w.r.t UI ldifs were fixed as part of 5.15.1, so the init-ui.ldif and default-ui-permissions.ldif were replaced with all default UI changes contained in default-ui-config.ldif

chris bashall

unread,
Feb 4, 2019, 7:22:01 AM2/4/19
to dcm4che
Thank-you for the quick response - I'm a  big fan of  dcm4chee 

I'll let you know how i go

chris bashall

unread,
Feb 4, 2019, 10:43:54 PM2/4/19
to dcm4che
Switched to using Mysql secure ui with JDK 11.0.2

Im getting the exact same errors in the server.log 


2019-02-04 19:40:22,767 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 102) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'dcm4chee-arc-ear-5.15.1-mysql-secure-ui.ear#dcm4chee-arc'
2019-02-04 19:40:22,783 ERROR [org.jboss.as.server] (External Management Request Threads -- 1) WFLYSRV0021: Deploy of deployment "dcm4chee-arc-ear-5.15.1-mysql-secure-ui.ear" was rolled back with the following failure message: 
{
    "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"dcm4chee-arc-ear-5.15.1-mysql-secure-ui.ear#dcm4chee-arc\"" => "javax.persistence.PersistenceException: [PersistenceUnit: dcm4chee-arc] Unable to build Hibernate SessionFactory
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: dcm4chee-arc] Unable to build Hibernate SessionFactory
    Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
    Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.NullPointerException"},
    "WFLYCTL0412: Required services that are not installed:" => [
server.log

vrinda...@j4care.com

unread,
Feb 6, 2019, 5:46:12 AM2/6/19
to dcm4che
Could not reproduce the error with mysql either. Attached logs for reference.

Your logs says
Caused by: javax.resource.ResourceException: IJ031083: Wrong driver class [com.mysql.jdbc.Driver] for this connection URL [jdbc:mariadb://10.17.90.161:3306/pacsdb]

Check first if you can even connect to your database.
keycloak-4.6-server.log
wildfly-12-server.log

chris bashall

unread,
Feb 6, 2019, 11:34:31 PM2/6/19
to dcm4che
Thank you - solved it in the end, i think it was due to a JDK issue
Reply all
Reply to author
Forward
0 new messages