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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2014 07:07 PM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2014 09:23 PM
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
…
===================================
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


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2014 03:14 AM
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).
