BM 10 - JBoss 5.0 - Eclipse 3.5 WTP - Installation Guide

scarcehoseSoftware and s/w Development

Jul 14, 2012 (5 years and 1 month ago)

623 views





BM 10 - JBoss 5.0 - Eclipse 3.5 WTP

BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc
01.02.2010
Yannick Robin

Revision chart

Date Version Description Author
01.02.2010 1.0 Yannick Robin





BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 2/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010



A) INTRODUCTION 3

B) JBOSS CONFIGURATION 3

1. JDK installation 3

2. JBoss Installation 3

3. Add JDBC libraries 3

4. Enable SSL 4

C) BLUE MARTINI CONFIGURATION 4

1. Install Blue Martini 4

2. Create a new website 4

D) ECLIPSE CONFIGURATION 4

1. Install Eclipse 4

2. Import your new website projects 4

3. Create a new WTP JBoss server 6

4. Change targeted runtime server 8

5. Change JBoss WTP server parameters 9

6. Install Java EE resources 10

7. Start your WTP server 10

BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 3/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010



A) INTRODUCTION
This document explains how to install and create a new website using BM Eclipse WTP module.

Using Web Tools Platform to extend Eclipse to Java EE development, you will have the following advantages:
- Develop in full Java EE mode (also called “deployed mode” or “EAR mode”)
- Create easily a new website
- Do not require a Blue Martini installation to run the website
- Stop/start website from Eclipse
- Auto-publish or publish on demand website from Eclipse
- Publish easily on multiple application servers
- Hot code replacement
- JSP reloading (not directly related to WTP)
- Configuration file reloading (not directly related to WTP)
- JSP auto-completion
- JSP code navigation
- Automatic build script


Note
: This guide has been written using a Mac OS X Leopard installation but it can be easily updated for Windows or
Linux.

B) JBOSS CONFIGURATION
1. JDK installation
- Install JDK 1.5
- Copy unlimited JCE 1.4.2 cryptography libraries to
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/security
- Copy bcprov-jdk14-136.jar to
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
- Edit /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/security/java.security,
add security.provider.8=org.bouncycastle.jce.provider.BouncyCastleProvider

2. JBoss Installation
- Download JBoss AS 5.1 from JBoss website -
http://www.jboss.org/jbossas/downloads

- Create a folder called jboss in /Applications
- Unarchive jboss-5.0.1.GA.zip into /Applications/jboss
- Create the following symbolic link with a terminal: ln –s /Applications/jboss/jboss-5.0.1.GA
/Applications/jboss/jboss
- Start JBoss. With a terminal, execute the followi ng command: /Applications/jboss/jboss/bin/run.sh
- Connect with Safari to
http://localhost:8080

- Stop JBoss. With a terminal, execute the following command: /Applications/jboss/jboss/bin/shutdown.sh –
shutdown
3. Add JDBC libraries
- Copy Oracle library (classes12.jar) to /Applications/jboss/jboss/server/default/lib
- Copy Search Server library (ssjdbc50.jar and ssjdbc.properties) to
/Applications/jboss/jboss/server/default/lib
- For MAC OS X only
: edit ssjdbc.properties and replace localhost by the hostname or IP address of the server
that runs Search Server.
BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 4/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010


4. Enable SSL
Enable SSL by following the following instructions:
http://code.google.com/p/seaminaction/wiki/EnableSSLJBossAS
.
C) BLUE MARTINI CONFIGURATION
Please note the Blue Martini installation is used for the Eclipse project creation only. These steps can be done from
another machine (For Mac OS X Leopard installation, I have done the Blue Martini configuration from a Windows
machine).
1. Install Blue Martini
- Install Perl
- Download and unzip bms-bm10-10x.jar
- Run bms setup
- Execute bms schema generate

Please note we assume the database and the schema have already been created.

2. Create a new website
- Download bms10-eclipse-wtp-x.zip. It is the Blue Martini module to support WTP.
- Unzip into bms10-eclipse-wtp-x.zip into <BMS_HOME>
- Execute bms eclipse/website create_project <yourWebSiteName>
This command creates the Eclipse projects for your new website in <BMS_HOME>\eclipse\workspace
D) ECLIPSE CONFIGURATION
1. Install Eclipse
- Download Eclipse 3.5 IDE for Java EE Developers for MacOS X
- Un-package eclipse-jee-galileo-SR2-macosx-cocoa.tar.gz
- Move Eclipse directory to /Applications
- Start Eclipse
2. Import your new website projects
- File > Import
- Select General > Existing Projects into Workspace

BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 5/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010


BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 6/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010



- Click Finish

3. Create a new WTP JBoss server

- Start Eclipse
- Select your Workspace
- File > New > Others > Server > Server
- Next
- Select “JBoss > JBoss v5.0”
BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 7/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010


BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 9/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010


BM 10 - JBoss 5.0 - Eclipse 3.5 WTP


PAGE 11/11
BM10-JBoss5.0-Eclipse3.5-WTP Installation Guide.doc – Vxx.mm
YANNICK ROBIN le 18.03.2010