Skip to end of metadata
Go to start of metadata

Debian Scenario 1

  1. Installation
  2. Functional Test

Installation

Set Up

  1. Use Debian 5 Lenny server vm (tick)
  2. Use apt-get install mysql-server java6 (tick)
  3. Download jboss-4.0.2 (tick)
  4. Install wildfire (tick)
  5. Install LAMS
    • LAMS 2.3 installer (tick)
    • Starting Up LAMS 2.3 (tick)

Debian 5 Lenny Server

Downloaded from http://www.vmware.com/appliances/directory/70918

Just to make it easier to work on it, I installed openssh-server, emacs and sudo (these are all optionals)

debian:~# apt-get install openssh-server sudo emacs

Added non-free (to add Java) to /etc/apt/source.list

deb http://mirror.aarnet.edu.au/debian/ lenny main non-free
deb-src http://mirror.aarnet.edu.au/debian/ lenny main non-free

deb http://security.debian.org/ lenny/updates main non-free
deb-src http://security.debian.org/ lenny/updates main non-free

Installing Java JDK6 and MySQL 5

using apt-get install

debian:~# apt-get install sun-java6-jdk  mysql-server-5.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  avahi-daemon dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0
  libdbd-mysql-perl libdbi-perl libdbus-1-3 libexpat1 libfontenc1 libfreetype6 libhtml-template-perl libltdl3 libmysqlclient15off
  libnet-daemon-perl libnss-mdns libplrpc-perl libterm-readkey-perl libxfont1 libxi6 libxtst6 mysql-client-5.0 mysql-common odbcinst1debian1
  psmisc sun-java6-bin sun-java6-jre unixodbc xfonts-encodings xfonts-utils
Suggested packages:
  avahi-autoipd defoma-doc dfontmgr psfontmgr x-ttcidfont-conf equivs dbishell libfreetype6-dev libipc-sharedcache-perl libcompress-zlib-perl
  tinyca 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
Recommended packages:
  libft-perl
The following NEW packages will be installed:
  avahi-daemon dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common libavahi-common-data libavahi-common3 libavahi-core5 libdaemon0
  libdbd-mysql-perl libdbi-perl libdbus-1-3 libexpat1 libfontenc1 libfreetype6 libhtml-template-perl libltdl3 libmysqlclient15off
  libnet-daemon-perl libnss-mdns libplrpc-perl libterm-readkey-perl libxfont1 libxi6 libxtst6 mysql-client-5.0 mysql-common mysql-server-5.0
  odbcinst1debian1 psmisc sun-java6-bin sun-java6-jdk sun-java6-jre unixodbc xfonts-encodings xfonts-utils
0 upgraded, 38 newly installed, 0 to remove and 21 not upgraded.
Need to get 95.8MB of archives.
After this operation, 277MB of additional disk space will be used.
Do you want to continue [Y/n]? y

...

I left the MySQL root password blank.

Accept the:

" Do you agree with the DLJ license terms? " yes

...

Setting up libterm-readkey-perl (2.30-4) ...
Setting up libxi6 (2:1.1.4-1) ...
Setting up libxtst6 (2:1.0.3-1) ...
Setting up sun-java6-bin (6-12-1) ...
Setting up sun-java6-jre (6-12-1) ...
Setting up sun-java6-jdk (6-12-1) ...
debian:~# 

Download/Install JBoss 4.0.2

debian:/tmp# wget http://transact.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.2.tar.gz
--2009-04-29 04:24:00--  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  13.3M/s   in 5.0s    

2009-04-29 04:24:07 (11.8 MB/s) - `jboss-4.0.2.tar.gz' saved [61652409/61652409]

debian:/tmp# cd /usr/local/
debian:/usr/local# tar xzf /tmp/jboss-4.0.2.tar.gz 
debian:/usr/local# 

Install wildfire

Getting Wildfire 2.6.2

debian:/tmp# wget http://www.igniterealtime.org/builds/wildfire/wildfire_2_6_2.tar.gz
--2009-04-29 04:26:13--  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    147K/s   in 31s     

2009-04-29 04:26:55 (173 KB/s) - `wildfire_2_6_2.tar.gz' saved [5558234/5558234]

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

Install LAMS

LAMS 2.3 installer

Get the installers from: Downloads

debian:/tmp# tar xzf lams-unix-installer-2.3-20090429.1705.tar.gz 
debian:/tmp# cd lams-unix-installer-2.3
debian:/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-6-sun/
...

Running the installer

debian:/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-6-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
cp: cannot stat `secure/*': 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.

debian:/tmp/lams-unix-installer-2.3# 

Starting Up LAMS 2.3

debian:/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 -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dprogram.name=run.sh

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

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

04:38:23,899 INFO  [Server] Starting JBoss (MX MicroKernel)...
04:38:23,902 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
04:38:23,903 INFO  [Server] Home Dir: /usr/local/jboss-4.0.2
04:38:23,904 INFO  [Server] Home URL: file:/usr/local/jboss-4.0.2/
04:38:23,905 INFO  [Server] Library URL: file:/usr/local/jboss-4.0.2/lib/
04:38:23,907 INFO  [Server] Patch URL: null
04:38:23,908 INFO  [Server] Server Name: default
04:38:23,909 INFO  [Server] Server Home Dir: /usr/local/jboss-4.0.2/server/default
04:38:23,910 INFO  [Server] Server Home URL: file:/usr/local/jboss-4.0.2/server/default/
04:38:23,911 INFO  [Server] Server Data Dir: /usr/local/jboss-4.0.2/server/default/data
04:38:23,912 INFO  [Server] Server Temp Dir: /usr/local/jboss-4.0.2/server/default/tmp
04:38:23,913 INFO  [Server] Server Config URL: file:/usr/local/jboss-4.0.2/server/default/conf/
04:38:23,914 INFO  [Server] Server Library URL: file:/usr/local/jboss-4.0.2/server/default/lib/
04:38:23,915 INFO  [Server] Root Deployment Filename: jboss-service.xml
04:38:23,920 INFO  [Server] Starting General Purpose Architecture (GPA)...
04:38:24,342 INFO  [ServerInfo] Java version: 1.6.0_12,Sun Microsystems Inc.
04:38:24,343 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.2-b01,Sun Microsystems Inc.
04:38:24,343 INFO  [ServerInfo] OS-System: Linux 2.6.26-1-686,i386
04:38:25,179 INFO  [Server] Core system initialized
...

...
2009-04-29 04:39:44,872 INFO  [LocaleFilter] Initializing filter 'LocaleFilter'
2009-04-29 04:39:44,884 INFO  [LocaleFilter] Filter 'LocaleFilter' configured successfully
2009-04-29 04:39:44,928 INFO  [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.2/server/default/deploy/lams.ear/
2009-04-29 04:39:45,064 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
2009-04-29 04:39:45,409 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
2009-04-29 04:39:45,441 INFO  [JkMain] Jk running ID=0 time=0/117  config=null
2009-04-29 04:39:45,492 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 1m:21s:573ms

LAMS starts fine (thumbs up) (smile)

Functional Test

Unknown macro: {live-template}
Labels
  • No labels