cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy Issue: couldn't instantiate class

bl4cky
Champ in-the-making
Champ in-the-making
Hi,

i have a problem and i dont know how to fix it: Activiti cant instantiate my class. After a short research i saw a solution which told me to include my classes inside the web-inf/lib folder but that didn't work for me. I restarted the tomcat and did everything explained here.

I had working with this tutorial to learn how to create and deploy new processes, because it seems the best way to me.

Can anyone help me to fix this?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
You should indeed package your classes in a jar and place it in the activiti-rest webapp's /WEB-INF/lib/ folder…

How did you package your classes? Maven?

bl4cky
Champ in-the-making
Champ in-the-making
I used the eclipse export and created a normal Java Jar file. How can i use Maven for this?

frederikherema1
Star Contributor
Star Contributor
Don't think it will make a difference if you create the jar using eclipse export JAR or maven.

Can check the content of the jar-file, to see if it contains all folders that correspond to the fully-qualified classname in your *bpmn20.xml file? Also, double-check that the jar is present in the location stated earlier. That's all I can think of…

What's the exact stacktrace? Is the cause a ClassNotFound or a NoClassDefFoundError?