Skip to end of metadata
Go to start of metadata

Unix Scenario 1

  1. Installation (tick)
  2. Functional Test

Installation

Setup

  1. Use Ubuntu 9.04 server (tick)
  2. Use apt-get install mysql-server5 java5 (tick)
  3. Download jboss-4.0.2 (tick)
  4. Install wildfire (tick)
  5. Install LAMS (tick)
    • LAMS 2.3 installer (tick)
    • Starting Up LAMS 2.3 (tick)

Ubuntu 9.04 Server VM

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

Java and MySQL

The following extra packages will be installed:
  avahi-daemon defoma gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0
  libdbd-mysql-perl libdbi-perl libfontenc1 libfreetype6 libhtml-template-perl libice6 libltdl7 libmysqlclient15off libnet-daemon-perl
  libnss-mdns libplrpc-perl libsm6 libxfont1 libxi6 libxp6 libxt6 libxtst6 mysql-client-5.0 mysql-common mysql-server-core-5.0 odbcinst1debian1
  sun-java5-bin sun-java5-demo sun-java5-jre unixodbc xfonts-encodings xfonts-utils
Suggested packages:
  avahi-autoipd defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libft-perl equivs libasound2-plugins dbishell libipc-sharedcache-perl
  mysql-doc-5.0 tinyca mailx sun-java5-doc sun-java5-source sun-java5-plugin ia32-sun-java5-plugin sun-java5-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
The following NEW packages will be installed:
  avahi-daemon defoma gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0
  libdbd-mysql-perl libdbi-perl libfontenc1 libfreetype6 libhtml-template-perl libice6 libltdl7 libmysqlclient15off libnet-daemon-perl
  libnss-mdns libplrpc-perl libsm6 libxfont1 libxi6 libxp6 libxt6 libxtst6 mysql-client-5.0 mysql-common mysql-server-5.0 mysql-server-core-5.0
  odbcinst1debian1 sun-java5-bin sun-java5-demo sun-java5-jdk sun-java5-jre unixodbc xfonts-encodings xfonts-utils
0 upgraded, 39 newly installed, 0 to remove and 3 not upgraded.
Need to get 77.9MB/88.9MB of archives.
After this operation, 243MB of additional disk space will be used.
Do you want to continue [Y/n]? y
  • Leave MySQL Root password blank
  • Accept the Java license

Download JBoss 4.0.2

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 wildfire

Getting Wildfire 2.6.2

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

root@ubuntu904-java5:/tmp# tar xzf lams-unix-installer-2.3-20090430.1656.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:

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

Running the installer

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

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

Unknown macro: {live-template}
  • No labels