<?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: Activiti in Tomcat docker container -Issues in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37242#M15673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really appreciate your interest in solving my issue. I will do my best to give you all details that you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes Docker is the only difference between the situation where it works and where it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I can't&amp;nbsp; say that my Activiti is containerized rather it is running in a containerized Tomcat server. Here is how i run my container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;docker run --network=host --name Activiti-Container --restart unless-stopped -v /home/amalv/Activiti_Dev_team/webapps/:/opt/tomcat/webapps -v /home/amalv/Activiti_Dev_team/conf/:/opt/tomcat/conf tomcat/oraclejava:8.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I mentioned earlier this problem only occurs with components that makes use of signals.&lt;/P&gt;&lt;P&gt;I will explain what i mean by signals:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our application we have a process that takes a long time to complete. The process gathers a package that needs to be executed in an Oracle DB. Because this is a long running process in order to avoid user-wait time the user is notified with a pending status while in the background the process executes. At this point a WaitSignalWorkflow is Initiated. When the background process completes at the DB, it initiates a WaitSignalThrowWorkflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process just stops at the WaitforSignal stage. And nothing happens at the DB either. So no communication occurs between the database and the application except for those other components that makes no use of such signals.And that too only when using Containers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Activiti version is 6.0.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 09:12:56 GMT</pubDate>
    <dc:creator>amal_v</dc:creator>
    <dc:date>2018-02-02T09:12:56Z</dc:date>
    <item>
      <title>Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37236#M15667</link>
      <description>hi all!!I am a newbie to Activiti For the past few days i have been trying to set up Activiti in a Tomcat Docker container.My knowledge on the working of activiti and the back-end processes are very limited . But i will try my best to convey my issues.I deployed Activiti in 2 different Tomcat's Dock</description>
      <pubDate>Wed, 31 Jan 2018 13:03:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37236#M15667</guid>
      <dc:creator>amal_v</dc:creator>
      <dc:date>2018-01-31T13:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37237#M15668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think we can know whether you could avoid this issue by running just one Activiti without knowing more about the process definition and what it is doing at the point of failure. It is a likely candidate but&amp;nbsp;it might be possible to produce this error with only one Activiti (see &lt;A __default_attr="222621" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/222621-activitioptimisticlockingexception-from-runtimeservicesigna" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp; for example).&amp;nbsp;The best way to find out would probably be to try&amp;nbsp;running just one and see if the problem still occurs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:48:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37237#M15668</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-01-31T17:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37238#M15669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention that it works perfectly fine when Activiti is set up not inside containers.&lt;/P&gt;&lt;P&gt;Two Tomcats running on two different ports with Activiti works fine. This problem occurred only when it was containerized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 04:17:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37238#M15669</guid>
      <dc:creator>amal_v</dc:creator>
      <dc:date>2018-02-01T04:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37239#M15670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any other differences between the dockerised and not dockerised versions? Is more data going into one than the other? Have you increased the memory and CPU defaults for docker? I am wondering if there are either more transactions in the docker version (would happen if more data) or perhaps they are taking longer to complete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 09:19:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37239#M15670</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-01T09:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37240#M15671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found out that the problem occurs even when only single container is used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:40:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37240#M15671</guid>
      <dc:creator>amal_v</dc:creator>
      <dc:date>2018-02-01T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37241#M15672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd certainly like to be able to help more. Is it possible to provide any code snippets or bpmn from the process that is being run? I'm particularly interested in any async behaviour. Are you sure that docker is the only difference between the situation where it works and where it doesn't? If so would you be able to provide any details on how it is containerised?&amp;nbsp;(It might be worth reading&amp;nbsp;&lt;A class="link-titled" href="https://dzone.com/articles/how-to-decrease-jvm-memory-consumption-in-docker-u" title="https://dzone.com/articles/how-to-decrease-jvm-memory-consumption-in-docker-u" rel="nofollow noopener noreferrer"&gt;Java Memory Consumption in Docker and How We Employed Spring Boot - DZone Performance&lt;/A&gt;&amp;nbsp;) How frequent is the error and does it always affect the same point in the process? It would also be good to know what version of Activiti you are using. (From your description of your achitecture it sounds like Activiti Cloud for v7 might be of interest to you.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:16:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37241#M15672</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-01T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37242#M15673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really appreciate your interest in solving my issue. I will do my best to give you all details that you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes Docker is the only difference between the situation where it works and where it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I can't&amp;nbsp; say that my Activiti is containerized rather it is running in a containerized Tomcat server. Here is how i run my container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;docker run --network=host --name Activiti-Container --restart unless-stopped -v /home/amalv/Activiti_Dev_team/webapps/:/opt/tomcat/webapps -v /home/amalv/Activiti_Dev_team/conf/:/opt/tomcat/conf tomcat/oraclejava:8.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I mentioned earlier this problem only occurs with components that makes use of signals.&lt;/P&gt;&lt;P&gt;I will explain what i mean by signals:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our application we have a process that takes a long time to complete. The process gathers a package that needs to be executed in an Oracle DB. Because this is a long running process in order to avoid user-wait time the user is notified with a pending status while in the background the process executes. At this point a WaitSignalWorkflow is Initiated. When the background process completes at the DB, it initiates a WaitSignalThrowWorkflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process just stops at the WaitforSignal stage. And nothing happens at the DB either. So no communication occurs between the database and the application except for those other components that makes no use of such signals.And that too only when using Containers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Activiti version is 6.0.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 09:12:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37242#M15673</guid>
      <dc:creator>amal_v</dc:creator>
      <dc:date>2018-02-02T09:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37243#M15674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If&amp;nbsp;difference between working and not working is docker my best guess would be that your tomcats are different in either version or default configuration. Perhaps a different database connection pool size or something similar.&amp;nbsp;Are you using a different tomcat version in docker from the version you run with outside of docker? Also is it the same oracle jdbc driver used in both cases?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you're using an official tomcat image and mounting a volume for the webapps and conf directories. Is the database running separately outside of docker?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;couple of other things you could try would be to dockerise the war file by building a docker image with the war baked in (like ArunJ suggests at &lt;A class="link-titled" href="http://geekyplatypus.com/packaging-and-serving-your-java-application-with-docker/" title="http://geekyplatypus.com/packaging-and-serving-your-java-application-with-docker/" rel="nofollow noopener noreferrer"&gt;Packaging and serving your Java application with Docker | The Geeky Platypus Blog&lt;/A&gt;&amp;nbsp;or step 2 at &lt;A class="link-titled" href="https://support.cmfirstgroup.com/hc/en-us/articles/115002378523-How-to-Create-and-Run-Apache-Tomcat-Docker-Container" title="https://support.cmfirstgroup.com/hc/en-us/articles/115002378523-How-to-Create-and-Run-Apache-Tomcat-Docker-Container" rel="nofollow noopener noreferrer"&gt;How to Create and Run Apache Tomcat Docker Container – USER MANUALS &amp;amp; FAQS&lt;/A&gt;&amp;nbsp;). I don't expect that to matter but I wouldn't expect it to fail only in docker. You could also try running the database from within the same docker network (see&amp;nbsp;&lt;A class="link-titled" href="https://support.cmfirstgroup.com/hc/en-us/articles/115002410566-How-to-Connect-Tomcat-Docker-Container-with-MS-SQL-Docker-Container" title="https://support.cmfirstgroup.com/hc/en-us/articles/115002410566-How-to-Connect-Tomcat-Docker-Container-with-MS-SQL-Docker-Container" rel="nofollow noopener noreferrer"&gt;How to Connect Tomcat Docker Container with MS SQL Docker Container – USER MANUALS &amp;amp; FAQS&lt;/A&gt;&amp;nbsp;or &lt;A class="link-titled" href="https://forums.docker.com/t/connecting-to-an-oracledb-in-a-docker-container-from-another-java-docker-container/13269/3" title="https://forums.docker.com/t/connecting-to-an-oracledb-in-a-docker-container-from-another-java-docker-container/13269/3" rel="nofollow noopener noreferrer"&gt;Connecting to an OracleDB in a docker container from another java docker container - General Discussions - Docker Forums&lt;/A&gt;&amp;nbsp;or you could use docker-compose, as is done using Activiti Cloud for Activiti 7 - &lt;A class="link-titled" href="https://github.com/Activiti/activiti-cloud-examples/blob/7-201712-EA/docker/application-docker-compose.yml#L56" title="https://github.com/Activiti/activiti-cloud-examples/blob/7-201712-EA/docker/application-docker-compose.yml#L56" rel="nofollow noopener noreferrer"&gt;activiti-cloud-examples/application-docker-compose.yml at 7-201712-EA · Activiti/activiti-cloud-examples · GitHub&lt;/A&gt;&amp;nbsp;). It seems you are going for a similar setup to&amp;nbsp;&lt;A class="link-titled" href="https://dzone.com/articles/docker-java-app-deployment-with-a-containerized-or" title="https://dzone.com/articles/docker-java-app-deployment-with-a-containerized-or" rel="nofollow noopener noreferrer"&gt;Deploying a Java App with an Oracle Database in a Docker Container - DZone Java&lt;/A&gt;&amp;nbsp;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an argument for using a base Activiti docker image from the web as then you know you're&amp;nbsp;starting from&amp;nbsp;an image that somebody else has had working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 11:51:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37243#M15674</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-02T11:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37244#M15675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan Dawson! Thanks a lot for your wonderful support.&lt;/P&gt;&lt;P&gt;I figured out that my problem was not actually associated with Activiti itself.&lt;/P&gt;&lt;P&gt;The actual problem here was that there was a database scheduler in use.&lt;/P&gt;&lt;P&gt;And the docker container's default time zone was set to UTC.&lt;/P&gt;&lt;P&gt;Setting the container time zone to local time zone resolved the issue..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 05:27:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37244#M15675</guid>
      <dc:creator>amal_v</dc:creator>
      <dc:date>2018-02-05T05:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti in Tomcat docker container -Issues</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37245#M15676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, glad it got resolved and thanks for posting to say what the cause was.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:05:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-in-tomcat-docker-container-issues/m-p/37245#M15676</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-05T09:05:15Z</dc:date>
    </item>
  </channel>
</rss>

