ActivitiEngine Java API and Service Tasks (JavaDelegate)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2014 12:26 PM
Hi,
I've been working with activiti-explorer and Service Tasks with no problems including my jars as usual <tomcat>/activiti-explorer/WEB-INF/lib/my.jar
This time, i'm using activiti through the ActivitiEngine Java Api (No activiti-explorer/activiti-rest actually deployed on the server). The engine is setup through a maven pom in a single Eclipse Java EE project and i'm using a activity.cfg.xml located in a folder in this java ee project.
POM:
Everything works fine without deployed activiti-explorer and activiti-rest WARs (Users, processes, instances and user tasks) but i'm getting ClassNotFound for my JavaDelegate implementations.
These delegates are in a separated package, but in the same java ee project
Shouldn't it be able to load these classes ? everything is in the same project that's why I don't understand what's wrong.
I'm attaching two images, the first one shows in green the working code using activiti engine and in red the delegate class that cannot be loaded (referenced as shown in the second image)
Image 1:
[img]http://s29.postimg.org/7yt5zt0hf/activiti_1.jpg[/img]
Image 2:
[img]http://s22.postimg.org/bbtomi4hp/activiti_2.jpg[/img]
Any ideas on how should I proceed? Thanks in advance.
I've been working with activiti-explorer and Service Tasks with no problems including my jars as usual <tomcat>/activiti-explorer/WEB-INF/lib/my.jar
This time, i'm using activiti through the ActivitiEngine Java Api (No activiti-explorer/activiti-rest actually deployed on the server). The engine is setup through a maven pom in a single Eclipse Java EE project and i'm using a activity.cfg.xml located in a folder in this java ee project.
POM:
<dependency> <groupId>org.activiti</groupId> <artifactId>activiti-engine</artifactId> <version>${activiti-version}</version> </dependency> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-explorer</artifactId> <version>${activiti-version}</version> </dependency> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-rest</artifactId> <version>${activiti-version}</version> </dependency> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring</artifactId> <version>${activiti-version}</version> </dependency>
Everything works fine without deployed activiti-explorer and activiti-rest WARs (Users, processes, instances and user tasks) but i'm getting ClassNotFound for my JavaDelegate implementations.
These delegates are in a separated package, but in the same java ee project
Shouldn't it be able to load these classes ? everything is in the same project that's why I don't understand what's wrong.
I'm attaching two images, the first one shows in green the working code using activiti engine and in red the delegate class that cannot be loaded (referenced as shown in the second image)
Image 1:
[img]http://s29.postimg.org/7yt5zt0hf/activiti_1.jpg[/img]
Image 2:
[img]http://s22.postimg.org/bbtomi4hp/activiti_2.jpg[/img]
Any ideas on how should I proceed? Thanks in advance.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2014 11:43 AM
How do you package all of this? These classes need to be on the classpath when you run your application. Are these classes part of you web application.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2014 11:56 AM
Everything goes in the a single war (WebApp project).
I'll do some more testing, I'll build a JAR and take it into activiti-explorer WEB-IND and see how it goes from there.
After that, I'll re-check the war by itself.
Maybe I'm missing something, having many working instances of the engine is great but now it is confusing me.
Thanks for your attention
I'll do some more testing, I'll build a JAR and take it into activiti-explorer WEB-IND and see how it goes from there.
After that, I'll re-check the war by itself.
Maybe I'm missing something, having many working instances of the engine is great but now it is confusing me.
Thanks for your attention
