<?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: How to change the custom H2 DB in alresco maven project into Postgres? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299006#M252136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to connect your Alfresco AMP project to the PostgreSQL database in the first place? I can think of no real reason to do so and the H2 database works just fine for local builds + tests. The Alfresco AMP project also is separate from your local Alfresco installation in that the former is only used for the build of customisations. Once you install the resulting AMP file into your Alfresco installation it will automatically use your PostgreSQL instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you should normally not change anything in any SQL script. Alfresco already provides PostgreSQL compatible SQL scripts out-of-the-box. If there is an error like this it likely means that there is either an incompatibility with the version of the database or the wrong scripts are being used in the first place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2016 16:38:31 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2016-12-27T16:38:31Z</dc:date>
    <item>
      <title>How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299003#M252133</link>
      <description>Hello,I have installed Alfresco and I have running Postgres DB.I have also generated new maven alfresco-amp-archetype project.By default it uses H2 DB, however I am trying to connect to the Postgres DB which is created after the installation of Alfresco on my localmachine.I added the following data</description>
      <pubDate>Tue, 27 Dec 2016 09:59:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299003#M252133</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-12-27T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299004#M252134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears you have already successfully switched from H2 to PostgreSQL, but now have run into a secondary issue. The PostgreSQL database seems to have already been partially initialised by one startup / test attempt but stopped somewhere before completion. Now Alfresco detects this and stops, since it can't determine what is already there and what is missing. The best way to proceed would be to drop + recreate the database in PostgreSQL and start your project again.&lt;/P&gt;&lt;P&gt;These kind of "DB management" issues are why Alfresco SDK uses H2 by default. It is easier to just run a "mvn clean -P purge" and then the tests again with a clean slate, than to require the user to manage an external database server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 11:00:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299004#M252134</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-27T11:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299005#M252135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did so, however there are some&amp;nbsp;other conflicts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-12-27 17:47:37,387 ERROR [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema auto-update failed&lt;BR /&gt; org.postgresql.util.PSQLException: ERROR: column "was_executed" is of type boolean but expression is of type integer&lt;BR /&gt; Hint: You will need to rewrite or cast the expression.&lt;BR /&gt; Position: 363&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I changed the type&amp;nbsp;in the sql script , but again the above exception appears&lt;/P&gt;&lt;P&gt;is there any chance not to run these scripts?&lt;/P&gt;&lt;P&gt;Im not sure how all that is working, but is there another way of solving this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 16:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299005#M252135</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-12-27T16:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299006#M252136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to connect your Alfresco AMP project to the PostgreSQL database in the first place? I can think of no real reason to do so and the H2 database works just fine for local builds + tests. The Alfresco AMP project also is separate from your local Alfresco installation in that the former is only used for the build of customisations. Once you install the resulting AMP file into your Alfresco installation it will automatically use your PostgreSQL instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you should normally not change anything in any SQL script. Alfresco already provides PostgreSQL compatible SQL scripts out-of-the-box. If there is an error like this it likely means that there is either an incompatibility with the version of the database or the wrong scripts are being used in the first place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 16:38:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299006#M252136</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-27T16:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299007#M252137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one reason is because I want to debug the data which comes from the Alfresco installation( I have installed some additional things there), in order to test it I have to install my amp there, yes, but I will not be in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second reason is that since my project is simple amp, I don't have share ui and cannot create sites for testing.&lt;/P&gt;&lt;P&gt;In general, I have changed the port for the Alfresco installation to 8081 in order not to have any conflicts when I run my project on 8080.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 08:26:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299007#M252137</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-12-28T08:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299008#M252138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can configure your Tomcat so that you can debug it: &lt;A href="https://wiki.apache.org/tomcat/FAQ/Developing#Q1" rel="nofollow noopener noreferrer"&gt;Tomcat Wiki - Developing&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 08:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299008#M252138</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-28T08:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299009#M252139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If debugging is the only reason for changing DB from H2 to &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;PostgreSQL, then I believe you don't have to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Use mvndebug command to debug your&amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;alfresco-amp-archetype &lt;/STRONG&gt;project&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I am not sure which version of alfresco maven sdk are you using but you can refer this blog to debug&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;&amp;nbsp;&lt;A class="link-titled" href="http://douglascrp.blogspot.com/2015/05/how-to-remote-debug-with-alfresco-sdk-21.html" title="http://douglascrp.blogspot.com/2015/05/how-to-remote-debug-with-alfresco-sdk-21.html" rel="nofollow noopener noreferrer"&gt;IT Tips: How to remote debug Java code using Alfresco SDK 2.1&lt;/A&gt;&amp;nbsp;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 15:31:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299009#M252139</guid>
      <dc:creator>yogeshpj</dc:creator>
      <dc:date>2016-12-28T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299010#M252140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, In general I know how to debug my project..&lt;/P&gt;&lt;P&gt;The problem is that I want to have some data (sites) in order to test.&lt;/P&gt;&lt;P&gt;1st I have them in Postgres DB which is used by my alfresco installation.&lt;/P&gt;&lt;P&gt;2nd If I cannot connect to it then I will need to connect to Share UI somehow when Im running the project though my IDE in order to be able to create Sites properly(through the webscript).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 13:39:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299010#M252140</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-12-29T13:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299011#M252141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having base data in order to test is a matter of &lt;A href="http://docs.alfresco.com/5.1/references/dev-extension-points-bootstrap.html" rel="nofollow noopener noreferrer"&gt;bootstrapping the content&lt;/A&gt; either by using a module-based startup component or by importing a prepared content bundle (ACP) via an action. There is no need to try some kind of hacky access to an external database for this, especially since such a hack may disrupt your existing database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:02:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299011#M252141</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-29T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the custom H2 DB in alresco maven project into Postgres?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299012#M252142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, &lt;A href="http://codecramp.com/2017/03/15/activiti-setup-eclipse/" rel="nofollow noopener noreferrer"&gt;this blog post&lt;/A&gt; explains about how to get activiti working with postgres DB. See, if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 00:29:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-the-custom-h2-db-in-alresco-maven-project-into/m-p/299012#M252142</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2017-03-17T00:29:49Z</dc:date>
    </item>
  </channel>
</rss>

