Install Deployment Controller Server and/or Front-end Server FAILS on CentOS 6.2

Install Deployment Controller Server and/or Front-end Server FAILS on CentOS 6.2

  
Stack: single machine install
Oracle XE 11g R2
JBoss 5.1.0 GA
Agile Platform Server and Front-end Server 7.0.0.x

Following instructions:
yum install outsystems-agileplatform-jboss-community

Process looks promising but hangs...forcing me to kill it:

yum install outsystems-agileplatform-jboss-community
Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: mirror.i3d.net
 * extras: mirror.i3d.net
 * updates: mirror.i3d.net
base                                                                                                                       | 3.7 kB     00:00     
extras                                                                                                                     | 3.5 kB     00:00     
outsystems                                                                                                                 | 1.1 kB     00:00     
outsystems/primary                                                                                                         | 2.1 kB     00:00     
outsystems                                                                                                                                    5/5
updates                                                                                                                    | 3.5 kB     00:00     
updates/primary_db                                                                                                         | 4.1 MB     00:00     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package outsystems-agileplatform-jboss-community.noarch 0:7.0.0-5 will be installed
--> Processing Dependency: jboss-outsystems-configuration-community < 7.0.1 for package: outsystems-agileplatform-jboss-community-7.0.0-5.noarch
--> Processing Dependency: ant >= 1.6.5 for package: outsystems-agileplatform-jboss-community-7.0.0-5.noarch
--> Processing Dependency: jboss-outsystems-configuration-community >= 7.0.0-0 for package: outsystems-agileplatform-jboss-community-7.0.0-5.noarch
--> Running transaction check
---> Package ant.x86_64 0:1.7.1-13.el6 will be installed
--> Processing Dependency: java-devel >= 1.5.0 for package: ant-1.7.1-13.el6.x86_64
--> Processing Dependency: jpackage-utils >= 1.7.5 for package: ant-1.7.1-13.el6.x86_64
--> Processing Dependency: jpackage-utils >= 1.7.5 for package: ant-1.7.1-13.el6.x86_64
--> Processing Dependency: xerces-j2 for package: ant-1.7.1-13.el6.x86_64
--> Processing Dependency: xml-commons-jaxp-1.3-apis for package: ant-1.7.1-13.el6.x86_64
--> Processing Dependency: libgcj_bc.so.1()(64bit) for package: ant-1.7.1-13.el6.x86_64
---> Package jboss-outsystems-configuration-community.noarch 0:7.0.0-0 will be installed
--> Running transaction check
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.48.1.11.3.el6_2 will be installed
--> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-1.48.1.11.3.el6_2 for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-1.48.1.11.3.el6_2.x86_64
--> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-1.48.1.11.3.el6_2.x86_64
--> Processing Dependency: libjli.so()(64bit) for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-1.48.1.11.3.el6_2.x86_64
---> Package jpackage-utils.noarch 0:1.7.5-3.12.el6 will be installed
---> Package libgcj.x86_64 0:4.4.6-3.el6 will be installed
--> Processing Dependency: libart_lgpl >= 2.1.0 for package: libgcj-4.4.6-3.el6.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: libgcj-4.4.6-3.el6.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: libgcj-4.4.6-3.el6.x86_64
--> Processing Dependency: libSM.so.6()(64bit) for package: libgcj-4.4.6-3.el6.x86_64
---> Package xerces-j2.x86_64 0:2.7.1-12.6.el6_0 will be installed
--> Processing Dependency: java-gcj >= 1.5.0 for package: xerces-j2-2.7.1-12.6.el6_0.x86_64
--> Processing Dependency: java-gcj >= 1.5.0 for package: xerces-j2-2.7.1-12.6.el6_0.x86_64
--> Processing Dependency: xml-commons-resolver >= 1.1 for package: xerces-j2-2.7.1-12.6.el6_0.x86_64
---> Package xml-commons-apis.x86_64 0:1.3.04-3.6.el6 will be installed
--> Running transaction check
---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be installed
base/filelists_db                                                                                                          | 5.8 MB     00:00     
extras/filelists_db                                                                                                        | 3.6 kB     00:00     
outsystems/filelists                                                                                                       | 3.6 kB     00:00     
updates/filelists_db                                                                                                       | 3.1 MB     00:00     
--> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.48.1.11.3.el6_2 will be installed
--> Processing Dependency: tzdata-java for package: 1:java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64
--> Processing Dependency: rhino for package: 1:java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64
--> Processing Dependency: libpulse.so.0(PULSE_0)(64bit) for package: 1:java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64
--> Processing Dependency: libpulse.so.0()(64bit) for package: 1:java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64
---> Package libICE.x86_64 0:1.0.6-1.el6 will be installed
---> Package libSM.x86_64 0:1.1.0-7.1.el6 will be installed
---> Package libXtst.x86_64 0:1.0.99.2-3.el6 will be installed
---> Package libart_lgpl.x86_64 0:2.3.20-5.1.el6 will be installed
---> Package xml-commons-resolver.x86_64 0:1.1-4.18.el6 will be installed
--> Running transaction check
---> Package giflib.x86_64 0:4.1.6-3.1.el6 will be installed
---> Package pulseaudio-libs.x86_64 0:0.9.21-13.el6 will be installed
--> Processing Dependency: libsndfile.so.1(libsndfile.so.1.0)(64bit) for package: pulseaudio-libs-0.9.21-13.el6.x86_64
--> Processing Dependency: libasyncns.so.0()(64bit) for package: pulseaudio-libs-0.9.21-13.el6.x86_64
--> Processing Dependency: libsndfile.so.1()(64bit) for package: pulseaudio-libs-0.9.21-13.el6.x86_64
---> Package rhino.noarch 0:1.7-0.7.r2.2.el6 will be installed
--> Processing Dependency: jline for package: rhino-1.7-0.7.r2.2.el6.noarch
---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be installed
--> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.x86_64
---> Package tzdata-java.noarch 0:2012c-1.el6 will be installed
--> Running transaction check
---> Package java_cup.x86_64 1:0.10k-5.el6 will be installed
---> Package jline.noarch 0:0.9.94-0.8.el6 will be installed
---> Package libasyncns.x86_64 0:0.8-1.1.el6 will be installed
---> Package libsndfile.x86_64 0:1.0.20-5.el6 will be installed
--> Processing Dependency: libogg.so.0()(64bit) for package: libsndfile-1.0.20-5.el6.x86_64
--> Processing Dependency: libvorbisenc.so.2()(64bit) for package: libsndfile-1.0.20-5.el6.x86_64
--> Processing Dependency: libFLAC.so.8()(64bit) for package: libsndfile-1.0.20-5.el6.x86_64
--> Processing Dependency: libvorbis.so.0()(64bit) for package: libsndfile-1.0.20-5.el6.x86_64
--> Running transaction check
---> Package flac.x86_64 0:1.2.1-6.1.el6 will be installed
---> Package libogg.x86_64 2:1.1.4-2.1.el6 will be installed
---> Package libvorbis.x86_64 1:1.2.3-4.el6_2.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
 Package                                               Arch                Version                                  Repository               Size
==================================================================================================================================================
Installing:
 outsystems-agileplatform-jboss-community              noarch              7.0.0-5                                  outsystems               46 M
Installing for dependencies:
 ant                                                   x86_64              1.7.1-13.el6                             base                    2.5 M
 flac                                                  x86_64              1.2.1-6.1.el6                            base                    243 k
 giflib                                                x86_64              4.1.6-3.1.el6                            base                     37 k
 java-1.5.0-gcj                                        x86_64              1.5.0.0-29.1.el6                         base                    139 k
 java-1.6.0-openjdk                                    x86_64              1:1.6.0.0-1.48.1.11.3.el6_2              updates                  25 M
 java-1.6.0-openjdk-devel                              x86_64              1:1.6.0.0-1.48.1.11.3.el6_2              updates                 8.5 M
 java_cup                                              x86_64              1:0.10k-5.el6                            base                    197 k
 jboss-outsystems-configuration-community              noarch              7.0.0-0                                  outsystems               20 M
 jline                                                 noarch              0.9.94-0.8.el6                           base                     86 k
 jpackage-utils                                        noarch              1.7.5-3.12.el6                           base                     59 k
 libICE                                                x86_64              1.0.6-1.el6                              base                     53 k
 libSM                                                 x86_64              1.1.0-7.1.el6                            base                     26 k
 libXtst                                               x86_64              1.0.99.2-3.el6                           base                     22 k
 libart_lgpl                                           x86_64              2.3.20-5.1.el6                           base                     65 k
 libasyncns                                            x86_64              0.8-1.1.el6                              base                     24 k
 libgcj                                                x86_64              4.4.6-3.el6                              base                     19 M
 libogg                                                x86_64              2:1.1.4-2.1.el6                          base                     21 k
 libsndfile                                            x86_64              1.0.20-5.el6                             base                    233 k
 libvorbis                                             x86_64              1:1.2.3-4.el6_2.1                        updates                 168 k
 pulseaudio-libs                                       x86_64              0.9.21-13.el6                            base                    462 k
 rhino                                                 noarch              1.7-0.7.r2.2.el6                         base                    778 k
 sinjdoc                                               x86_64              0.5-9.1.el6                              base                    705 k
 tzdata-java                                           noarch              2012c-1.el6                              updates                 154 k
 xerces-j2                                             x86_64              2.7.1-12.6.el6_0                         base                    2.9 M
 xml-commons-apis                                      x86_64              1.3.04-3.6.el6                           base                    439 k
 xml-commons-resolver                                  x86_64              1.1-4.18.el6                             base                    145 k

Transaction Summary
==================================================================================================================================================
Install      27 Package(s)

Total download size: 127 M
Installed size: 275 M
Is this ok [y/N]: y
Downloading Packages:
(1/27): ant-1.7.1-13.el6.x86_64.rpm                                                                                        | 2.5 MB     00:00     
(2/27): flac-1.2.1-6.1.el6.x86_64.rpm                                                                                      | 243 kB     00:00     
(3/27): giflib-4.1.6-3.1.el6.x86_64.rpm                                                                                    |  37 kB     00:00     
(4/27): java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64.rpm                                                                         | 139 kB     00:00     
(5/27): java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64.rpm                                                            |  25 MB     00:02     
(6/27): java-1.6.0-openjdk-devel-1.6.0.0-1.48.1.11.3.el6_2.x86_64.rpm                                                      | 8.5 MB     00:00     
(7/27): java_cup-0.10k-5.el6.x86_64.rpm                                                                                    | 197 kB     00:00     
(8/27): jboss-outsystems-configuration-community-7.0.0-0.noarch.rpm                                                        |  20 MB     00:16     
(9/27): jline-0.9.94-0.8.el6.noarch.rpm                                                                                    |  86 kB     00:00     
(10/27): jpackage-utils-1.7.5-3.12.el6.noarch.rpm                                                                          |  59 kB     00:00     
(11/27): libICE-1.0.6-1.el6.x86_64.rpm                                                                                     |  53 kB     00:00     
(12/27): libSM-1.1.0-7.1.el6.x86_64.rpm                                                                                    |  26 kB     00:00     
(13/27): libXtst-1.0.99.2-3.el6.x86_64.rpm                                                                                 |  22 kB     00:00     
(14/27): libart_lgpl-2.3.20-5.1.el6.x86_64.rpm                                                                             |  65 kB     00:00     
(15/27): libasyncns-0.8-1.1.el6.x86_64.rpm                                                                                 |  24 kB     00:00     
(16/27): libgcj-4.4.6-3.el6.x86_64.rpm                                                                                     |  19 MB     00:01     
(17/27): libogg-1.1.4-2.1.el6.x86_64.rpm                                                                                   |  21 kB     00:00     
(18/27): libsndfile-1.0.20-5.el6.x86_64.rpm                                                                                | 233 kB     00:00     
(19/27): libvorbis-1.2.3-4.el6_2.1.x86_64.rpm                                                                              | 168 kB     00:00     
(20/27): outsystems-agileplatform-jboss-community-7.0.0-5.noarch.rpm                                                       |  46 MB     00:19     
(21/27): pulseaudio-libs-0.9.21-13.el6.x86_64.rpm                                                                          | 462 kB     00:00     
(22/27): rhino-1.7-0.7.r2.2.el6.noarch.rpm                                                                                 | 778 kB     00:00     
(23/27): sinjdoc-0.5-9.1.el6.x86_64.rpm                                                                                    | 705 kB     00:00     
(24/27): tzdata-java-2012c-1.el6.noarch.rpm                                                                                | 154 kB     00:00     
(25/27): xerces-j2-2.7.1-12.6.el6_0.x86_64.rpm                                                                             | 2.9 MB     00:00     
(26/27): xml-commons-apis-1.3.04-3.6.el6.x86_64.rpm                                                                        | 439 kB     00:00     
(27/27): xml-commons-resolver-1.1-4.18.el6.x86_64.rpm                                                                      | 145 kB     00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                             3.0 MB/s | 127 MB     00:42     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 58646b77: NOKEY
Retrieving key from http://yum.outsystems.net/7.0/noarch/OUTSYSTEMS-RPM-GPG-KEY-SUPPORT
Importing GPG key 0x58646B77:
 Userid: "Outsystems SA (Outsystems Technical Support) <support@outsystems.com>"
 From  : http://yum.outsystems.net/7.0/noarch/OUTSYSTEMS-RPM-GPG-KEY-SUPPORT
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : jpackage-utils-1.7.5-3.12.el6.noarch                                                                                          1/27
  Installing : libICE-1.0.6-1.el6.x86_64                                                                                                     2/27
  Installing : libSM-1.1.0-7.1.el6.x86_64                                                                                                    3/27
  Installing : libXtst-1.0.99.2-3.el6.x86_64                                                                                                 4/27
  Installing : 2:libogg-1.1.4-2.1.el6.x86_64                                                                                                 5/27
  Installing : 1:libvorbis-1.2.3-4.el6_2.1.x86_64                                                                                            6/27
  Installing : flac-1.2.1-6.1.el6.x86_64                                                                                                     7/27
  Installing : libsndfile-1.0.20-5.el6.x86_64                                                                                                8/27
  Installing : giflib-4.1.6-3.1.el6.x86_64                                                                                                   9/27
  Installing : libart_lgpl-2.3.20-5.1.el6.x86_64                                                                                            10/27
  Installing : libgcj-4.4.6-3.el6.x86_64                                                                                                    11/27
  Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64                                                                                       12/27
  Installing : 1:java_cup-0.10k-5.el6.x86_64                                                                                                13/27
  Installing : sinjdoc-0.5-9.1.el6.x86_64                                                                                                   14/27
  Installing : xml-commons-apis-1.3.04-3.6.el6.x86_64                                                                                       15/27
  Installing : xerces-j2-2.7.1-12.6.el6_0.x86_64                                                                                            16/27
  Installing : xml-commons-resolver-1.1-4.18.el6.x86_64                                                                                     17/27



^CError in PREIN scriptlet in rpm package jboss-outsystems-configuration-community-7.0.0-0.noarch
Enter Java SDK location: error: %pre(jboss-outsystems-configuration-community-7.0.0-0.noarch) scriptlet failed, signal 2
error:   install: %pre scriptlet failed (2), skipping jboss-outsystems-configuration-community-7.0.0-0


Turns out the JAVA_HOME is set incorrectly during installation....
Resorted to off-line installation (latest version 7.0.0.7).

Check the install scriptlets:
rpm -q --scripts -p jboss-outsystems-configuration-community-7.0.0-0.noarch.rpm
rpm -q --scripts -p outsystems-agileplatform-jboss-community-7.0.0-7.noarch.rpm 
And realized the Enter Java SKD location came from the jboss-outsystems install, because it could not find any valid JVM.

So my fix was to create file /etc/sysconfig/outsystems with following content:
JAVA_HOME=/usr/java/jdk1.6.0_32
#change java_home JAVA_HOME=/etc/alternatives/java_sdk_1.6.0
JBOSS_HOME=/opt/jboss-5.1.0.GA
ANT_HOME=/usr/share/ant
OUTSYSTEMS_HOME=/opt/outsystems/platform


This solved the installation problem in case anyone runs across this :-). Which finally leads me to the question for the run-time configuration!
JBoss 5.10 GA uses the system wide java on CentOS, see output below:
ps -ef | grep java | grep jboss | grep run.sh
jboss     7178  7123  1 Jun20 ?        00:18:10 java -Dprogram.name=run.sh -server -Xms512m -Xmx1024m -XX:PermSize=162m -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=100000 -Dsun.rmi.dgc.server.gcInterval=100000 -Dorg.apache.catalina.connector.Request.SESSION_ID_CHECK=false -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss-5.1.0.GA/lib/endorsed -classpath /opt/jboss-5.1.0.GA/bin/run.jar org.jboss.Main -c outsystems -b 0.0.0.0


RMIRegistry uses the JAVA_HOME from /etc/sysconfig/outsystems, see output below:
# ps -ef|grep java|grep rmiregistry
502       7721  7707  0 Jun20 ?        00:00:44 /usr/java/jdk1.6.0_32/bin/rmiregistry 2033
And the four Agile Platform services as well.

Of course in my changed configuration this will be same JVM, but in case those changes were not made the JVMs used for JBoss and Outsystems services
will be different

Question: What is the recommended JVM to use? Because in case the default settings are chosen the Oracle JVM will not be run, but a pre-installed OpenJDK JVM will be used for the RMIRegistry and AP services?
Everything seems to install ok 8.0 on centos 6.4, oracle xe 11g