AnsweredAssumed Answered

Cannot deploy webapp : Cannot resolve the name'extension' to a(n) 'element declaration' component.

Question asked by jean-charles.landron@soprasteria.com on Jun 26, 2015
Latest reply on Jul 1, 2015 by jean-charles.landron@soprasteria.com
Hi,

I'm working on :
* Linux LX01011L 2.6.32-358.6.2.el6.x86_64 #1 SMP Tue May 14 15:48:21 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
* OpenJDK Runtime Environment (rhel-2.5.3.1.el6-x86_64 u71-b14) /OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
* java version "1.7.0_71"
* Tomcat-8.0.20
* Activiti-5.17.0
* xercesImpl-2.11.0
* xml-apis-1.4.01

I can't deploy my webapp.
I got the exception :

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [
public org.activiti.engine.RuntimeService com.orange.obsit.sando.indigo.application.activiti.config.ActivitiConfig.runtimeService(org.activiti.spring.ProcessEngineFactoryBean) throws java.lang.Exception] threw exception; nested exception is org.activiti.bpmn.exceptions.XMLException: src-resolve: Cannot resolve the name 'extension' to a(n) 'element declaration' component.
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:590)
        … 66 more
Caused by: org.activiti.bpmn.exceptions.XMLException: src-resolve: Cannot resolve the name'extension' to a(n) 'element declaration' component.
        at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:277)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:186)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:112)
        at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:50)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:103)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:37)
        at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:78)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:156)
        at org.activiti.spring.autodeployment.DefaultAutoDeploymentStrategy.deployResources(DefaultAutoDeploymentStrategy.java:64)
        at org.activiti.spring.SpringProcessEngineConfiguration.autoDeployResources(SpringProcessEngineConfiguration.java:111)
        at org.activiti.spring.SpringProcessEngineConfiguration.buildProcessEngine(SpringProcessEngineConfiguration.java:67)
        at org.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:60)
        at com.orange.obsit.sando.indigo.application.activiti.config.ActivitiConfig.runtimeService(ActivitiConfig.java:148)
        at com.orange.obsit.sando.indigo.application.activiti.config.ActivitiConfig$$EnhancerBySpringCGLIB$$34f4aca0.CGLIB$runtimeService$2(<generated>)
        at com.orange.obsit.sando.indigo.application.activiti.config.ActivitiConfig$$EnhancerBySpringCGLIB$$34f4aca0$$FastClassBySpringCGLIB$$56ccfd1a.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:312)
        at com.orange.obsit.sando.indigo.application.activiti.config.ActivitiConfig$$EnhancerBySpringCGLIB$$34f4aca0.runtimeService(<generated>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166)
        … 67 more
Caused by: org.xml.sax.SAXParseException; systemId: jar:war:file:/opt/application/indofp0/G01R01C01/tomcat/00/webapps/indigo-war-stateless-0.0.1-SNAPSHOT.war^/WEB-INF/lib/activiti-bpmn-converter-5.17.0.jar!/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 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4162)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4145)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1741)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseLocal(XSDElementTraverser.java:170)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseLocalElements(XSDHandler.java:3618)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:633)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:616)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:574)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:540)
        at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:252)
        at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:627)
        at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:659)
        at org.activiti.bpmn.converter.BpmnXMLConverter.createSchema(BpmnXMLConverter.java:229)
        at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:208)
        at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:266)
        … 97 more



Any help would be welcome.

Regards,
jcharles.

Outcomes