<?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 Re: Share jar package and activiti class loader in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104358#M72863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply, Frederik!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it's not very clear for me, when you say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Beware, the SHARED class loader (libs shared with all web apps) can't access the web-app specific classes (which probably contains the activiti-jar).&lt;BR /&gt;&lt;BR /&gt;Make sure the activiti-jar (engine) is available in the SHARED path IF you depend on it…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It's OK, but I'm in a different situation: I search for my jar from the webapp in the shared class loader, but the webapp has the activiti-jar in his class loader.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 15:15:16 GMT</pubDate>
    <dc:creator>npasquetto</dc:creator>
    <dc:date>2012-10-24T15:15:16Z</dc:date>
    <item>
      <title>Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104352#M72857</link>
      <description>Hi,I would like to share a package that I write cross all my webapp inside a tomcat 6.0.5 installation of activiti 5.9.I have read that "$CATALINA_HOME/shared/lib seems to be gone in 6.0 (it was there in 5.5)".I have try various scenarios:- to put my jar file inside tomcat "$CATALINA_HOME/shared/lib</description>
      <pubDate>Fri, 05 Oct 2012 13:47:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104352#M72857</guid>
      <dc:creator>rcosta1</dc:creator>
      <dc:date>2012-10-05T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104353#M72858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding the "shared/lib/*jar" in catalina.props should expose the all jar's in the shared class loader for all web apps. Activiti uses the following mechanism to lookup classes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Try custom classloader, if set in configuration&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If previous fails, use&amp;nbsp; Thread.currentThread().getContextClassLoader()&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If previous fails, use ReflectUtil.class.getClassLoarder() (default class loader where activiti jar is loaded in)&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Strange that even in the main "/lib" folder, this doesn't work. What is the "cause" exception of the "could not load class"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 08:13:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104353#M72858</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-09T08:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104354#M72859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik, I've got exactly the same behavior than Riccardo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the "cause" exception of the "could not load class"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The exceptions are: &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.ActivitiException: couldn't instantiate class&lt;/CODE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;Caused by: org.activiti.engine.ActivitiClassLoadingException: Could not load class:&lt;/CODE&gt;&lt;CODE&gt;Caused by: java.lang.NoClassDefFoundError: org/activiti/engine/delegate/JavaDelegate&lt;/CODE&gt;&lt;SPAN&gt;It seems that problem isn't on the visibility of my implementation but on the visibility of the activiti engine libraries. Could be?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:17:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104354#M72859</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-10-24T12:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104355#M72860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it seems to be the case… Altrough it's strange that activiti-classes itself can't find activiti-classes in the class loader :s&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:09:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104355#M72860</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-24T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104356#M72861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, it seems to be the case… Altrough it's strange that activiti-classes itself can't find activiti-classes in the class loader :s&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Really.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:18:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104356#M72861</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-10-24T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104357#M72862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;NoClassDefFoundError will come if a class was present during compile time but not available in java classpath during runtime. So make sure the activiti-jars on on the runtime-path and visible to the class loader. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Beware, the SHARED class loader (libs shared with all web apps) can't access the web-app specific classes (which probably contains the activiti-jar).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure the activiti-jar (engine) is available in the SHARED path IF you depend on it…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:30:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104357#M72862</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-24T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104358#M72863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply, Frederik!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it's not very clear for me, when you say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Beware, the SHARED class loader (libs shared with all web apps) can't access the web-app specific classes (which probably contains the activiti-jar).&lt;BR /&gt;&lt;BR /&gt;Make sure the activiti-jar (engine) is available in the SHARED path IF you depend on it…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It's OK, but I'm in a different situation: I search for my jar from the webapp in the shared class loader, but the webapp has the activiti-jar in his class loader.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 15:15:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104358#M72863</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-10-24T15:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104359#M72864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To summarize what Iw as saying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Your jar-file (containing the JavaDelegate implementation) is present in the SHARED class path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The activiti-engine.jar file is in the web app's class loader (WEB-INF/lib).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is the case, than it makes sense.. Try adding activiti-engine-5.*.jar in the shared class path as well, since YOUR jar-file depends on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 08:24:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104359#M72864</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-25T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104360#M72865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try adding activiti-engine-5.*.jar in the shared class path as well, since YOUR jar-file depends on it.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Ok, thanks for your instructions!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 08:43:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104360#M72865</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-10-26T08:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104361#M72866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try adding activiti-engine-5.*.jar in the shared class path as well, since YOUR jar-file depends on it.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;After adding the engine jar another exception has been thrown that required also the slf4j jar. Adding slf4j this exception has been thrown &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.ActivitiException: org.mytest.MyDelegate doesn't implement org.activiti.engine.delegate.JavaDelegate nor org.activiti.engine.impl.pvm.delegate.ActivityBehavior&lt;/CODE&gt;&lt;SPAN&gt;But the same jar (same file), used in the webapp lib folder run correctly. I don't understand why.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 13:02:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104361#M72866</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2012-10-26T13:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Share jar package and activiti class loader</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104362#M72867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;THat is often caused by classes loaded from two different classloaders.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 17:04:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-jar-package-and-activiti-class-loader/m-p/104362#M72867</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-10-26T17:04:01Z</dc:date>
    </item>
  </channel>
</rss>

