I start alfresco without any errors in log, deploy my workflow successfull, but when I try to start workflow I have this error in log:
Caused by: java.lang.ClassNotFoundException: com.mycompany.activiti.Decision at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:291) at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:68) ... 153 more
Can anybody help me with this problem? Or maybe there are another ways to call external jars from workflow? Thank you
Are you serious about the JAR having the structure you outlined? A JAR addon to Alfresco should never contain other JARs in a lib/ sub folder, and any Java code needs to be included as compiled *.class files in a JAR (unless it is a JavaDoc or source JAR). How are you creating the JAR? It is highly recommended to use the Alfresco SDK if you are new to Alfresco development. You may also want to check out Jeff Potts' tutorial about advanced workflows in Alfresco.
Axel, I am sorry, can you please explain what do you mean? why I can't add one jar to another? I can call my jar with the same structure from alfresco workflow, I just need to add .xml file here: alfresco-community\tomcat\shared\classes\alfresco\extension