AnsweredAssumed Answered

Error parsing XML - ' Could not validate XML with BPMN 2.0 XSD'

Question asked by prashant.kumar on Jul 26, 2013
Latest reply on Aug 1, 2013 by jbarrez
Hi,
I am new to Activiti. I am trying to do 'Hello World' in Actviti. But I am getting error.

Can you please help?

The XML Snippet:

<?xml version="1.0" encoding="UTF-8"?>
   <definitions id="definitions"xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL'targetNamespace='http://www.activiti.org/bpmn2.0">
        <process id="helloWorld">
…..
…..
————

The error:

Exception in thread "main" org.activiti.engine.ActivitiException: Error parsing XML
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:195)
   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.cmd.DeployCmd.execute(DeployCmd.java:68)
   at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:33)
   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.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:74)
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:134)
   at com.demo.Demo.main(Demo.java:22)
Caused by: java.lang.RuntimeException: Could not validate XML with BPMN 2.0 XSD
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:230)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:181)
   … 10 more
Caused by: org.xml.sax.SAXParseException: Element type "definitions" must be followed by either attribute specifications, ">" or "/>".

Outcomes