Friday, September 2, 2016

Setting up the idempiere development environment

I planned for an installation of the iDempiere dev environment to use on my Windows 7 desktop.
I started out with the following spec:
Cloned and updated the code from https://johan_zahri@bitbucket.org/idempiere/idempiere
to the branch release-3.1 at revision no 11454.
Postgresql using 9.3.
Eclipse Mars (Then downgraded to "Luna Service Release 2 (4.4.2)"  Build id: 20150219-0600 for the below reason later on.)
Oracle JDK jdk1.7.0_03


Then following along this guide:
http://wiki.idempiere.org/en/Installing_iDempiere

I tried using eclipse mars but unfortunately got the following errors
 ERROR   [0005] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle was found in searchPath bundles.maven

 ERROR   [0005] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component javax.annotation-api:osgi.bundle/[1.2.0,1.2.0] was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component javax.annotation-api:osgi.bundle/[1.2.0,1.2.0] was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component com.sun.mail.javax.mail:osgi.bundle/[1.5.1,1.5.2) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component com.sun.mail.javax.mail:osgi.bundle/[1.5.1,1.5.2) was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.apache.taglibs.taglibs-standard-spec:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.apache.taglibs.taglibs-standard-spec:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.objectweb.asm.commons:osgi.bundle/[5.0.1,5.0.1] was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.objectweb.asm.commons:osgi.bundle/[5.0.1,5.0.1] was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.mortbay.jasper.apache-el:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.mortbay.jasper.apache-el:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component javax.websocket-api:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component javax.websocket-api:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.apache.taglibs.standard-jstlel:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.apache.taglibs.standard-jstlel:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.apache.aries.util:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.apache.aries.util:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.objectweb.asm:osgi.bundle/[5.0.1,5.0.1] was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.objectweb.asm:osgi.bundle/[5.0.1,5.0.1] was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.mortbay.jasper.apache-jsp:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.mortbay.jasper.apache-jsp:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.objectweb.asm.tree:osgi.bundle/[5.0.1,5.0.1] was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.objectweb.asm.tree:osgi.bundle/[5.0.1,5.0.1] was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.apache.aries.spifly.dynamic.bundle:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.apache.aries.spifly.dynamic.bundle:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.apache.taglibs.standard-impl:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.apache.taglibs.standard-impl:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0045] : No suitable provider for component org.apache.servicemix.bundles.cglib:osgi.bundle/[3.1_1,3.1_1]#Triplet was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0045] : No suitable provider for component org.apache.servicemix.bundles.cglib:osgi.bundle/[3.1_1,3.1_1]#Triplet was found in searchPath bundles.maven
    ERROR   [0045] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0014] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0014] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0014] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0045] : No suitable provider for component org.apache.activemq.kahadb:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0045] : No suitable provider for component org.apache.activemq.kahadb:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0045] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0045] : No suitable provider for component org.apache.activemq.activemq-core:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0045] : No suitable provider for component org.apache.activemq.activemq-core:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0045] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0023] : No suitable provider for component org.apache.felix.webconsole:osgi.bundle/[4.2.2,4.3.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0023] : No suitable provider for component org.apache.felix.webconsole:osgi.bundle/[4.2.2,4.3.0) was found in searchPath bundles.maven
    ERROR   [0023] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0014] : No suitable provider for component org.restlet.ext.net:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0014] : No suitable provider for component org.restlet.ext.net:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0014] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component com.sun.mail.javax.mail:osgi.bundle/[1.5.1,1.5.2) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component com.sun.mail.javax.mail:osgi.bundle/[1.5.1,1.5.2) was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0045] : No suitable provider for component org.eclipse.jetty.osgi-servlet-api:osgi.bundle/[3.1.0.M0,3.1.0.M0] was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0045] : No suitable provider for component org.eclipse.jetty.osgi-servlet-api:osgi.bundle/[3.1.0.M0,3.1.0.M0] was found in searchPath bundles.maven
    ERROR   [0045] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.mortbay.jasper.apache-el:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.mortbay.jasper.apache-el:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0045] : No suitable provider for component javax.management.j2ee-api:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0045] : No suitable provider for component javax.management.j2ee-api:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0045] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0103] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle/3.8.2 was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0103] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle/3.8.2 was found in searchPath bundles.maven
    ERROR   [0103] : Rejecting provider maven2(http://central.maven.org/maven2[http://central.maven.org/maven2]): No component match was found
ERROR   [0005] : No suitable provider for component org.apache.taglibs.taglibs-standard-spec:osgi.bundle was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.apache.taglibs.taglibs-standard-spec:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0045] : No suitable provider for component org.restlet:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0045] : No suitable provider for component org.restlet:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0045] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0014] : No suitable provider for component org.restlet.ext.net:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0014] : No suitable provider for component org.restlet.ext.net:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0014] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0014] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0014] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0014] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0005] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/D:/idempiere-src/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0005] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0005] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
Attempt to use an unresolved node. Request is org.eclipse.jdt.core.compiler.batch:osgi.bundle/3.8.2

So had to revert to using eclipse Luna based on some idempiere gurus recommendations.

Then I stumbled upon an error when running this code against the postrgresql 9.3:
psql -d idempiere-r-3-1 -U adempiere -c 'CREATE EXTENSION "uuid-ossp"'
Error:
psql: warning: extra command-line argument "EXTENSION" ignored
psql: warning: extra command-line argument "uuid-ossp'" ignored
Password for user adempiere:
ERROR:  unterminated quoted string at or near "'CREATE"
LINE 1: 'CREATE
        ^

I then realized that I was running from the windows environment, so need to change the syntax to:
psql -d idempiere-r-3-1 -U adempiere -c "CREATE EXTENSION \"uuid-ossp\""
Presto, got the following output:
Password for user adempiere:
CREATE EXTENSION
The guide points to a non existing directory i1.0c-release (and it rightly does it since we need to adjust to our current source code version
ls $IDEMPIERE_REPOSITORY/migration/i1.0c-release/postgresql
So I changed it to (after translating to win/dos command):
dir %IDEMPIERE_REPOSITORY%\migration\i3.1\postgresql
Comparing the directory content with the db:
psql -d idempiere-r-3-1 -U adempiere -c "select name from ad_migrationscript order by 1"
Seems to not yield any intersections! Rightly so!
Then I found that the last migration script registered on db was 201510310000_Version.sql;
It was in the migration\i2.1z\postgresql directory. I am not sure what's the difference between this directory and the one without the z postfix migration\i2.1\postgresql. But it seems to have different content, so could it be that one is for features and the other one for bugs? Just a wild guess.
I haven't a clue why they would opt for this strategy though? Why not just dump it all in 1 directory? Will try and look further when I have time.

Mean while, I just execute all the scripts using this ant script migration\i3.1\postgresql\build.xml. But before that, I needed to have migration\postgresql.properties ready.

If only there were visual util to help me in the whole process of determining the db up to the migration scripts run, which later I could use against the same directory (do I even needed later on as the development progress on the source code?). This util would report which script ran successfully and which didn't and why they didn't. Also prior to running they would list which scripts already ran and which hasn't(i.e. new scripts). I thought previously they had one, wonder what happened to it; Or perhaps I was day dreaming. :D
Just a quick look on the source and they had this processes but were never used org.adempiere.process.PrepareMigrationScripts and org.adempiere.process.ApplyMigrationScripts. Wonder why?


Next, since there are only 4 post migration scripts to execute currently, i figured i just list them out:
set PGPASSWORD=adempiere
cd "D:\bitbucket\idempiere\migration\"
psql -d idempiere-r-3-1 -U adempiere -w -f "processes_post_migration\postgresql\01_add_missing_translations.sql"

psql -d idempiere-r-3-1 -U adempiere -w -f "processes_post_migration\postgresql\02_SynchronizeTerminology.sql"
psql -d idempiere-r-3-1 -U adempiere -w -f "processes_post_migration\postgresql\03_update_sequences.sql"
psql -d idempiere-r-3-1 -U adempiere -w -f "processes_post_migration\postgresql\04_role_access_update.sql"


After finishing with the db installation and initialization, I ran the install.app and then the server.product Eclipse Applications. And getting the following error:
org.eclipse.equinox.launcher.gtk.linux.x86_64
> Platform filter did not match: (& (osgi.ws=gtk)(osgi.os=linux)(osgi.arch=x86_64))
I realized that it was a platform error so I looked at the plugins on the Eclipse Application configuration. And sure enough there was a mention of org.eclipse.equinox.launcher.gtk.linux.x86_64 ticked  whilst the window plugin org.eclipse.equinox.launcher.win32.win32.x86_64 was unticked, so I reversed the state.

Next there was a nagging error something like home.properties not found on the osgi console. To get rid of it you could copy the file from %IDEMPIERE_REPOSITORY%\org.adempiere.server\src\main\home\org\bmlaurus\home\home.properties to the %IDEMPIERE_REPOSITORY% home directory.

Then comes the problem of login into the system settings accessible from http://localhost:8888, where 8888 is the port I used to configure the web server to listen to; But which password to use?
Turned out, based on org.compiere.web.AdempiereMonitor and org.compiere.web.AdempiereMonitorFilter you need to use a system administrator user named System with the default password System.

Configuring the swing client Eclipse Application swingclient.product also involves the reversing states of the used plugin due to platform issues as per the server.product Eclipse Application previously mentioned.

As far as development is concerned I'm all set up.
The rest of the guide explains the deployment aspect of the project life cycle.

No comments: