<?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: Cannot use Activiti-CDI in an EAR in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150757#M105583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some additional info about my environment…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- jBoss 7.1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- activiti version: 5.9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- spring version: 3.0.5-RELEASE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 21:56:58 GMT</pubDate>
    <dc:creator>felipe1</dc:creator>
    <dc:date>2013-10-28T21:56:58Z</dc:date>
    <item>
      <title>Cannot use Activiti-CDI in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150756#M105582</link>
      <description>I had a WAR application with activiti-cdi working perfectly. Then I've changed the deployment artifact to an EAR containing the exact same WAR and I get an error on startup:"Could not find an implementation of the org.activiti.cdi.spi.ProcessEngineLookup service returning a non-null processEngine. G</description>
      <pubDate>Mon, 28 Oct 2013 21:24:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150756#M105582</guid>
      <dc:creator>felipe1</dc:creator>
      <dc:date>2013-10-28T21:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Activiti-CDI in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150757#M105583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some additional info about my environment…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- jBoss 7.1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- activiti version: 5.9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- spring version: 3.0.5-RELEASE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 21:56:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150757#M105583</guid>
      <dc:creator>felipe1</dc:creator>
      <dc:date>2013-10-28T21:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Activiti-CDI in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150758#M105584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same issue. To help debugging the problem i created a minimalistic ear file based on the war file published on &lt;/SPAN&gt;&lt;A href="https://bitbucket.org/meyerd/activiti-cdi-jbossas7.1.1-setup/overview" rel="nofollow noopener noreferrer"&gt;https://bitbucket.org/meyerd/activiti-cdi-jbossas7.1.1-setup/overview&lt;/A&gt;&lt;SPAN&gt;. The war is a minimalistic activiti on jboss artifact which actually works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the minimalistic war file works but the minimalistic ear does not. The error message is "org.activiti.engine.ActivitiException: Could not find an implementation of the org.activiti.cdi.spi.ProcessEngineLookup service returning a non-null processEngine. Giving up." Full Stacktrace is attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I uploaded both artifacts in case somebody wants to reproduce the problem and debug it here: &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/s/1chp1nenx1ojiml/activiti%20ear%20on%20jboss.zip" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/s/1chp1nenx1ojiml/activiti%20ear%20on%20jboss.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any input is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 14:04:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150758#M105584</guid>
      <dc:creator>matthias_</dc:creator>
      <dc:date>2013-12-19T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Activiti-CDI in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150759#M105585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matthias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at your example and also meyerd's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like the name implies activiti-cdi is prepared for Java CDI. I would not hope to have two different dependency injection containers (CDI/Spring)&amp;nbsp; in parallel and still know exactly what I am doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please decide using Spring OR CDI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend CDI because it's standard Java and must come along with standard Java EE Containers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when you want to build an EAR use skinny wars: &lt;/SPAN&gt;&lt;A href="http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html" rel="nofollow noopener noreferrer"&gt;http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;And let your EAR depend on the libraries that your war needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then configure your maven-ear-plugin:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;maven-ear-plugin&amp;lt;/artifactId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaultLibBundleDir&amp;gt;lib&amp;lt;/defaultLibBundleDir&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This way everything outside war is loaded by ear classloader and you have fewer problems if you want to put a 2nd war into your ear later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you decide for CDI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;remove spring dependencies. Remove activiti.cfg.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make an ejb that contains your ProgrammaticProcessEngineLookup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Put a file like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://bitbucket.org/meyerd/activiti-cdi-jbossas7.1.1-setup/src/4216c17d3adc6b21f99360dc220fdf713725297f/programmatic/src/main/resources/META-INF/services/org.activiti.cdi.spi.ProcessEngineLookup?at=master" rel="nofollow noopener noreferrer"&gt;https://bitbucket.org/meyerd/activiti-cdi-jbossas7.1.1-setup/src/4216c17d3adc6b21f99360dc220fdf713725297f/programmatic/src/main/resources/META-INF/services/org.activiti.cdi.spi.ProcessEngineLookup?at=master&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;into your ejb. Let it reference your ProgrammaticProcessEngineLookup and do not forget beans.xml. Also put beans.xml into your war. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you should be able to @Inject ProcessEngine into your war.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are missing the good ability of spring to handle unit tests, take a look at &lt;/SPAN&gt;&lt;A href="http://deltaspike.apache.org/documentation.html" rel="nofollow noopener noreferrer"&gt;http://deltaspike.apache.org/documentation.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 21:30:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150759#M105585</guid>
      <dc:creator>saatsch</dc:creator>
      <dc:date>2013-12-19T21:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Activiti-CDI in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150760#M105586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;saatsch, thank you very much for your input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand your argument about spring vs. jee cdi and retried the test with a programmatic config, as you suggested. I would like NOT to use skinny wars because this requires redundancies in the pom.xml files (see your link &lt;/SPAN&gt;&lt;A href="http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html" rel="nofollow noopener noreferrer"&gt;http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the problem still occurs (same stack trace). I uploaded the test ear and test war file here: &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/s/oeeftat7hkpawek/activiti%20ear%20on%20jboss%20programmatic%20config.zip" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/s/oeeftat7hkpawek/activiti%20ear%20on%20jboss%20programmatic%20config.zip&lt;/A&gt;&lt;SPAN&gt; . Any input is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 09:02:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-use-activiti-cdi-in-an-ear/m-p/150760#M105586</guid>
      <dc:creator>matthias_</dc:creator>
      <dc:date>2014-01-06T09:02:04Z</dc:date>
    </item>
  </channel>
</rss>

