How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

6
Bonita BPM 6.2 (/bos‐version/bonita‐bpm‐62) Application and Process Design (/product‐bos‐sp/process‐and‐application‐design) + Installation (/product‐bos‐sp/installation) Bonita BPM installation overview (/product‐bos‐sp/bonita‐bpm‐installation‐overview) Bonita BPM Studio installation (/product‐bos‐sp/bonita‐bpm‐studio‐installation) Basic Bonita BPM platform installation (/product‐bos‐sp/basic‐bonita‐bpm‐platform‐installation) + Advanced Bonita BPM platform installation (/product‐bos‐sp/advanced‐bonita‐bpm‐platform‐ installation) + Platform installation examples (/product‐bos‐sp/platform‐installation‐examples) Red Hat + Oracle JVM + JBoss + PostgreSQL (/product‐bos‐sp/red‐hat‐oracle‐jvm‐jboss‐postgresql) Ubuntu + OpenJDK + Tomcat + MySQL (/product‐bos‐sp/ubuntu‐openjdk‐tomcat‐mysql) Bonita BPM and a Glassfish application server (/product‐bos‐sp/bonita‐bpm‐and‐glassfish‐ application‐server) Back up Bonita BPM Platform (/product‐bos‐sp/back‐bonita‐bpm‐platform) Install Tomcat as a service in Windows (/product‐bos‐sp/install‐tomcat‐service‐windows) Migration (/product‐bos‐sp/migration) + Bonita BPM Portal Administration (/product‐bos‐sp/bonita‐bpm‐portal‐administration) + Development (/product‐bos‐sp/development) + Ubuntu + OpenJDK + Tomcat + MySQL (/product‐ bos‐sp/ubuntu‐openjdk‐tomcat‐mysql) Search

description

Bonita BPM for Glassfish

Transcript of How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

Page 1: How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

27/6/2015 How to install Bonita BPM for Glassfish application server | Bonita Documentation

http://documentation.bonitasoft.com/how­install­bonita­bpm­glassfish­application­server 1/6

 

 

 

 

 

 

 

 

Bonita BPM 6.2 (/bos‐version/bonita‐bpm‐62)

Application and Process Design (/product‐bos‐sp/process‐and‐application‐design)+

Installation (/product‐bos‐sp/installation)−

Bonita BPM installation overview (/product‐bos‐sp/bonita‐bpm‐installation‐overview)Bonita BPM Studio installation (/product‐bos‐sp/bonita‐bpm‐studio‐installation)Basic Bonita BPM platform installation (/product‐bos‐sp/basic‐bonita‐bpm‐platform‐installation)+

Advanced Bonita BPM platform installation (/product‐bos‐sp/advanced‐bonita‐bpm‐platform‐installation)

+

Platform installation examples (/product‐bos‐sp/platform‐installation‐examples)−

Red Hat + Oracle JVM + JBoss + PostgreSQL (/product‐bos‐sp/red‐hat‐oracle‐jvm‐jboss‐postgresql)Ubuntu + OpenJDK + Tomcat + MySQL (/product‐bos‐sp/ubuntu‐openjdk‐tomcat‐mysql)Bonita BPM and a Glassfish application server (/product‐bos‐sp/bonita‐bpm‐and‐glassfish‐application‐server)

Back up Bonita BPM Platform (/product‐bos‐sp/back‐bonita‐bpm‐platform)Install Tomcat as a service in Windows (/product‐bos‐sp/install‐tomcat‐service‐windows)Migration (/product‐bos‐sp/migration)+

Bonita BPM Portal Administration (/product‐bos‐sp/bonita‐bpm‐portal‐administration)+

Development (/product‐bos‐sp/development)+

Ubuntu + OpenJDK + Tomcat + MySQL (/product‐bos‐sp/ubuntu‐openjdk‐tomcat‐mysql)

Search

Page 2: How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

27/6/2015 How to install Bonita BPM for Glassfish application server | Bonita Documentation

http://documentation.bonitasoft.com/how­install­bonita­bpm­glassfish­application­server 2/6

How to install Bonita BPM for Glassfish applicationserver

(/printpdf/337)

Overview

This document lists the steps to deploy a BonitaBPM Deploy (compatible v6.1 + v6.2) from scratch, on thefollowing stack, on the same server: Windows Server 2008 R2 + JVM Oracle 1.7 + GlassFish 3.1.2.2 +PostgreSQL 9.1

Target Audience: Platform Administrator

OS version: Windows

Pre‐requisite

If you intend deploying different Bonita BPM editions, either Community or SP, the steps are re‐usable. Onlyzip folder names change and no license is needed for the Community edition.

Install your OS using the standard installation

Install Oracle 7u45 using the standard installation

Install Glassfish 3.1.2.2 Application Server

Download Glassfish 3.1.2.2 (http://download.java.net/glassfish/3.1.2.2/release/glassfish‐3.1.2.2‐windows.exe)

1. Open a command window and launch installer:

C:\glassfish‐3.1.2.2‐windows.exe ‐j "C:\Program Files\Java\jdk1.6.0_45"

C:\Program Files\Java\jdk1.6.0_45 is the default path of the JVM installation

Product version:6.2, 6.1Product edition:

CommunityTeamworkEfficiencyPerformance

Page 3: How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

27/6/2015 How to install Bonita BPM for Glassfish application server | Bonita Documentation

http://documentation.bonitasoft.com/how­install­bonita­bpm­glassfish­application­server 3/6

2. Click Next3. Select typical installation4. Leave default installation directory (C:\glassfish3), click Next5. Uncheck Install Update Tool checkbox and click Next6. Click on the Install button7. Keep default settings and set username = admin and password (bonita)8. Tick create Operating System service for the domain9. Click Next

10. Check overall status : Complete11. Click Exit

<GLASSFISH_HOME>=C:\glassfish3\glassfish

Install PostgreSQL 9.1

standard installation

Create the database schema (e.g. bonita) and a user (e.g. bonita_gf)Create a user (assuming Postgres has a user named postgres)

1. Open a command window2. Type runas /user:postgres3. Type createuser ‐P bonita_gf4. Password for new role: bpm5. Confirm the paswword: bpm6. Superuser?: n (No)7. Role is allowed to create a new database? n8. Role is allowed to create more new roles? n9. Password:postgres password

Create the database with a default schema

1. Open a command window2. Type createdb ‐O bonita_gf bonita_gf_db3. Password: <postgres password>

Install Bonita BPM 6.1.0 platform

1. Download the deploy.zip file from the Bonitasoft site for the Community edition or from the(http://www.bonitasoft.com/how‐we‐do‐it#how‐we‐do‐it_downloads)Customer Portal(http://www.bonitasoft.com/resources/customer‐portal/download/request) for Subscriptioneditions.

2. To use the Efficiency or Performance edition, download the edition‐specific bonita_home from theCustomer Portal (http://www.bonitasoft.com/resources/customer‐portal/download/request).

3. <BONITA_DEPLOY> is the root of the deploy directory4. Create a folder <BOS_CONF> wherever you want.

Page 4: How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

27/6/2015 How to install Bonita BPM for Glassfish application server | Bonita Documentation

http://documentation.bonitasoft.com/how­install­bonita­bpm­glassfish­application­server 4/6

5. Copy and rename <BONITA_DEPLOY>\bonita_home‐6.1.0 to <BOS_CONF>\bonita\6. For the Efficiency or Teamwork edition, copy the content of the edition‐specific bonita‐home zip to

<BOS_CONF>\bonita\.7. If you have a Subscription Pack edition, generate a license and copy into

<BOS_CONF>\bonita\server\licenses8. Add <BONITA_DEPLOY>\Tomcat‐6.0.37\lib\slf4j‐api‐1.6.1 and slf4j‐jdk14‐1.6.1 to WEB‐INF\lib directory

within the bonita.war9. Create a glassfish‐web.xml file (see sample below) and add it to the bonita.war in the WEB‐INF\

directory

<?xml version="1.0"?><!DOCTYPE glassfish‐web‐app SYSTEM "http://glassfish.org/dtds/glassfish‐web‐app_3_0‐1.dtd"PUBLIC "‐//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN"><glassfish‐web‐app> <class‐loader delegate="false"></class‐loader></glassfish‐web‐app>

10. Download the database driver (http://jdbc.postgresql.org/download.html#current) you are using11. Copy the db driver into the <GLASSFISH_HOME>\domains\domain1\lib directory12. Open a command window and run the following command to define the database vendor:

asadmin create‐system‐property ‐Dsysprop.bonita.db.vendor=postgres13. In your command window, go to <GLASSFISH_HOME>\bin and run the following command to define the

bonita home:asadmin create‐jvm‐options ‐Dbonita.home=<BOS_CONF>\bonita

14. Open up the <BOS_CONF>\bonita\server\platform\conf\bonita‐platform.properties file and updatethe following values as described below:

database.journal.datasource.name=jdbc/bonitaDSXA

database.sequence.manager.datasource.name=jdbc/bonitaSequenceManagerDS

hibernate.transaction.manager_lookup_class=org.hibernate.transaction.SunONETransactionManagerLookup

transaction.manager=java:appserver/TransactionManager

userTransaction=java:comp/UserTransaction

Create and configuring datasource

1. Open web browser to the glassfish admin console (http://localhost:4848/) log in (admin/bonita) andgo to Resources‐>JDBC‐>JDBC Connection Pools and create a new pool with the following settings(according to your database):

Pool Name : bonitaDSXA

Bonitasoft.com (http://www.bonitasoft.com) Community (http://community.bonitasoft.com/)Register (/user/register?destination=node/337) Login (/user/login?destination=node/337)

Page 5: How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

27/6/2015 How to install Bonita BPM for Glassfish application server | Bonita Documentation

http://documentation.bonitasoft.com/how­install­bonita­bpm­glassfish­application­server 5/6

Resource type: javax.sql.XADataSourceDatabase driver vendor: PostgreSQL

2. Click Next and set the following according to your database settings

Database name: bonita_gf_dbPortnumber: 5432Server name: localhostUser: bonita_gfPassword: bpm

3. Delete the url property4. Perform a ping to check connectivity5. Click Finish.6. Do the previous three steps also with the following:

Pool Name: bonitaSequenceManagerDSResource type: javax.sql.DataSourceDatabase driver vendor: PostgreSQL(database name, etc is the same)Password: bpm

7. Delete the url property8. Perform a ping to check connectivity9. Using the admin console, go to: Configurations‐>server‐config‐>Transaction Service and set: On

Restart: Enabled10. Click Save.11. Restart the Glassfish server.12. Go to Resources‐>JDBC‐>JDBC Resources and create a new Resource with the following:

Name: jdbc/bonitaDSXAPool name: bonitaDSXA

13. Do the same for:

Name: jdbc/bonitaSequenceManagerDSPool name: bonitaSequenceManagerDS

14. Click Ok.

Install the web app

In the Glassfish admin console, go to Applications and browse to your bonita.war file to deploy itSet application name = bonita (default)Click Ok

© 2015 Bonitasoft, Inc. All rights reserved.

Page 6: How to Install Bonita BPM for Glassfish Application Server _ Bonita Documentation

27/6/2015 How to install Bonita BPM for Glassfish application server | Bonita Documentation

http://documentation.bonitasoft.com/how­install­bonita­bpm­glassfish­application­server 6/6

Launch the application and create a new user

Note: do not create a user or an administrator with the same login and password as the technical users(platform and tenant) ‐ See more at: http://doc.preprod.bonitasoft.net/first‐steps‐after‐setup#sthash.ko2FjeeZ.dpuf

Open up your browser at http://localhost:8080/bonitalog as technical user to create the first Bonita user

technical user: install password: install

Create a userGo to the Configuration menu and select ProfilesSelect profiles for the newly created userLog out then log back in with the new user

(/printpdf/337)

Last update on Apr, 9 2014

Ubuntu + OpenJDK + Tomcat + MySQL (/product‐bos‐sp/ubuntu‐openjdk‐tomcat‐mysql)

Log in to post comments (/user/login?destination=how‐install‐bonita‐bpm‐glassfish‐application‐server)

ORNo account yet? Create one. (/user/register?destination=how‐install‐bonita‐bpm‐glassfish‐application‐server)