Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Unix Scenario 3

  1. #Installation
  2. #Functional Test

Installation

Setup

  1. Use Ubuntu 9.04 server
  2. Install JDK6
  3. Install XAMPP (see installation instructions here)
  4. Download jboss-4.0.2
  5. Install Wildfire 2.6.2
  6. Install LAMS
    • LAMS 2.3 installer
    • Starting Up LAMS 2.3

Ubuntu 9.04 Server VM

Using a VM created with Ubuntu 9.04 Server AMD 64. Installed with OpenSSH-Server.

Java

No Format
ubuntu@ubuntu:~$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  avahi-daemon bind9-host consolekit dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core5 libbind9-40 libck-connector0 libdaemon0 libdbus-1-3
  libdbus-glib-1-2 libdns45 libexpat1 libfontenc1 libfreetype6 libglib2.0-0 libglib2.0-data libisc45 libisccc40 libisccfg40 libltdl7 liblwres40 libnss-mdns libpam-ck-connector libpolkit2 libxfont1 libxi6
  libxml2 libxtst6 odbcinst1debian1 sgml-base shared-mime-info sun-java6-bin sun-java6-jre unixodbc xfonts-encodings xfonts-utils xml-core
Suggested packages:
  avahi-autoipd defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libft-perl equivs libasound2-plugins sgml-base-doc binfmt-support sun-java6-demo sun-java6-doc sun-java6-source sun-java6-plugin
  ia32-sun-java6-plugin sun-java6-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming libmyodbc odbc-postgresql libct1
  debhelper
The following NEW packages will be installed:
  avahi-daemon bind9-host consolekit dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core5 libbind9-40 libck-connector0 libdaemon0 libdbus-1-3
  libdbus-glib-1-2 libdns45 libexpat1 libfontenc1 libfreetype6 libglib2.0-0 libglib2.0-data libisc45 libisccc40 libisccfg40 libltdl7 liblwres40 libnss-mdns libpam-ck-connector libpolkit2 libxfont1 libxi6
  libxml2 libxtst6 odbcinst1debian1 sgml-base shared-mime-info sun-java6-bin sun-java6-jdk sun-java6-jre unixodbc xfonts-encodings xfonts-utils xml-core
0 upgraded, 46 newly installed, 0 to remove and 8 not upgraded.
Need to get 0B/61.9MB of archives.
After this operation, 184MB of additional disk space will be used.
Do you want to continue [Y/n]? y
  • Accept the Java license

Download JBoss 4.0.2

No Format
root@ubuntu904-java5:~# cd /tmp
root@ubuntu904-java5:/tmp# wget http://transact.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.2.tar.gz
--2009-05-01 14:33:39--  http://transact.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.2.tar.gz
Resolving transact.dl.sourceforge.net... 202.55.147.10
Connecting to transact.dl.sourceforge.net|202.55.147.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 61652409 (59M) [application/x-gzip]
Saving to: `jboss-4.0.2.tar.gz'

100%[=========================================================================================================>] 61,652,409  7.30M/s   in 14s

2009-05-01 14:33:54 (4.08 MB/s) - `jboss-4.0.2.tar.gz' saved [61652409/61652409]

root@ubuntu904-java5:/tmp# cd /usr/local/
root@ubuntu904-java5:/usr/local# tar xzf /tmp/jboss-4.0.2.tar.gz
root@ubuntu904-java5:/usr/local#

Install XAMPP

Download XMAPP from Apache Friends

No Format
ubuntu@ubuntu:~/tmp$ wget http://www.apachefriends.org/download.php?xampp-linux-1.7.1.tar.gz
--2009-06-03 03:04:23--  http://www.apachefriends.org/download.php?xampp-linux-1.7.1.tar.gz
Resolving www.apachefriends.org... 88.198.19.171
Connecting to www.apachefriends.org|88.198.19.171|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://prdownloads.sourceforge.net/xampp/xampp-linux-1.7.1.tar.gz?download [following]
--2009-06-03 03:04:24--  http://prdownloads.sourceforge.net/xampp/xampp-linux-1.7.1.tar.gz?download
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://transact.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.1.tar.gz [following]
--2009-06-03 03:04:25--  http://transact.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.1.tar.gz
Resolving transact.dl.sourceforge.net... 202.55.147.10
Connecting to transact.dl.sourceforge.net|202.55.147.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59209971 (56M) [application/x-gzip]
Saving to: `xampp-linux-1.7.1.tar.gz'

100%[=====================================================================================================================================================================>] 59,209,971  4.25M/s   in 13s    

2009-06-03 03:04:38 (4.33 MB/s) - `xampp-linux-1.7.1.tar.gz' saved [59209971/59209971]

Extra XAMPP to the /opts directory

No Format
ubuntu@ubuntu:~/tmp$ sudo tar xfz xampp-linux-1.7.1.tar.gz -C /opt  

Now start XAMPP using the folowing comand

No Format
ubuntu@ubuntu:~/tmp$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.7.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
ubuntu@ubuntu:~/tmp$

Install wildfire

Getting Wildfire 2.6.2

No Format
root@ubuntu904-java5:/tmp# wget http://www.igniterealtime.org/builds/wildfire/wildfire_2_6_2.tar.gz
--2009-05-01 14:34:38--  http://www.igniterealtime.org/builds/wildfire/wildfire_2_6_2.tar.gz
Resolving www.igniterealtime.org... 70.98.39.60
Connecting to www.igniterealtime.org|70.98.39.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5558234 (5.3M) [application/x-gzip]
Saving to: `wildfire_2_6_2.tar.gz'

100%[=========================================================================================================>] 5,558,234    144K/s   in 34s

2009-05-01 14:35:13 (158 KB/s) - `wildfire_2_6_2.tar.gz' saved [5558234/5558234]

root@ubuntu904-java5:/tmp# cd /usr/local/
root@ubuntu904-java5:/usr/local# tar xzf /tmp/wildfire_2_6_2.tar.gz
root@ubuntu904-java5:/usr/local# cd wildfire/bin/
root@ubuntu904-java5:/usr/local/wildfire/bin# ./wildfire start
testing JVM in /usr ...
Starting wildfire
nohup: appending output to `nohup.out'
root@ubuntu904-java5:/usr/local/wildfire/bin#

Install LAMS

LAMS 2.3 installer

Get the installers from: Downloads

No Format
root@ubuntu904-java5:/tmp# tar xzf lams-unix-installer-2.3.tar.gz
root@ubuntu904-java5:/tmp# cd lams-unix-installer-2.3
root@ubuntu904-java5:/tmp/lams-unix-installer-2.3#

Editing lams.properties

Only one change to point to the Java JDK6 dir:

No Format
...
# The directory that contains your JDK. (Must be 1.5 or higher)
JDK_DIR=/usr/lib/jvm/java-5-sun/
...

Running the installer

No Format
root@ubuntu904-java5:/tmp/lams-unix-installer-2.3# ./install-lams.sh
JDK_DIR is valid

--------------------------------------------------------------------------------

WELCOME to the LAMS 2.3 unix Installer!

Please ensure you have read and accepted the license agreement before continuing

Make sure you have correctly configured the lams.properties file to your
preferred settings.

You should read the installation guide before continuing.

JAVA_HOME = /usr/lib/jvm/java-1.5.0-sun/

--------------------------------------------------------------------------------

LAMS requires about 117MB of space, continue with installation? (y)es, (n)o: y

Do you wish to install LAMS as a Java Service Wrapper? (y)es, (n)o, (q)uit: n

Using LAMS database with the following parameters...
Database name: lams2
Database user: lamsuser
Database password: lamsdemo

Creating LAMS database.
Buildfile: ant-scripts/configure-database.xml
Database Created.

Filling database with LAMS tables

Buildfile: ant-scripts/filter-config.xml
Buildfile: ant-scripts/configure-database.xml
Done.

Database Created.

Copying lams.ear directory to /usr/local/jboss-4.0.2/server/default/deploy.

Done.

Configuring JBoss with your settings.
Buildfile: ant-scripts/configure-deploy.xml
cp: cannot stat `repository/*': No such file or directory

Configuring the java Wrapper
Copying lams.properties to /etc.


LAMS 2.3 Configuration completed!
Please view the README for instructions on how to run LAMS.

root@ubuntu904-java5:/tmp/lams-unix-installer-2.3#

Starting Up LAMS 2.3

No Format
root@ubuntu904-java5:/tmp/lams-unix-installer-2.3# cd /usr/local/jboss-4.0.2/bin/
root@ubuntu904-java5:/usr/local/jboss-4.0.2/bin# ./run.sh
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur.  Make sure JAVA_HOME points to a JDK and not a JRE.
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /usr/local/jboss-4.0.2

  JAVA: java

  JAVA_OPTS: -server -Xmx512m -XX:MaxPermSize=128m -XX:MaxNewSize=204m -XX:SurvivorRatio=32 -Dprogram.name=run.sh

  CLASSPATH: /usr/local/jboss-4.0.2/bin/run.jar:/lib/tools.jar

=========================================================================

14:41:33,483 INFO  [Server] Starting JBoss (MX MicroKernel)...
14:41:33,484 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
14:41:33,484 INFO  [Server] Home Dir: /usr/local/jboss-4.0.2
14:41:33,484 INFO  [Server] Home URL: file:/usr/local/jboss-4.0.2/
14:41:33,484 INFO  [Server] Library URL: file:/usr/local/jboss-4.0.2/lib/
14:41:33,485 INFO  [Server] Patch URL: null
14:41:33,485 INFO  [Server] Server Name: default
14:41:33,485 INFO  [Server] Server Home Dir: /usr/local/jboss-4.0.2/server/default
14:41:33,486 INFO  [Server] Server Home URL: file:/usr/local/jboss-4.0.2/server/default/
14:41:33,486 INFO  [Server] Server Data Dir: /usr/local/jboss-4.0.2/server/default/data
14:41:33,486 INFO  [Server] Server Temp Dir: /usr/local/jboss-4.0.2/server/default/tmp
14:41:33,486 INFO  [Server] Server Config URL: file:/usr/local/jboss-4.0.2/server/default/conf/
14:41:33,487 INFO  [Server] Server Library URL: file:/usr/local/jboss-4.0.2/server/default/lib/
14:41:33,487 INFO  [Server] Root Deployment Filename: jboss-service.xml
14:41:33,488 INFO  [Server] Starting General Purpose Architecture (GPA)...
14:41:33,757 INFO  [ServerInfo] Java version: 1.5.0_18,Sun Microsystems Inc.
14:41:33,758 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_18-b02,Sun Microsystems Inc.
14:41:33,759 INFO  [ServerInfo] OS-System: Linux 2.6.28-11-server,i386
14:41:34,561 INFO  [Server] Core system initialized
...

...

2009-05-01 14:42:44,620 INFO  [LocaleFilter] Initializing filter 'LocaleFilter'
2009-05-01 14:42:44,620 INFO  [LocaleFilter] Filter 'LocaleFilter' configured successfully
2009-05-01 14:42:44,631 INFO  [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.2/server/default/deploy/lams.ear/
2009-05-01 14:42:44,711 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
2009-05-01 14:42:44,802 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
2009-05-01 14:42:44,811 INFO  [JkMain] Jk running ID=0 time=0/18  config=null
2009-05-01 14:42:44,823 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 1m:11s:335ms

LAMS starts fine (thumbs up) (smile)

Functional Test

Include Page
Unix Scenario 3 Functional Test
Unix Scenario 3 Functional Test