<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add classes to the engine classpath in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105848#M74028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the ant demo.start (in C:\BPM_BatchSoftware\activiti-5.8\setup) to launch the activiti engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created an eclipse Activiti project in the workspace at the location: C:\Workspace\activitiProj\ActivitiTest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project I created an Activiti diagram (bpmn file auto generated)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a deployment bar using Create Deployment Artifacts in eclipse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in the Activiti explorer, I uploaded this bar file successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I try to start the process in the explorer I get the exception: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause: org.activiti.engine.ActivitiException: couldn't instantiate class org.activiti.delegates.LoadPointSetDelegate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See log attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the tomcat server running through ant demo.start&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation says: "Note that Java classes present in the business archive will not be added to the classpath. All custom classes used in process definitions in the business archive (for example Java service tasks or event listener implementations) should be present on the activiti-engine's classpath in order to run the processes."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I add my custom class and other dependencies to the activiti-engine's classpath when running the ant demo.start??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried making a jar file out of everything in my project and putting it in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\BPM_BatchSoftware\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That didnt work either. The jar file does contain the class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 23:25:47 GMT</pubDate>
    <dc:creator>afshad</dc:creator>
    <dc:date>2012-02-20T23:25:47Z</dc:date>
    <item>
      <title>How to add classes to the engine classpath</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105848#M74028</link>
      <description>I am using the ant demo.start (in C:\BPM_BatchSoftware\activiti-5.8\setup) to launch the activiti engine.I created an eclipse Activiti project in the workspace at the location: C:\Workspace\activitiProj\ActivitiTestIn my project I created an Activiti diagram (bpmn file auto generated)I created a dep</description>
      <pubDate>Mon, 20 Feb 2012 23:25:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105848#M74028</guid>
      <dc:creator>afshad</dc:creator>
      <dc:date>2012-02-20T23:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add classes to the engine classpath</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105849#M74029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using the latest version of the Eclipse Designer? There was a bug with respect to jar file creation.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=8&amp;amp;t=3396&amp;amp;hilit=bug+in+designer+jar+file" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=8&amp;amp;t=3396&amp;amp;hilit=bug+in+designer+jar+file&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 00:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105849#M74029</guid>
      <dc:creator>dwoodbury</dc:creator>
      <dc:date>2012-02-21T00:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add classes to the engine classpath</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105850#M74030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not really sure about that but I think I had the same problem. I could resolve it by copying the java.jar file not in the Rest folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\BPM_BatchSoftware\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you have to copy it into the explorer folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\BPM_BatchSoftware\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-explorer\WEB-INF\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then it should work because the activiti explorer has its own engine as it is said here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3315&amp;amp;hilit" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3315&amp;amp;hilit&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 07:52:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105850#M74030</guid>
      <dc:creator>cweber</dc:creator>
      <dc:date>2012-02-21T07:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add classes to the engine classpath</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105851#M74031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I am not really sure about that but I think I had the same problem. I could resolve it by copying the java.jar file not in the Rest folder.&lt;BR /&gt;C:\BPM_BatchSoftware\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\lib&lt;BR /&gt;&lt;BR /&gt;I think you have to copy it into the explorer folder.&lt;BR /&gt;C:\BPM_BatchSoftware\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-explorer\WEB-INF\lib&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then it should work because the activiti explorer has its own engine as it is said here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3315&amp;amp;hilit" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3315&amp;amp;hilit&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much. that worked. It does need to be in the lib of the activiti explorer webapp as you have mentioned. By mistake I had two versions of apache installed and i kept putting it in the wrong apache all this time thats why it didnt work. Its working now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 21:09:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-classes-to-the-engine-classpath/m-p/105851#M74031</guid>
      <dc:creator>afshad</dc:creator>
      <dc:date>2012-02-21T21:09:35Z</dc:date>
    </item>
  </channel>
</rss>

