after a disk loss in the raid array, array was rebuild and dcm4chee restarted with deployment error :
Echo service can't be deployed, with following errors in server log :
...
2018-12-17 14:45:27,211 ERROR -> (main) [STDERR] [Fatal Error] :-1:-1: Premature end of file.
2018-12-17 14:45:27,214 WARN -> (main) [org.jboss.mx.persistence.DelegatingPersistenceManager] Caught exception while loading
org.xml.sax.SAXParseException: Premature end of file.
...
2018-12-17 14:45:27,217 WARN -> (main) [org.jboss.mx.server.registry.BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='dcm4chee.archive:service=ECHOService', Class=org.dcm4chex.archive.mbean.EchoService (org.dcm4chex.archive.mbean.EchoService@856d3b)]
2018-12-17 14:45:27,217 INFO -> (main) [org.dcm4chex.archive.mbean.EchoService] Registration is not done -> stop
2018-12-17 14:45:27,220 ERROR -> (main) [org.jboss.deployment.MainDeployer] Could not create deployment: file:/usr/local/dcm4chee/server/default/deploy/dcm4chee-echo-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
...
Caused by: java.lang.reflect.InvocationTargetException
...
Caused by: javax.management.MBeanException
...
Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='dcm4chee.archive:service=ECHOService', Class=org.dcm4chex.archive.mbean.EchoService (org.dcm4chex.archive.mbean.EchoService@856d3b)]
...
Caused by: javax.management.MBeanException
...
Caused by: org.xml.sax.SAXParseException: Premature end of file.
...
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@2c77a14f { url=file:/usr/local/dcm4chee/server/default/deploy/dcm4chee-echo-service.xml }
deployer: org.jboss.deployment.SARDeployer@d3db51
status: Deployment FAILED reason: - nested throwable: (java.lang.reflect.InvocationTargetException)
state: FAILED
watch: file:/usr/local/dcm4chee/server/default/deploy/dcm4chee-echo-service.xml
altDD: null
lastDeployed: 1545054327190
lastModified: 1545054327000
mbeans:
org.jboss.deployment.DeploymentInfo@a17c88d2 { url=file:/usr/local/dcm4chee/server/default/deploy/dcm4chee-echo-service.xml.save }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/usr/local/dcm4chee/server/default/deploy/dcm4chee-echo-service.xml.save
altDD: null
lastDeployed: 1545054346507
lastModified: 1545054346000
mbeans:
...
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: dcm4chee.archive:service=ECHOService
State: NOTYETINSTALLED
Depends On Me:
dcm4chee.archive:service=AE
...
So I guess there is some sort of corrupted file that can't be read and prevents Echo service to be deployed, but I can't find it.
file /usr/local/dcm4chee/server/default/deploy/dcm4chee-echo-service.xml exists and is readable.
I compared its content with the same file on another dcm4chee working instance, and it is exactly the same.
If anyone has an idea, please tell me where to look.