kft-activiti-demo部署问题

记录一下~~

在下载了kft-activiti-demo的原码部署后,系统启动总是报异常,使用的是Activiti5.12

org.activiti.engine.ActivitiException: Error parsing XML

at java.lang.Thread.run(Thread.java:662)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:42)
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.resolveProcessDefinition(DeploymentManager.java:95)
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedProcessDefinitionById(DeploymentManager.java:57)
at org.activiti.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:42)
at org.activiti.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:32)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:61)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.FormServiceImpl.getStartFormData(FormServiceImpl.java:54)
at de.rrze.bpm.services.BpmFormService.getStartFormById(BpmFormService.groovy:41)
at de.rrze.bpm.web.DefinitionController$_closure3.doCall(DefinitionController.groovy:198)
at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:106)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.RuntimeException: Could not validate XML with BPMN 2.0 XSD

at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:206)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:170)
... 16 more

Caused by: java.lang.IllegalArgumentException: Source parameter of type 'javax.xml.transform.stax.StAXSource' is not accepted by this validator.

at javax.xml.validation.Validator.validate(Validator.java:127)
at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:173)
at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:198)
... 17 more

最后在官方论坛找到解决办法
http://forums.activiti.org/content/staxsource-exception-512-default-war

We had the same problem when upgrading Activiti (in Apache Syncope) from 5.11 to 5.12: everything fine with JDK 7, exception with JDK 6.

We solved by adding xercesImpl 2.10.0 as JAR dependency.

HTH

你可能感兴趣的:(kft-activiti-demo部署问题)