cancel
Showing results for 
Search instead for 
Did you mean: 

Error deploying BPMN20 containing a Web Service Task

ct1
Champ in-the-making
Champ in-the-making
In Activiti 5.8 Explorer, I am trying to deploy a BPMN20 file that contains a Web Service Task.  I have written a simple Web Service (very much like the one described in Activiti In Action, chapters 7 and 11).  I can call the Web Service from a Java client successfully.  I have tried to create a BPMN20 process that calls the same Web Service.  When I try to deploy the BPMN20 process via Explorer, I get the error shown below.

The jaxb-api-2.2.1.jar, which contains the javax.xml.bind.JAXBElement.class, is in the C:\Activiti\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-explorer\WEB-INF\lib directory.  I ran "ant demo.start" from the C:\Activiti\activiti-5.8\setup directory.

After the attempt to deploy the process, Explorer shows both the .png and the .bpmn20.xml files, but there is no Process Definition listed on the Deployments page.

If you have time, please take a look, then let me know where my problem is and how I might correct it.

The exception received when I try to deploy the BPMN20 file:


INFO: Processing resource CheckPrevEmploymentProcess.bpmn20.xml
Jan 17, 2012 1:58:12 PM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
Jan 17, 2012 1:58:12 PM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as expressionLanguage
Jan 17, 2012 1:58:12 PM org.activiti.engine.impl.bpmn.parser.BpmnParse execute
SEVERE: Uknown exception
org.activiti.engine.ActivitiClassLoadingException: Class not found: javax.xml.bind.JAXBElement<java.
lang.String>       
        at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:81)
        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importStructure(CxfWSDLImporter.java:
159)
        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importTypes(CxfWSDLImporter.java:146)

        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importFrom(CxfWSDLImporter.java:106)
        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importFrom(CxfWSDLImporter.java:69)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseImports(BpmnParse.java:283)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:213)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:192)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:81)
        at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:3
7)
        at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(Deployment
Manager.java:39)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java
:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInte
rceptor.java:42)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInter
ceptor.java:42)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.j
ava:130)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.jav
a:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.ja
va:106)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.deployUploadedFil
e(DeploymentUploadReceiver.java:88)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.uploadFinished(De
ploymentUploadReceiver.java:71)
        at org.activiti.explorer.ui.custom.UploadComponent.uploadFinished(UploadComponent.java:173)
        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.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
        at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
        at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
        at com.vaadin.ui.Upload.fireUploadSuccess(Upload.java:744)
        at com.vaadin.ui.Upload$1.streamingFinished(Upload.java:1022)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractComm
unicationManager.java:593)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUp
load(AbstractCommunicationManager.java:469)
        at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager
.java:257)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServ
let.java:495)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
va:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBElement<java.lang.String>
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:62)
        … 49 more

The BPMN20 file I am trying to deploy is:


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:activiti="http://activiti.org/bpmn"
   xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
   xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
   xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
   targetNamespace="http://www.activiti.org/test"
   xmlns:here="http://argo.com"
   >
   
   <import importType="http://schemas.xmlsoap.org/wsdl/"
         location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment?wsdl"
         namespace="http://argo.com" />
   
   <message id="locatePrevEmplymntInfoMessage"
         itemRef="here:itemDefRef1" />
   <message id="locatePrevEmplymntInfoResponseMessage"
         itemRef="here:itemDefRef2" />
         
   <itemDefinition id="itemDefRef1"
         structureRef="here:CheckPreviousEmployment" />
   <itemDefinition id="itemDefRef2"
         structureRef="here:CheckPreviousEmploymentResponse" />

   <interface name ="Find Previous Employment Info"
      implementationRef="here:PreviousEmploymentPortType" >
      <operation id="findPrevEmploymentInfoOperation"
            name="Find Previous Employment Info Operation"
            implementationRef="here:CheckPreviousEmployment">
         <inMessageRef>
            here:locatePrevEmplymntInfoMessage   
         </inMessageRef>
         <outMessageRef>
            here:locatePrevEmplymntInfoResponseMessage
         </outMessageRef>
      </operation>
   </interface>
   
   <itemDefinition id="candidateName" structureRef="string" />
   <itemDefinition id="applicantName" structureRef="string" />
   <itemDefinition id="return" structureRef="string" />   
   <itemDefinition id="prevEmplInfo" structureRef="string" />
   
   <process id="CheckPrevEmploymentProcess" name="CheckPrevEmploymentProcess">
      <documentation>This is a callable process used to check for previous
         employment of the applicant at our company.</documentation>
      <startEvent id="checkPrevEmplymntStart" name="Check Previous Employment Start">
         <extensionElements>
            <activiti:formProperty id="candidateName"
               name="Name of Candidate"
               type="string"
               required="true"
               readable="true" writable="true"></activiti:formProperty>
         </extensionElements>
      </startEvent>
      
      <scriptTask id="logStart" name="Log Process Start"
         scriptFormat="groovy">
      <script><![CDATA[print "CheckPrevEmploymentProcess started with candidate name ${candidateName}.\n"]]></script>
      </scriptTask>
      <serviceTask id="callPrevEmplWebService" name="Call Prev Employment Web Service"
         implementation="##WebService"
         operationRef="here:findPrevEmploymentInfoOperation">
         
         <ioSpecification>
            <dataInput itemSubjectRef="here:itemDefRef1"
                     id="dataInput" />
            <dataOutput
                     itemSubjectRef="here:itemDefRef2"
                     id="dataOutput" />
                     
            <inputSet>
               <dataInputRefs>dataInput</dataInputRefs>
            </inputSet>
            <outputSet>
               <dataOutputRefs>dataOutput</dataOutputRefs>
            </outputSet>
         </ioSpecification>
         
         <dataInputAssociation>
            <sourceRef>candidateName</sourceRef>
            <targetRef>applicantName</targetRef>
         </dataInputAssociation>
         <dataOutputAssociation>
            <sourceRef>return</sourceRef>
            <targetRef>prevEmplInfo</targetRef>
         </dataOutputAssociation>      
      </serviceTask>
      
      <sequenceFlow id="flow2" name="" sourceRef="callPrevEmplWebService"
         targetRef="logAfterWebSvcCall"></sequenceFlow>
      <scriptTask id="logAfterWebSvcCall" name="Log Prev Emplymnt Info"
         scriptFormat="groovy">
         <script><![CDATA[print "After Call Prev Employment Web Service task,
                     candidateName is ${candidateName}.\n
                     And prevEmplInfo is ${prevEmplInfo}.\n"]]></script>
      </scriptTask>
      <endEvent id="checkPrevEmplymntEnd" name="Check Prev Emplymnt End"></endEvent>
      <sequenceFlow id="flow3" name="" sourceRef="logAfterWebSvcCall"
         targetRef="checkPrevEmplymntEnd"></sequenceFlow>
      <sequenceFlow id="flow4" name="" sourceRef="checkPrevEmplymntStart"
         targetRef="logStart"></sequenceFlow>
      <sequenceFlow id="flow5" name="" sourceRef="logStart"
         targetRef="callPrevEmplWebService"></sequenceFlow>
   </process>
   <bpmndi:BPMNDiagram id="BPMNDiagram_CheckPrevEmploymentProcess">
      <bpmndi:BPMNPlane bpmnElement="CheckPrevEmploymentProcess"
         id="BPMNPlane_CheckPrevEmploymentProcess">
         <bpmndi:BPMNShape bpmnElement="checkPrevEmplymntStart"
            id="BPMNShape_checkPrevEmplymntStart">
            <omgdc:Bounds height="35" width="35" x="90" y="98"></omgdc:Bounds>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="callPrevEmplWebService"
            id="BPMNShape_callPrevEmplWebService">
            <omgdc:Bounds height="91" width="105" x="330" y="70"></omgdc:Bounds>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="logAfterWebSvcCall"
            id="BPMNShape_logAfterWebSvcCall">
            <omgdc:Bounds height="55" width="105" x="490" y="88"></omgdc:Bounds>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="checkPrevEmplymntEnd"
            id="BPMNShape_checkPrevEmplymntEnd">
            <omgdc:Bounds height="35" width="35" x="650" y="98"></omgdc:Bounds>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="logStart" id="BPMNShape_logStart">
            <omgdc:Bounds height="55" width="105" x="170" y="88"></omgdc:Bounds>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
            <omgdi:waypoint x="435" y="115"></omgdi:waypoint>
            <omgdi:waypoint x="490" y="115"></omgdi:waypoint>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
            <omgdi:waypoint x="595" y="115"></omgdi:waypoint>
            <omgdi:waypoint x="650" y="115"></omgdi:waypoint>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
            <omgdi:waypoint x="125" y="115"></omgdi:waypoint>
            <omgdi:waypoint x="170" y="115"></omgdi:waypoint>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
            <omgdi:waypoint x="275" y="115"></omgdi:waypoint>
            <omgdi:waypoint x="330" y="115"></omgdi:waypoint>
         </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
</definitions>

The WSDL of the Web Service I am trying to call is:


  <?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://argo.com"
   xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
   targetNamespace="http://argo.com">
   <wsdl:documentation>Please Type your service description here
   </wsdl:documentation>
   <wsdl:types>
      <xs:schema attributeFormDefault="qualified"
         elementFormDefault="qualified" targetNamespace="http://argo.com">
         <xs:element name="CheckPreviousEmployment">
            <xs:complexType>
               <xs:sequence>
                  <xs:element minOccurs="0" name="applicantName"
                     nillable="true" type="xs:string" />
               </xs:sequence>
            </xs:complexType>
         </xs:element>
         <xs:element name="CheckPreviousEmploymentResponse">
            <xs:complexType>
               <xs:sequence>
                  <xs:element minOccurs="0" name="return" nillable="true"
                     type="xs:string" />
               </xs:sequence>
            </xs:complexType>
         </xs:element>
      </xs:schema>
   </wsdl:types>
   <wsdl:message name="CheckPreviousEmploymentRequest">
      <wsdl:part name="parameters" element="ns:CheckPreviousEmployment" />
   </wsdl:message>
   <wsdl:message name="CheckPreviousEmploymentResponse">
      <wsdl:part name="parameters" element="ns:CheckPreviousEmploymentResponse" />
   </wsdl:message>
   <wsdl:portType name="PreviousEmploymentPortType">
      <wsdl:operation name="CheckPreviousEmployment">
         <wsdl:input message="ns:CheckPreviousEmploymentRequest"
            wsaw:Action="urn:CheckPreviousEmployment" />
         <wsdl:output message="ns:CheckPreviousEmploymentResponse"
            wsaw:Action="urn:CheckPreviousEmploymentResponse" />
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="PreviousEmploymentSoap11Binding" type="ns:PreviousEmploymentPortType">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
         style="document" />
      <wsdl:operation name="CheckPreviousEmployment">
         <soap:operation soapAction="urn:CheckPreviousEmployment"
            style="document" />
         <wsdl:input>
            <soap:body use="literal" />
         </wsdl:input>
         <wsdl:output>
            <soap:body use="literal" />
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:binding name="PreviousEmploymentSoap12Binding" type="ns:PreviousEmploymentPortType">
      <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
         style="document" />
      <wsdl:operation name="CheckPreviousEmployment">
         <soap12:operation soapAction="urn:CheckPreviousEmployment"
            style="document" />
         <wsdl:input>
            <soap12:body use="literal" />
         </wsdl:input>
         <wsdl:output>
            <soap12:body use="literal" />
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:binding name="PreviousEmploymentHttpBinding" type="ns:PreviousEmploymentPortType">
      <http:binding verb="POST" />
      <wsdl:operation name="CheckPreviousEmployment">
         <http:operation location="CheckPreviousEmployment" />
         <wsdl:input>
            <mime:content type="text/xml" part="parameters" />
         </wsdl:input>
         <wsdl:output>
            <mime:content type="text/xml" part="parameters" />
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="PreviousEmployment">
      <wsdl:port name="PreviousEmploymentHttpSoap11Endpoint"
         binding="ns:PreviousEmploymentSoap11Binding">
         <soap:address
            location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment.PreviousEmploymentHttpS..." />
      </wsdl:port>
      <wsdl:port name="PreviousEmploymentHttpSoap12Endpoint"
         binding="ns:PreviousEmploymentSoap12Binding">
         <soap12:address
            location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment.PreviousEmploymentHttpS..." />
      </wsdl:port>
      <wsdl:port name="PreviousEmploymentHttpEndpoint" binding="ns:PreviousEmploymentHttpBinding">
         <http:address
            location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment.PreviousEmploymentHttpE..." />
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>

The Java client that can access the Web Service is"

package com.argo;

import java.rmi.RemoteException;

public class PrevEmploymentCheckClient2
{
   public static void main(String[] args)
   {
      try
      {
         PreviousEmploymentStub theStub = new PreviousEmploymentStub();
         CheckPreviousEmployment cpe = new CheckPreviousEmployment();
         
         cpe.setApplicantName("BarryBlack-From Client2");
         
         String emplymntHistory = new String();
         
         CheckPreviousEmploymentResponse theResp =
                        theStub.checkPreviousEmployment(cpe);
         
         emplymntHistory = theResp.get_return();
         
         System.out.println("PrevEmploymentCheckClient2.main() found "
                     + "emplymntHistory = \""
                     + emplymntHistory
                     + "\".");
      
      }
      catch(AxisFault af)
      {
         af.printStackTrace();
      }
      catch(RemoteException re)
      {
         re.printStackTrace();
      }
   }

}

19 REPLIES 19

atifelkhachine
Champ in-the-making
Champ in-the-making
Hi,

Please try to put your jar 'jaxb-api-2.2.1.jar' in the activiti-rest\WEB-INF\lib OR in your apache-tomcat-6.0.32\lib

Best regards,
Atif

ct1
Champ in-the-making
Champ in-the-making
Thank you for the quick reply.

I copied the 'jaxb-api-2.2.1.jar' to, first the C:\Activiti\acitiviti-5.8\apps\apache-tomcat-6.0.32\lib, then to the C:\Activiti\acitiviti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\lib, restarted the demo ("ant demo.start" in the C:\Activiti\activiti-5.8\setup directory), and got the same results when I tried to deploy the BPMN20 file.  That is, I had the same exception noted in the intial post to the forum.  (Also, I had deleted the "jaxb-api-2.2.1.jar" from the Apache lib directory before copying it to the activiti-rest\WEB-INF\lib directory, so it would be only in the activiti-explorer WEB-INF\lib and in the activiti-rest WEB-INF\lib directories).

Do you think I may have missed something else?

Also, after running the test above, I guessed you might point me to the Forums to a reply to similar problem that prompted a reply from Tijs Rademakers to another user on Oct. 4, 2011.  (I think you can see that reply if you search on "Re: Running activiti-cxf-examples".)   In the reply he listed a number of .jar files that needed to be in the WEB-INF\lib directories of activiti-explorer and activiti-rest in order to run the CXF Examples, so I went ahead and copied the versions of the .jar files he listed to both WEB-INF\lib directories and restarted Explorer.  Now, when I try to deploy the BPMN20 file, I get the error shown below. 

Do you think I should replace the later versions of the .jar files with the ones I had before, or is this progress and this error points to something else I may have done incorrectly?  The cxf-rt-core-2.3.4.jar file, which is in the WEB-INF\lib directories of activiti-exployrer and activiti-rest, contains the "org/apache/cxf/bus/" but not the "org/apache/cxf/Bus"; do you think there is a difference and that I need another .jar file?

Thank you again for your attention and help.  You must have the patience of Job to deal with all of us new-comers to Activiti and to many of the Web features.


INFO: Processing resource CheckPrevEmploymentProcess.bpmn20.xml
Jan 18, 2012 9:11:04 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
Jan 18, 2012 9:11:04 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as expressionLanguage
Jan 18, 2012 9:11:05 AM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.NoClassDefFoundError: org/apache/cxf/Bus
        at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
        at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
        at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
        at com.vaadin.ui.Upload.fireUploadInterrupted(Upload.java:731)
        at com.vaadin.ui.Upload$1.streamingFailed(Upload.java:1037)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractComm
unicationManager.java:612)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUp
load(AbstractCommunicationManager.java:469)
        at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager
.java:257)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServ
let.java:495)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
va:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/Bus
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.getImporter(BpmnParse.java:295)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseImports(BpmnParse.java:279)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:213)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:192)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:81)
        at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:3
7)
        at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(Deployment
Manager.java:39)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java
:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInte
rceptor.java:42)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInter
ceptor.java:42)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.j
ava:130)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.jav
a:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.ja
va:106)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.deployUploadedFil
e(DeploymentUploadReceiver.java:88)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.uploadFinished(De
ploymentUploadReceiver.java:71)
        at org.activiti.explorer.ui.custom.UploadComponent.uploadFinished(UploadComponent.java:173)
        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.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
        … 21 more
Caused by: java.lang.ClassNotFoundException: org.apache.cxf.Bus
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        … 48 more

atifelkhachine
Champ in-the-making
Champ in-the-making
Hi,

You have to add all the CXF dependencies. Did you add cxf-x.x.x.jar ? (i can see that the Bus.class interface is within this jar)

Hop this helps.

Best regards,
Atif

ct1
Champ in-the-making
Champ in-the-making
Thanks again for looking at this for me.

The reason I took so long to reply is that I wanted to make sure I had all the dependencies for CXF.  So I went to "http://cxf.apache.org/docs/cxf-dependency-graphs.data/cxf-dependency-240.png" to see the diagram of dependencies.  I downloaded every .jar file on the page (as you can see from the list of files in the lib directory below).  Then I restarted Explorer ("ant demo.start" in the C:\Activiti\activiti-5.8\setup directory) and tried to deploy the BPMN20 file again.  That gave me the original exception, as noted below under "After getting all CSF dependencies - exception". 

Since the exception pointed to "javax.xml.bind.JAXBElement<java.lang.String>", which is in the jaxb-api-2.2.1.jar, I thought something might be wrong with the .jar file, so I downloaded a new copy of the jaxb-api-2.2.1.jar and put it in the WEB-INF/lib directories of both activiti-explorer and activiti-rest.  Then I started Explorer again (ant demo.start in the setup directory) and tried to deploy the BPMN20 file again.  I got the same exception as noted above.

I then thought that Explorer might be able to find the JAXBElement.class if I extracted the .class file and put it in the classes directory.  So I extracted the JAXBElement.class from the .jar file, made the directory path …\javax\xml\bind under the C:\Activiti\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-explorer\WEB-INF\classes directory and under the C:\Activiti\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\classes directory and put a copy of the JAXBElement.class in both directories.  I restarted Explorer (ant demo.start in the setup directory) and tried to deploy the BPMN20 file again.  I got the same exception, noted below.

This made me wonder where Exlorer is looking for .class files during the deployment.  So I removed the jaxb-api-2.2.1.jar from both the activiti-rest\WEB-INF\lib and the activiti-explorer\WEB-INF\lib and got the same exception.

Can you make an other suggestions?

Thank you.


Files in the Lib Directory:
    Directory of C:\Activiti\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-explorer\WEB-INF\lib after downloading all CXF dependencies:

    12/15/2011  12:20 PM           331,356 Act-Control-Proj2.jar
    10/31/2011  09:13 AM            63,018 activation-1.1.jar
    10/31/2011  09:13 AM             9,739 activiti-cxf-5.8-sources.jar
    10/31/2011  09:13 AM            16,132 activiti-cxf-5.8.jar
    10/31/2011  09:13 AM         1,072,378 activiti-engine-5.8.jar
    10/31/2011  09:13 AM            59,526 activiti-spring-5.8.jar
    10/31/2011  09:13 AM           445,288 antlr-2.7.7.jar
    10/31/2011  09:13 AM             4,467 aopalliance-1.0.jar
    01/17/2012  08:50 AM           715,252 ApplicScreenProj.jar
    10/31/2011  09:13 AM            43,398 asm-3.2.jar
    10/31/2011  09:13 AM            17,985 asm-analysis-3.2.jar
    10/31/2011  09:13 AM            33,094 asm-commons-3.2.jar
    10/31/2011  09:13 AM            21,878 asm-tree-3.2.jar
    10/31/2011  09:13 AM            36,551 asm-util-3.2.jar
    08/31/2011  01:06 AM        18,541,974 axis2.war
    12/08/2011  10:48 AM           286,328 CheckForAFile2.jar
    10/31/2011  09:13 AM           160,519 commons-dbcp-1.4.jar
    10/31/2011  09:13 AM            32,321 commons-email-1.2.jar
    10/31/2011  09:13 AM           261,809 commons-lang-2.4.jar
    10/31/2011  09:13 AM            60,686 commons-logging-1.1.1.jar
    10/31/2011  09:13 AM            96,221 commons-pool-1.5.4.jar
    12/13/2011  03:08 PM         5,274,827 cxf-2.3.8.jar
    01/17/2012  10:06 AM           216,371 cxf-api-2.3.4.jar
    01/18/2012  02:42 PM            22,243 cxf-codegen-plugin-2.2.10-sources.jar
    01/17/2012  10:26 AM            48,943 cxf-common-schemas-2.3.4.jar
    01/17/2012  10:09 AM           306,845 cxf-common-utilities-2.3.4.jar
    01/18/2012  03:32 PM            45,387 cxf-integration-jbi-2.3.0.jar
    06/11/2009  06:36 PM            74,700 cxf-integration-jca-2.0.1-incubator.jar
    04/15/2009  11:54 AM            27,581 cxf-rt-bindings-coloc.jar
    01/18/2012  03:27 PM           238,353 cxf-rt-bindings-corba-2.3.0.jar
    01/18/2012  03:04 PM            46,677 cxf-rt-bindings-http-2.1.jar
    02/27/2011  10:19 AM            41,449 cxf-rt-bindings-jbi-2.3.2.jar
    01/18/2012  03:25 PM            26,614 cxf-rt-bindings-object-2.4.0.jar
    01/17/2012  10:36 AM           166,369 cxf-rt-bindings-soap-2.3.4.jar
    01/17/2012  10:49 AM            37,459 cxf-rt-bindings-xml-2.3.4.jar
    01/17/2012  10:29 AM           475,041 cxf-rt-core-2.3.4.jar
    01/18/2012  02:50 PM           228,008 cxf-rt-databinding-aegis-2.2.2.jar
    01/17/2012  10:45 AM            95,748 cxf-rt-databinding-jaxb-2.3.4.jar
    01/18/2012  03:23 PM            27,195 cxf-rt-databinding-sdo-2.3.4.jar
    01/18/2012  02:46 PM            40,648 cxf-rt-databinding-xmlbeans-2.2.8.jar
    01/18/2012  02:36 PM           507,731 cxf-rt-frontend-jaxrs-2.3.1.jar
    01/17/2012  10:00 AM           196,812 cxf-rt-frontend-jaxws-2.3.4.jar
    01/18/2012  02:54 PM            22,063 cxf-rt-frontend-js-2.2.8.jar
    01/17/2012  10:54 AM            80,900 cxf-rt-frontend-simple-2.3.4.jar
    01/18/2012  02:31 PM            69,756 cxf-rt-javascript-2.2.10.jar
    01/18/2012  02:24 PM           661,584 cxf-rt-management-web-2.4.2.jar
    04/15/2009  11:54 AM            49,070 cxf-rt-management.jar
    01/18/2012  03:38 PM            13,182 cxf-rt-testsupport-2.1.7.jar
    10/31/2011  09:13 AM           207,595 cxf-rt-transports-http-2.3.1.jar
    10/31/2011  09:13 AM            68,212 cxf-rt-transports-http-jetty-2.3.1.jar
    08/10/2011  10:55 PM            26,676 cxf-rt-transports-http-osgi-2.3.6.jar
    08/11/2011  11:59 AM            39,608 cxf-rt-transports-jbi-2.4.2.jar
    08/11/2011  11:37 AM           137,702 cxf-rt-transports-jms-2.4.2.jar
    06/29/2011  02:23 AM            24,419 cxf-rt-transports-local-2.4.1.jar
    01/17/2012  10:57 AM            82,789 cxf-rt-ws-addr-2.3.4.jar
    01/18/2012  03:30 PM           142,760 cxf-rt-ws-policy-2.2.5.jar
    01/18/2012  03:46 PM           184,786 cxf-rt-ws-rm-2.2.12.jar
    01/18/2012  02:39 PM           283,903 cxf-rt-ws-security-2.2.3.jar
    01/18/2012  04:33 PM         1,386,049 cxf-testutils-2.2.jar
    01/17/2012  10:39 AM           159,178 cxf-tools-common-2.3.4.jar
    01/18/2012  02:33 PM           334,645 cxf-tools-corba-2.2.12.jar
    01/18/2012  02:18 PM           118,099 cxf-tools-java2ws-2.3.0.jar
    01/18/2012  02:44 PM            54,078 cxf-tools-misctools-2.2.jar
    01/18/2012  03:59 PM            68,286 cxf-tools-validator-2.3.4.jar
    04/15/2009  11:54 AM            50,270 cxf-tools-wsdlto-core.jar
    01/18/2012  03:35 PM            40,988 cxf-tools-wsdlto-databinding-jaxb-2.4.0.jar
    01/18/2012  02:14 PM           158,518 cxf-tools-wsdlto-frontend-jaxws-2.4.1.jar
    01/18/2012  03:56 PM            12,310 cxf-wsdl-validator-plugin-2.2.3.jar
    01/18/2012  04:28 PM            20,614 cxf-wstx-msv-validation-2.3.1.jar
    01/18/2012  04:30 PM            16,979 cxf-xerces-xsd-validation-2.3.2.jar
    01/18/2012  11:16 AM            34,126 geronimo-activation_1.1_spec-1.0.2.jar
    01/18/2012  11:20 AM            12,452 geronimo-annotation_1.0_spec-1.1.1.jar
    04/01/2011  08:16 AM           223,298 geronimo-javamail_1.4_spec-1.7.1.jar
    01/18/2012  11:35 AM            47,817 geronimo-jaxws_2.1_spec-1.0.jar
    01/18/2012  11:27 AM            70,593 geronimo-servlet_2.5_spec-1.2.jar
    01/22/2009  03:45 PM            28,804 geronimo-stax-api_1.0_spec-1.0.1.jar
    01/18/2012  11:30 AM            14,611 geronimo-ws-metadata_2.0_spec-1.1.2.jar
    10/31/2011  09:13 AM         4,863,300 groovy-1.7.5.jar
    10/31/2011  09:13 AM         1,175,478 h2-1.2.132.jar
    10/31/2011  09:13 AM            14,771 imgscalr-lib-3.1.jar
    01/18/2012  04:57 PM                 0 jar-list.txt
    10/31/2011  09:13 AM           104,554 jaxb-api-2.2.1.jar
    01/18/2012  11:54 AM           867,801 jaxb-impl-2.1.12.jar
    10/31/2011  09:13 AM         3,126,580 jaxb-xjc-2.1.7.jar
    01/18/2012  12:05 PM           534,185 jetty-6.1.21.jar
    01/18/2012  12:08 PM           176,031 jetty-util-6.1.21.jar
    10/31/2011  09:13 AM           237,047 junit-4.8.1.jar
    10/31/2011  09:13 AM            14,722 livetribe-jsr223-2.0.6.jar
    10/31/2011  09:13 AM           447,676 mail-1.4.1.jar
    10/31/2011  09:13 AM           640,609 mybatis-3.0.4.jar
    10/19/2011  10:47 AM            34,162 neethi-2.0.5.jar
    01/18/2012  12:11 PM            18,817 saaj-api-1.3.jar
    01/18/2012  12:14 PM           278,145 saaj-impl-1.3.2.jar
    10/31/2011  09:13 AM           105,334 servlet-api-2.5.jar
    10/31/2011  09:13 AM           320,926 spring-aop-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM            53,082 spring-asm-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           553,901 spring-beans-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           662,191 spring-context-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           365,217 spring-core-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           160,146 spring-expression-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           379,691 spring-jdbc-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           333,500 spring-orm-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           205,027 spring-test-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           231,345 spring-tx-3.0.3.RELEASE.jar
    10/31/2011  09:13 AM           389,117 spring-web-3.0.3.RELEASE.jar
    10/19/2011  10:56 AM           182,112 stax2-api-3.1.1.jar
    10/31/2011  09:13 AM         4,452,259 vaadin-6.6.2.jar
    09/28/2011  11:47 AM           478,446 woodstox-core-asl-4.1.1.jar
    10/31/2011  09:13 AM           148,429 wsdl4j-1.6.2.jar
    01/18/2012  12:16 PM           523,825 wstx-asl-3.2.8.jar
    10/31/2011  09:13 AM           194,354 xml-apis-1.3.04.jar
    10/31/2011  09:13 AM            84,091 xml-resolver-1.2.jar
    10/31/2011  09:13 AM           148,829 XmlSchema-1.4.7.jar
                 113 File(s)     57,907,341 bytes
                   2 Dir(s)  443,782,328,320 bytes free
After getting all CSF dependencies - exception:
After downloading CXF Dependencies and attempting to deploy the BPMN20 file again, I got this exception (like the original exception):

INFO: Processing resource CheckPrevEmploymentProcess.bpmn20.xml
Jan 19, 2012 8:30:15 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
Jan 19, 2012 8:30:15 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as expressionLanguage
Jan 19, 2012 8:30:15 AM org.activiti.engine.impl.bpmn.parser.BpmnParse execute
SEVERE: Uknown exception
org.activiti.engine.ActivitiClassLoadingException: Class not found: javax.xml.bind.JAXBElement<java.
lang.String>
        at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:81)
        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importStructure(CxfWSDLImporter.java:
159)
        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importTypes(CxfWSDLImporter.java:146)

        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importFrom(CxfWSDLImporter.java:106)
        at org.activiti.engine.impl.webservice.CxfWSDLImporter.importFrom(CxfWSDLImporter.java:69)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseImports(BpmnParse.java:283)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:213)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:192)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:81)
        at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:3
7)
        at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(Deployment
Manager.java:39)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java
:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInte
rceptor.java:42)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInter
ceptor.java:42)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.j
ava:130)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.jav
a:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.ja
va:106)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.deployUploadedFil
e(DeploymentUploadReceiver.java:88)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.uploadFinished(De
ploymentUploadReceiver.java:71)
        at org.activiti.explorer.ui.custom.UploadComponent.uploadFinished(UploadComponent.java:173)
        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.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
        at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
        at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
        at com.vaadin.ui.Upload.fireUploadSuccess(Upload.java:744)
        at com.vaadin.ui.Upload$1.streamingFinished(Upload.java:1022)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractComm
unicationManager.java:593)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUp
load(AbstractCommunicationManager.java:469)
        at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager
.java:257)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServ
let.java:495)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
va:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBElement<java.lang.String>
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:62)
        … 49 more
Jan 19, 2012 8:30:15 AM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource ResumeScreeningProcess.png
Jan 19, 2012 8:30:15 AM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource Application Screening Process.png

atifelkhachine
Champ in-the-making
Champ in-the-making
Hi,

Are you able to reproduce this issue with a test case ?
If yes, then please attach here your test case to see what is going wrong … (a maven project if possible)

Thanks,
Atif

ct1
Champ in-the-making
Champ in-the-making
I really appreciate your looking into this.

I put together a tester class to test the deployment of the BPMN20 file (please see the source under Tester
Class Source Code below), ran it, and it failed with the same exception (please see below under
Exception In Unit Test).

I am unfamiliar with Maven, so I am afraid I cannot provide a Maven project.  However, I hope
it will be possible for you to use a copy of the Eclipse project (there were quite a few unrelated
processes that I deleted before zipping the project).  I think you will be able to extract the relavent
parts from the .zip file; if not, please let me know what other option I have to get the
necessary parts to you.

I just tried once to use the attach feature at the bottom of this page to attach the .zip file of the
Eclipse project, but I do not think the Reply went through, so I will try again.

Thank you yet again.


Test Class Source Code:

package opt.argo.org;

import static org.junit.Assert.*;

public class PrevEmploymentDeployTest
{
@Test
public void startDeployTest()
{
  ProcessEngine processEngine = ProcessEngineConfiguration
    .createStandaloneInMemProcessEngineConfiguration()
    .buildProcessEngine();
 
  RuntimeService runtimeService =
    processEngine.getRuntimeService();
 
  RepositoryService repositoryService =
    processEngine.getRepositoryService();
 
  repositoryService.createDeployment()
    .addClasspathResource("CheckPrevEmploymentProcess.bpmn20.xml")
    .deploy();
 
  ProcessInstance processInstance = runtimeService
    .startProcessInstanceByKey("CheckPrevEmploymentProcess");
 
  assertNotNull(processInstance.getId());
 
  System.out.println("id " + processInstance.getId()
       + " " + processInstance.getProcessDefinitionId());
 
}

}


Exception in Unit Test:


Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql
Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on history with resource org/activiti/db/create/activiti.h2.create.history.sql
Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on identity with resource org/activiti/db/create/activiti.h2.create.identity.sql
Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource CheckPrevEmploymentProcess.bpmn20.xml
Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
Jan 19, 2012 11:06:20 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as expressionLanguage
Jan 19, 2012 11:06:20 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@336d8196: startup date [Thu Jan 19 11:06:20 CST 2012]; root of context hierarchy
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-addr.xml]
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 19, 2012 11:06:20 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c345b43: defining beans [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; root of factory hierarchy
Jan 19, 2012 11:06:21 AM org.activiti.engine.impl.bpmn.parser.BpmnParse execute
SEVERE: Uknown exception
org.activiti.engine.ActivitiClassLoadingException: Class not found: javax.xml.bind.JAXBElement<java.lang.String>
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:81)
at org.activiti.engine.impl.webservice.CxfWSDLImporter.importStructure(CxfWSDLImporter.java:159)
at org.activiti.engine.impl.webservice.CxfWSDLImporter.importTypes(CxfWSDLImporter.java:146)
at org.activiti.engine.impl.webservice.CxfWSDLImporter.importFrom(CxfWSDLImporter.java:106)
at org.activiti.engine.impl.webservice.CxfWSDLImporter.importFrom(CxfWSDLImporter.java:69)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseImports(BpmnParse.java:283)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:213)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:192)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:81)
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:37)
at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:39)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)
at opt.argo.org.PrevEmploymentDeployTest.startDeployTest(PrevEmploymentDeployTest.java:29)
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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBElement<java.lang.String>
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:62)
… 40 more
Jan 19, 2012 11:06:21 AM org.activiti.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.activiti.engine.ActivitiException: no processes deployed with key 'CheckPrevEmploymentProcess'
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.findDeployedLatestProcessDefinitionByKey(DeploymentCache.java:62)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:58)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:31)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:41)
at opt.argo.org.PrevEmploymentDeployTest.startDeployTest(PrevEmploymentDeployTest.java:32)
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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

atifelkhachine
Champ in-the-making
Champ in-the-making
Sorry, but i don't see any wsdl in the package … Could you provide the web service wsdl ?

BR,
Atif

ct1
Champ in-the-making
Champ in-the-making
I am sorry, I did not think to put the WSDL in the package since the problem seemed to be with deploying the BPMN20 process (that is, in parsing the BPMN20 elements during the deploy) rather than with calling the Web Service.

If you need anything else, I will be glad to provide what I can.

Thank you.

Here is the WSDL.



<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://argo.com"
   xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
   targetNamespace="http://argo.com">
   <wsdl:documentation>Please Type your service description here
   </wsdl:documentation>
   <wsdl:types>
      <xs:schema attributeFormDefault="qualified"
         elementFormDefault="qualified" targetNamespace="http://argo.com">
         <xs:element name="CheckPreviousEmployment">
            <xs:complexType>
               <xs:sequence>
                  <xs:element minOccurs="0" name="applicantName"
                     nillable="true" type="xs:string" />
               </xs:sequence>
            </xs:complexType>
         </xs:element>
         <xs:element name="CheckPreviousEmploymentResponse">
            <xs:complexType>
               <xs:sequence>
                  <xs:element minOccurs="0" name="return" nillable="true"
                     type="xs:string" />
               </xs:sequence>
            </xs:complexType>
         </xs:element>
      </xs:schema>
   </wsdl:types>
   <wsdl:message name="CheckPreviousEmploymentRequest">
      <wsdlSmiley Tongueart name="parameters" element="ns:CheckPreviousEmployment" />
   </wsdl:message>
   <wsdl:message name="CheckPreviousEmploymentResponse">
      <wsdlSmiley Tongueart name="parameters" element="ns:CheckPreviousEmploymentResponse" />
   </wsdl:message>
   <wsdlSmiley TongueortType name="PreviousEmploymentPortType">
      <wsdlSmiley Surprisedperation name="CheckPreviousEmployment">
         <wsdl:input message="ns:CheckPreviousEmploymentRequest"
            wsaw:Action="urn:CheckPreviousEmployment" />
         <wsdlSmiley Surprisedutput message="ns:CheckPreviousEmploymentResponse"
            wsaw:Action="urn:CheckPreviousEmploymentResponse" />
      </wsdlSmiley Surprisedperation>
   </wsdlSmiley TongueortType>
   <wsdl:binding name="PreviousEmploymentSoap11Binding" type="nsSmiley TonguereviousEmploymentPortType">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
         style="document" />
      <wsdlSmiley Surprisedperation name="CheckPreviousEmployment">
         <soapSmiley Surprisedperation soapAction="urn:CheckPreviousEmployment"
            style="document" />
         <wsdl:input>
            <soap:body use="literal" />
         </wsdl:input>
         <wsdlSmiley Surprisedutput>
            <soap:body use="literal" />
         </wsdlSmiley Surprisedutput>
      </wsdlSmiley Surprisedperation>
   </wsdl:binding>
   <wsdl:binding name="PreviousEmploymentSoap12Binding" type="nsSmiley TonguereviousEmploymentPortType">
      <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
         style="document" />
      <wsdlSmiley Surprisedperation name="CheckPreviousEmployment">
         <soap12Smiley Surprisedperation soapAction="urn:CheckPreviousEmployment"
            style="document" />
         <wsdl:input>
            <soap12:body use="literal" />
         </wsdl:input>
         <wsdlSmiley Surprisedutput>
            <soap12:body use="literal" />
         </wsdlSmiley Surprisedutput>
      </wsdlSmiley Surprisedperation>
   </wsdl:binding>
   <wsdl:binding name="PreviousEmploymentHttpBinding" type="nsSmiley TonguereviousEmploymentPortType">
      <http:binding verb="POST" />
      <wsdlSmiley Surprisedperation name="CheckPreviousEmployment">
         <httpSmiley Surprisedperation location="CheckPreviousEmployment" />
         <wsdl:input>
            <mime:content type="text/xml" part="parameters" />
         </wsdl:input>
         <wsdlSmiley Surprisedutput>
            <mime:content type="text/xml" part="parameters" />
         </wsdlSmiley Surprisedutput>
      </wsdlSmiley Surprisedperation>
   </wsdl:binding>
   <wsdl:service name="PreviousEmployment">
      <wsdlSmiley Tongueort name="PreviousEmploymentHttpSoap11Endpoint"
         binding="nsSmiley TonguereviousEmploymentSoap11Binding">
         <soap:address
            location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment.PreviousEmploymentHttpS..." />
      </wsdlSmiley Tongueort>
      <wsdlSmiley Tongueort name="PreviousEmploymentHttpSoap12Endpoint"
         binding="nsSmiley TonguereviousEmploymentSoap12Binding">
         <soap12:address
            location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment.PreviousEmploymentHttpS..." />
      </wsdlSmiley Tongueort>
      <wsdlSmiley Tongueort name="PreviousEmploymentHttpEndpoint" binding="nsSmiley TonguereviousEmploymentHttpBinding">
         <http:address
            location="http://localhost:9090/PrevEmploymentCheckService/services/PreviousEmployment.PreviousEmploymentHttpE..." />
      </wsdlSmiley Tongueort>
   </wsdl:service>
</wsdl:definitions>



atifelkhachine
Champ in-the-making
Champ in-the-making
Hi,

I am not sure but i think that the problem's root cause is the use of Axis (could you confirm that you have used Axis to create your web service interface ?)
Could you try to create your web service using only CXF ?

Thanks,
Atif