cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find Java classes when starting process from Explorer

mark1970
Champ in-the-making
Champ in-the-making
Hi all,
I'm trying to start a simple process which has got a service Task inside it:

<serviceTask id="servicetask1" name="ServiceJava"
      activiti:class="com.sample.JavaService1"></serviceTask>
      <userTask id="usertask2" name="Task2" activiti:assignee="fozzie"></userTask>

When started from Api the process starts successfully, however if I try to start if from the Activiti Explorer I get the exception "00170002 Wrapped Exception (with status template): couldn't instantiate class com.sample.JavaService1"


I've tried to deploy the process separately from the Web application, as a .bar file, however still cannot start it.
Should I add my Java classes somewhere else ? to the Process Explorer application ?
Tested on apache-tomcat-6.0.29.
Any help?
thanks
mark
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Your java-classes you use in your definitions should be packaged in a separate jar (not inside the bar) and deployed in the activiti-rest-webapp:

${activiti distro}/apps/apache-tomcat-6.0.29/webapps/activiti-rest/lib/
This is also stated in the userguide, chapter Deployment: see http://activiti.org/userguide/index.html#N105A9