couldn't instantiate class for a service task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2011 11:39 PM
I have created a service task in my process and created corresponding java classes for it. When I deploy my bar file and start the process, I get the below error when I hit the service task -
03130003 Wrapped Exception (with status template): couldn't instantiate class com.delegate.EmailNotify
I'm unable to debug this issue. I searched the forum and tried all possible solutions posted in forum like copying the jar file to activiti-rest/WEB-INF/lib, including the jar in classpath.
Please help me fix this issue. I have attached my eclipse project with this.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2011 04:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2011 10:45 AM
I don't see any error in my classes and it just has a simple sys out statements. I have attached the bar and jar files, can you help me figure out the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2011 10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2011 05:27 PM
I found out the issue. the issue was with the jar generated by using ""Create deployment artifacts" option. I'm not sure what is missing in the jar genearted using activiti designer, but i created a jar manually using "Export" option and added it to activiti-rest lib - it worked.
If possible please check this and provide us a fix. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2011 04:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2011 07:56 AM
the generated bar file will and should not actually contain the compiled classes. So the workaround you found by including it in the activiti-rest project is actually the correct solution: you should make sure the class is on the classpath in the runtime, because that's the way it's resolved, not from the .bar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2011 09:14 AM
Will "create deployment artifacts" option not generate the jar file ? All I'm saying is I used the jar file generated and it didn't work. But the manual export of classes as a jar file did the magic. I didnt see any error in accessing the class files in the manual export of jar? Do I have to always follow this and not rely on the jar generated when I use create deployment artifacts option?
thanks,
Arun

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2011 09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2011 03:19 AM
