This error occurs both on a Linux instance as well as a local instance running under Windows.
Project was built with 7.4.2 parent BOM.
Configuration of JBoss in the 7.4.2 instance is similar to that of 7.4.0. However, I did notice differences in the default standalone.xml file that comes with the distribution and the same file after startup. However, the post startup standalone.xml file is materially consistent with the same file of the 7.4.0 distribution.
Any help would be appreciated. Thanks.
The stack trace:
12:04:55,294 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC00001: Failed to start service org.camunda.bpm.platform.process-application-module."deployment.processs1-standalone-0.0.1-SNAPSHOT.war:main".START: org.jboss.msc.service.StartException in service org.camunda.bpm.platform.
process-application-module."deployment.process1-standalone-0.0.1-SNAPSHOT.war:main".START: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_55]
Caused by: java.lang.ExceptionInInitializerError
at org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat.<clinit>(DomXmlDataFormat.java:35)
at org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider.createInstance(DomXmlDataFormatProvider.java:32)
at org.camunda.spin.DataFormats.registerProvider(DataFormats.java:152)
at org.camunda.spin.DataFormats.registerCustomDataFormats(DataFormats.java:140)
at org.camunda.spin.DataFormats.registerDataFormats(DataFormats.java:124)
at org.camunda.spin.plugin.impl.SpinBpmPlatformPlugin.lookupSpinSerializers(SpinBpmPlatformPlugin.java:59)
at org.camunda.spin.plugin.impl.SpinBpmPlatformPlugin.initializeVariableSerializers(SpinBpmPlatformPlugin.java:51)
at org.camunda.spin.plugin.impl.SpinBpmPlatformPlugin.postProcessApplicationDeploy(SpinBpmPlatformPlugin.java:36)
at org.camunda.bpm.container.impl.jboss.service.ProcessApplicationStartService.notifyBpmPlatformPlugins(ProcessApplicationStartService.java:173)
at org.camunda.bpm.container.impl.jboss.service.ProcessApplicationStartService.start(ProcessApplicationStartService.java:146)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]
... 3 more
Caused by: java.lang.ClassCastException: org.camunda.spin.impl.xml.dom.DomXmlLogger cannot be cast to org.camunda.commons.logging.BaseLogger
at org.camunda.commons.logging.BaseLogger.createLogger(BaseLogger.java:88)
at org.camunda.spin.impl.xml.dom.DomXmlLogger.<clinit>(DomXmlLogger.java:35)
... 15 more
12:04:55,330 ERROR [org.jboss.as.server] (HttpManagementService-threads - 1) JBAS015870: Deploy of deployment "process1-standalone-0.0.1-SNAPSHOT.war" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"org.camunda.bpm.platform.process-application-module.\"deployment.process1-standalone-0.0.1-SNAPSHOT.war:main\".START" => "org.jboss.msc.service.StartException in service org.camunda.bpm.platform.process-application-module.\"deployment.process1-standalone-0
.0.1-SNAPSHOT.war:main\".START: Failed to start service
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.ClassCastException: org.camunda.spin.impl.xml.dom.DomXmlLogger cannot be cast to org.camunda.commons.logging.BaseLogger"}}
12:04:55,333 INFO [org.jboss.web] (ServerService Thread Pool -- 66) JBAS018224: Unregister web context: /process1-standalone-0.0.1-SNAPSHOT
12:04:56,612 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment process1-standalone-0.0.1-SNAPSHOT.war (runtime-name: process1-standalone-0.0.1-SNAPSHOT.war) in 1284ms
Sebastian mentioned the same thing to me and I modified the POM file to set those dependencies to “provided”. I didn’t actually test it as I had other priorities, but I’m not sure why it would have made any difference. It just made the war file larger and besides, the process worked in 7.4.0.
We have a problem with the 7.4.2 JBoss distribution that is not present in the 7.4.0 JBoss distribution because the exact same process works in 7.4.0. What is interesting is that a colleague downloaded the exact same distribution that I did, created an extremely simple process and got the same errors. Therefore, this is not related to my specific processes. Our dependencies are resolved through an internal Maven (Nexus) repository which is supposedly synchronized to external repositories via proxy.
The process, by the way, consists of a start event, single service task with Java class that prints out “Hello, World”, and an end event. If that process doesn’t work, I’m not sure what else would. It’s unfortunate that it doesn’t work because when I tried to use Spin in 7.4.0, I had too many issues with it and abandoned it for something else. I know that 7.4.2 features fixes to Spin which might have resolved these issues.
Michael