cancel
Showing results for 
Search instead for 
Did you mean: 

Error while deploying a workflow

sjmo
Champ in-the-making
Champ in-the-making
Hi everyone

I try to upgrade our application from activiti 5.7 to 5.12. While deploying the xml I get an java.lang.NoSuchMethodError.

Has anyone an idea what's wrong?

Thx, sjmo

———–
xml
———–

<?xml version="1.0" encoding="UTF-8" standalone="no"?><definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples" typeLanguage="http://www.w3.org/2001/XMLSchema">
  <process id="Storno" isExecutable="true" name="Storno">
    <startEvent id="startevent1" name="Start"/>
    <userTask activiti:assignee="lastActor" activitiSmiley Tongueriority="NORMAL" id="servicetask1" name="Storno"/>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="servicetask1"/>
    <endEvent id="endevent1" name="End"/>
    <sequenceFlow id="flow2" sourceRef="servicetask1" targetRef="endevent1"/>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_Storno">
    <bpmndi:BPMNPlane bpmnElement="Storno" id="BPMNPlane_Storno">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="40.0" y="50.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
        <omgdc:Bounds height="55.0" width="105.0" x="110.0" y="40.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="247.0" y="50.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="75.0" y="67.0"/>
        <omgdi:waypoint x="110.0" y="67.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="215.0" y="67.0"/>
        <omgdi:waypoint x="247.0" y="67.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>


—————
Exception
—————

2013-08-05 15:30:09,846 level=SEVERE  [framework] message=java.rmi.RemoteException: EJB Exception: ; nested exception is:
   java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSourceSmiley WinkV throwable=java.rmi.RemoteException: EJB Exception: ; nested exception is:
   java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSourceSmiley WinkV
ch.axenta.frameworks.workflow.exception.AXWorkflowException: java.rmi.RemoteException: EJB Exception: ; nested exception is:
   java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSourceSmiley WinkV
   at ch.axenta.pk.client.application.workflow.PKWorkflowEngineProxyImpl.deploy(PKWorkflowEngineProxyImpl.java:521)
   at ch.axenta.pk.client.application.PKClientApplicationImpl.performWorkflowHotDeployment(PKClientApplicationImpl.java:1684)
   at ch.axenta.pk.client.application.PKClientApplicationImpl.onLogin(PKClientApplicationImpl.java:447)
   at ch.axenta.pk.client.login.PKLoginPanel.login(PKLoginPanel.java:193)
   at ch.axenta.pk.client.login.PKLoginPanel$LoginAction.actionPerformed(PKLoginPanel.java:214)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
   at java.awt.Component.processMouseEvent(Component.java:6297)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
   at java.awt.Component.processEvent(Component.java:6062)
   at java.awt.Container.processEvent(Container.java:2039)
   at java.awt.Component.dispatchEventImpl(Component.java:4660)
   at java.awt.Container.dispatchEventImpl(Container.java:2097)
   at java.awt.Component.dispatchEvent(Component.java:4488)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
   at java.awt.Container.dispatchEventImpl(Container.java:2083)
   at java.awt.Window.dispatchEventImpl(Window.java:2489)
   at java.awt.Component.dispatchEvent(Component.java:4488)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
   at java.awt.EventQueue.access$400(EventQueue.java:81)
   at java.awt.EventQueue$2.run(EventQueue.java:627)
   at java.awt.EventQueue$2.run(EventQueue.java:625)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$3.run(EventQueue.java:641)
   at java.awt.EventQueue$3.run(EventQueue.java:639)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
   java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSourceSmiley WinkV
   at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
   at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
   at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
   at ch.axenta.pk.ejb.workflowengine.PKWorkflowEngineBean_27jr3c_EOImpl_1033_WLStub.deploy(Unknown Source)
   at ch.axenta.pk.client.application.workflow.PKWorkflowEngineProxyImpl.deploy(PKWorkflowEngineProxyImpl.java:511)
   … 42 more
Caused by: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSourceSmiley WinkV
   at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
   at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:626)
   at org.activiti.bpmn.converter.BpmnXMLConverter.createSchema(BpmnXMLConverter.java:181)
   at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:160)
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:214)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:179)
   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:70)
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:134)
   at ch.axenta.pk.ejb.workflowengine.repository.PKRepositoryService.deploy(PKRepositoryService.java:131)
   at ch.axenta.pk.ejb.workflowengine.PKWorkflowEngineImpl.deploy(PKWorkflowEngineImpl.java:143)
   at ch.axenta.pk.ejb.workflowengine.PKWorkflowEngineBean.deploy(PKWorkflowEngineBean.java:92)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
   at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
   at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
   at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
   at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
   at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
   at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
   at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
   at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
   at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy129.deploy(Unknown Source)
   at ch.axenta.pk.ejb.workflowengine.PKWorkflowEngineBean_27jr3c_EOImpl.deploy(PKWorkflowEngineBean_27jr3c_EOImpl.java:1362)
   at ch.axenta.pk.ejb.workflowengine.PKWorkflowEngineBean_27jr3c_EOImpl_WLSkel.invoke(Unknown Source)
   at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
   at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
   at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
   at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
   at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
   at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
1 REPLY 1

sjmo
Champ in-the-making
Champ in-the-making
SOLVED - I had an old (additional) implementation of xerces in the classpath.