<?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: H2 specific errors while connecting to Postgres DB in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217708#M170838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, after createStandaloneProcessEngineConfiguration you can call many (many) setters, like setJdbcUrl and all ….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 20:20:52 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-03-01T20:20:52Z</dc:date>
    <item>
      <title>H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217702#M170832</link>
      <description>I am trying to configure activiti to use postgres DB.My db.properties file is:db=postgresjdbc.driver=org.postgresql.Driverjdbc.url=jdbc&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://localhost:5432/activitijdbc.username=activitijdbc.password=activiti=======================================My activiti.cfg.xml is something like :&amp;nbsp;&amp;nbsp;&amp;nbsp; pr</description>
      <pubDate>Tue, 23 Feb 2016 03:44:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217702#M170832</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2016-02-23T03:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217703#M170833</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;your configuration still uses H2 DB. Check config files for H2 configuration and change it to postgres.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:45:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217703#M170833</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-23T07:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217704#M170834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am sorry, I don't&amp;nbsp; understand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any other file except db.properties and activiti.cfg.xml?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As shown in my original question above, I have already updated these files for Postgres.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I would like to point out again from above that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"when I start tomcat, I see my activiti database (the one I created in postgres, gets populated with 25 tables), but when I run the test case shown above I get the below error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused: localhost" [90067-191]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:02:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217704#M170834</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2016-02-23T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217705#M170835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Whoa, something odd happened:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I updated my test case to have process-engine bootstrapped like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_FALSE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setJdbcUrl("jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://localhost:5432/activiti")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setJdbcUsername("activiti")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setJdbcPassword("activiti")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine processEngine = ProcessEngineConfiguration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.createStandaloneProcessEngineConfiguration()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.buildProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please explain what happened and why the values were not picked from activiti.cfg.xml?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:29:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217705#M170835</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2016-02-23T15:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217706#M170836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Because now you're instantiating the engine programmatically - no cfg.xml file is involved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the createProcessEngineConfigurationFromResource() method if you want to create a process engine based on an external file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 10:04:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217706#M170836</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-02-24T10:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217707#M170837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you are suggesting that if I do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().buildProcessEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It simply defaults to the default values i.e. H2 db etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, either I instantiate the processEngine programmatically or use createProcessEngineConfigurationFromResource() if I want to read from cfg.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mohit&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 16:25:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217707#M170837</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2016-02-24T16:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: H2 specific errors while connecting to Postgres DB</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217708#M170838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, after createStandaloneProcessEngineConfiguration you can call many (many) setters, like setJdbcUrl and all ….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:20:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/h2-specific-errors-while-connecting-to-postgres-db/m-p/217708#M170838</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-01T20:20:52Z</dc:date>
    </item>
  </channel>
</rss>

