<?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: Engine Configuration in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116618#M82294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you be a bit more specific than "My code doesn't work past that"? Is the thread blocked? What exception do you see?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 08:54:19 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-10-17T08:54:19Z</dc:date>
    <item>
      <title>Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116610#M82286</link>
      <description>I've a app develop using Liferay in a Tomcat server. I configured Activiti engine using *.cfg.xml file, with the engine jar in the specific portlet lib folder. But now I need to run the engine in the Tomcat lib/ext folder and I can't get access to the *.cfg.xml and if I try to create a Standalone Pr</description>
      <pubDate>Tue, 16 Oct 2012 15:39:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116610#M82286</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-16T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116611#M82287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where are you creating your process-engine? Make sure the class loader that loads that specific part of code, has access to the activiti.cg.xml location on the class path.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116611#M82287</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-16T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116612#M82288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I create my ProcessEngine in a ServletContextListener and the activiti engine jar is in the Tomcat lib/ext folder. Where should I place the *cfg.xml file?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:56:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116612#M82288</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-16T15:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116613#M82289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps WEB-INF/classes, this is always on you're class path. Usually, the config is app-specific and is a logical place to be…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:58:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116613#M82289</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-16T15:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116614#M82290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Putting the file doesn't make difference, I still can't init the engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On other side, when I try to init the engine without the *cfg.xml file, my code stops here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something I need to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:06:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116614#M82290</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-16T16:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116615#M82291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@jom: Why you don't use activiti-web plugin for Liferay?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.emforge.net/web/activiti-liferay" rel="nofollow noopener noreferrer"&gt;http://www.emforge.net/web/activiti-liferay&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:08:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116615#M82291</guid>
      <dc:creator>iam</dc:creator>
      <dc:date>2012-10-16T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116616#M82292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The createStandaloneProcess…. still requires you to set the JDBC-properties and call .buildProcessEngine() afterwards to actually build it. Alternatively, use createStandaloneInMemProcessEngineConfiguration() to have it initialize an in-memory H2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:44:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116616#M82292</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-17T07:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116617#M82293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Putting the file doesn't make difference, I still can't init the engine.&lt;BR /&gt;&lt;BR /&gt;On other side, when I try to init the engine without the *cfg.xml file, my code stops here:&lt;BR /&gt;ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;BR /&gt;&lt;BR /&gt;Is there something I need to do?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously i meant :&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;ProcessEngineConfiguration engineConf = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;My code doesn't work past that, which mean that I can't even create the ProcessEngineConfiguration object (after create the "engineConf" object I try to configure the JDBC properties,, call buildProcessEngine() and then register that engine). Using createStandaloneInMemProcessEngineConfiguration() does not solve my problem cause we need to use MySQL databases. Is there anymore advises you can give me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 08:52:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116617#M82293</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-17T08:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116618#M82294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you be a bit more specific than "My code doesn't work past that"? Is the thread blocked? What exception do you see?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 08:54:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116618#M82294</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-17T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116619#M82295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't catch any exception. Since I run that code in a ServletContextListener, declared in the web.xml file, I got this error &lt;/SPAN&gt;&lt;STRONG&gt;SEVERE: Error listenerStart&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 09:11:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116619#M82295</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-17T09:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116620#M82296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nothing more specific? really hard to figure out what the problem is and where to start looking, off course…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 11:03:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116620#M82296</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-17T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116621#M82297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe you can help me if you have a general look of the system I'm talking about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Liferay Portal application running on a &lt;/SPAN&gt;&lt;STRONG&gt;Tomcat &lt;/STRONG&gt;&lt;SPAN&gt;server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding to it, I have several portlets running in Liferay Portal, which use a set of shared &lt;/SPAN&gt;&lt;STRONG&gt;Liferay services&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Those services are reachable through a jar file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have a servlet running in that Tomcat using the Liferay services, which cause access conflits if the services.jar file is in the portlet lib folder (in which it was originally).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to solve those conflits I put the jar file in the Tomcat lib/ext folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I tried to integrate the Activiti engine with the Liferay Portal application, building my own interface to manage processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I put the &lt;/SPAN&gt;&lt;STRONG&gt;activiti-engine-5.10.jar&lt;/STRONG&gt;&lt;SPAN&gt; in the portlet WEB-INF/lib folder and the activiti.cfg.xml file in the WEB-INF/src folder and all was working fine until I needed to develop new Liferay services using Activiti classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I realized that the activiti-engine-5.10.jar file needed to be in the Tomcat lib/ext folder, because of the dependencies with the Liferay services jar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the activiti-engine-5.10.jar in Tomcat lib/ext folder I tried several ways to initialize the engine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(1) - using activiti.cfg.xml in the portlet WEB-INF/src folder - &lt;/SPAN&gt;&lt;STRONG&gt;obs&lt;/STRONG&gt;&lt;SPAN&gt;: I don't know, since I moved the activiti-engine-5.10.jar if this file is in the right folder or if there's anything else I need to do;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) - using the Java API's ( createStandaloneProcessEngine().buildProcessEngine() ), specifying the JDBC properties and ignoring any configuration file; this code is present in a ServletContextListener, which is declared in the portlet web.xml file.´&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both ways didn't work for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(1) - The method ProcessEngines.init() does not throw an exception, but I get a NullPointerException as soon as call the method ProcessEngines.getDefaultProcessEngine(), which mean that either that the application can't find the activiti.cfg.xml file (perhaps it needed to be elsewhere) or that there's another error preventing the engine to run as it should;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) - I don't get any kind of exception, on the log of Tomcat I get the message &lt;/SPAN&gt;&lt;STRONG&gt;SEVERE: Error listenerStart&lt;/STRONG&gt;&lt;SPAN&gt;, and with some debug I found that the code after the creation of the ProcessEngineConfiguration isn't executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any doubt let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Off-topic: from what I saw in your source code I suppose that the method createStandaloneProcessEngine() should throw an ActivitiException. I've noticed this does not happen in the BPMN XML parser. Is it possible that we are unable to catch any ActivitiException at all?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 09:00:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116621#M82297</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-18T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116622#M82298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) The activiti.cfg.xml file should be on your class path… WEB-INF/classes is one of the locations that is part of the class path. WEB-INF/src IS NOT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) There must be an exception thrown in the ProcessEngineConfiguration.buildProcessEngine(). have you found out what exception yet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 12:21:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116622#M82298</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-19T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116623#M82299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(1) - tried, no different result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) - there's no exception, I only got printed in the log of the server &lt;/SPAN&gt;&lt;STRONG&gt;SEVERE: Error listenerStart&lt;/STRONG&gt;&lt;SPAN&gt;. so far I was not able to catch any ActivitiException, like I say about the XML parser.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:05:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116623#M82299</guid>
      <dc:creator>jom_santos</dc:creator>
      <dc:date>2012-10-19T15:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Engine Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116624#M82300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you also try WEB-INF/lib. I've found that /classes doesn't always work on some tomcats.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 08:57:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/engine-configuration/m-p/116624#M82300</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-22T08:57:36Z</dc:date>
    </item>
  </channel>
</rss>

