cancel
Showing results for 
Search instead for 
Did you mean: 

Need to integrate WS with Activti

prabhjot
Champ in-the-making
Champ in-the-making
I have been trying to call Activiti (MyProcessBPMN.xml ) file through Web services but when i try to run Web service it gives me InvocationTargetException   on line code

ProcessEngine processEngine = ProcessEngineConfiguration
       .createProcessEngineConfigurationFromResourceDefault().buildProcessEngine();

Please tell whether we can call BPMN through WS or not and what is the correct way of doing it .
3 REPLIES 3

trademak
Star Contributor
Star Contributor
I need more details about the exception message.
This line starts up the Activiti Engine, so this is at very foundation.

Best regards,

prabhjot
Champ in-the-making
Champ in-the-making
At WS response it is giving the below error .

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
  <faultcode>soapenvSmiley Frustratederver.userException</faultcode>
  <faultstring>java.lang.reflect.InvocationTargetException</faultstring>
- <detail>
  <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">PDC1-J5SQ1BS</ns1:hostname>
  </detail>
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>

bardioc
Champ in-the-making
Champ in-the-making
The InvocationTargetException most likely occurs, because the WAR-Classloader does not have access to the Activiti Jar-Files, while at compile-time the've been present.

I see this error a lot, when the WAR Manifest.MF does not contain EAR-based jar-files.

Check that you either have the activiti-engine JAR in your WEB-INF/lib directory of your WAR or inside a /lib directory in your EAR (if used). In the latter case, check the MANIFEST.MF of the Web Archive. It must contain a Class-Path: lib/activiti-engine…jar.

Best regards,

Heiko