AnsweredAssumed Answered

Could not validate XML with BPMN 2.0 XSD in Activiti 5.13

Question asked by denis1 on Jul 3, 2013
Latest reply on Jan 16, 2014 by pachera.simone
I'm developing simple application using JDK7, Eclipse Juno, Tomcat 7.0.41 and Activity Engine 5.13, but following exception raises when I try to deploy simple-approval.bpmn20.xml (or any other):


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 gateway.ui.ProcessEngineServletContextListener.deployProcesses(ProcessEngineServletContextListener.java:107)
   at gateway.ui.ProcessEngineServletContextListener.contextInitialized(ProcessEngineServletContextListener.java:37)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)
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)
   … 21 more
Caused by: org.xml.sax.SAXParseException; systemId: file:/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/work/Catalina/localhost/ui/loader/org/activiti/impl/bpmn/parser/BPMN20.xsd; lineNumber: 15; columnNumber: 70; src-resolve: Cannot resolve the name 'extension' to a(n) 'element declaration' component.
   at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
   at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
   at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
   at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
   at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown Source)
   at org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unknown Source)
   at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknown Source)
   at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
   at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
   at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
   at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
   at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:623)
   at org.activiti.bpmn.converter.BpmnXMLConverter.createSchema(BpmnXMLConverter.java:182)
   at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:161)
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:219)
   … 22 more


Activiti Explorer with same workflow configuration under Tomcat 7.0.41 works fine. Any ideas on how to resolve these errors?

Outcomes