2009年2月17日

Studying WebSpere Community Edition (2)

After installed the WebSphere CE, it is time to try the sample.

- Download the Sample Package "wasce_samples-2.1.1.1.zip" from IBM
- Read the readme.txt:
Prerequisites
-------------------
- IBM or Sun Java SE 5 SDK supported by the WASCE Server runtime
- Apache Maven v2.0.9
- WASCE Server runtime supported OS which is also supported by the above tools
- Internet connection to download required Maven artifacts
- Since I did not install Maven, download the Maven and install.
=================
= Install Apache Maven
=================
- Download Maven from HERE, the file is "apache-maven-2.0.9-bin.tar.gz"
- Login the server as root
- Place it in server and extract:
# tar xvf apache-maven-2.0.9-bin.tar.gz

- A directory is created apache-maven-2.0.9"
# mkdir /opt/apache
# mv apache-maven-2.0.9 /opt/apache/
# chmod -R 755 /opt/apache/apache-maven-2.0.9
# chown -R root:root /opt/apache/apache-maven-2.0.9
# ln -s apache-maven-2.0.9 maven

-Create the profile.d file for environment setup for apache stuffs
# touch /etc/profile.d/apache.sh
# chmod 755 /etc/profile.d/apache.sh
# chown 755 /etc/profile.d/apache.sh
- Edit the file content for Maven (append):
if ! echo ${PATH} | grep -q /opt/apache/maven/bin ; then
export PATH=/opt/apache/maven/bin:${PATH}
fi
export MAVEN_HOME=/opt/apache/maven
- Also copy for different shell:
# cp apache.sh apache.csh
# cp apache.sh apache.bash

=================
= Install Apache Maven
=================
- login as root
- Download the sample code to server and extract to an directory:
/opt/IBM/WebSphere/AppServerCommunityEdition/samples

# chmod -R 755 samples
# chown -R root:root samples

- Build the sample
# cd samples
# mvn install

- Note: it will download some components from web. Please enable the web connection in the server. .... and IT TAKES TIME~!!

沒有留言:

發佈留言