cancel
Showing results for 
Search instead for 
Did you mean: 

TaskListener Exception - Can't instantiate listener class

dwoodbury
Champ in-the-making
Champ in-the-making
In Activiti 5.8 with Explorer, I get a can't instantiate listener class error on a UserTask listener.

Per previous threads and the MEAP text:

I deployed the BAR to Explorer using the Explorer UI.
I manually copied the JAR containing the listener class to the WEB-INF/lib folders for both Activiti-REST and Activiti-Explorer web-apps.

I stopped, restarted, redeployed after copying the JAR's

Any thoughts on what I am doing wrong?
3 REPLIES 3

dwoodbury
Champ in-the-making
Champ in-the-making
When I placed the class file in WEB-INF\class, the application found the TaskListener.

I inspected the jar file and found that it lacked a manifest file.  This is the jar that is generated when I right click on the project in Eclipse and select "Generate Deployment Artifacts."

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Search the forum… there is a bug with that way of doing things.

dwoodbury
Champ in-the-making
Champ in-the-making
Thanks!!

I found the note here:
http://forums.activiti.org/en/viewtopic.php?f=9&t=3296&p=13092&hilit=INF\class#p13092

Generally, there's a bug in the way the plugin creates the Jar, so one must do it using the Eclipse export function.