cancel
Showing results for 
Search instead for 
Did you mean: 

Where to deploy .jar file when Java Service Task is used

milesma
Champ in-the-making
Champ in-the-making
Hi Activitians,

Short question: Where to deploy .jar file when running test in Activiti Explorer on a bpmn model where Java Service Task is used?

I'm reading the book <Activiti In Action> and came across this question when testing "callActivity" in Chapter 6.

In short, a Java Service Task is used and corresponding class "org.bpmnwithactiviti.chapter6.callactivity.CreditCheckService" is referred in the checkCredit.bpmn20.xml file.

From Eclipse I can use Ant to run the build.xml (located at …\workspace\ActivitiTest\src\main\resources\chapter6\callactivity\build.xml) and I can successfully get following binaries:

callactivity.bar
callactivity.jar

I understand what are they; I can upload callactivity.bar into Activiti Explorer; However,

My question: Where to deploy callactivity.jar in order for the Activiti Explorer to run?

The places I can think of:
    .m2 repository? I guess no
    somewhere related with tomcat? I still guess no
    then where?
    or do I need to set environment variable?

Currently, when I start an instance of this Process, I will get a warning saying the "org.bpmnwithactiviti.chapter6.callactivity.CreditCheckService" can not be find (which I understand because I never deploy it).


Thank you in advance.
2 REPLIES 2

milesma
Champ in-the-making
Champ in-the-making
Copied from another thread.
===================================
I've just resolved my problem 😉

you need to STOP the tomcat-server BEFORE copying your *.jar files to …\activiti-explorer\WEB-INF\lib
After that you start tomcat again and the jar-Files will be available on the Activiti Engine classpath

thats it Smiley Very Happy

mohsinj677
Champ in-the-making
Champ in-the-making
Currently, when I start an instance of this Process, I will get a warning saying the "org.bpmnwithactiviti.chapter6.callactivity.CreditCheckService" can not be find (which I understand because I never deploy it).