Topic: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

*/---------------------------------------------------------------------------------------------------
*/   Install and configure Bonita 5.1.0 for Windows 2003 / Tomcat 6 / MySQL 5.1
*/ 
*/   Modified on: 30/Apr/2010
*/   Reason      :  WAR file deployment was not mentioned in
*/                        'Adding additional processes' section
*/---------------------------------------------------------------------------------------------------

Before starting, please note that the things explained below are what I have done
to achieve my Bonita installation.  The versions specified for various utilities and
Bonita support software are what was available when I installed them.  On a later date
these versions may get revised.  Also, feel free to change folder names to suit your
naming conventions.

The environment in which I installed Bonita is:

  - Bonita was installed in a server machine running
    Windows 2003 Server Ent edition / Tomcat 6.0.26 / MySQL 5.1
    having IP 101.101.101.101.  ( The IP is only for example! )

  - Users will access Bonita from their own Windows XP systems using internet browser
    through URL http://101.101.101.101:8080/bonita/ in our intranet

    User Logins/passwords are defined through Bonita admin user and the data is saved
    in MySQL database in the server.

I will explain how I achieved the following:

  - Install Bonita 5.1.0 in Windows 2003
  - Configure Bonita to use MySQL as database
  - Deploy the Bonita process 'MyProcess' and its corresponding application in Tomcat 6
  - Define a user/password
  - Access the process through another system

I assume that you have already installed Bonita successfully, designed a process and
able to run it through Bonita RUN user experience.

--------------------------
- Before you begin
--------------------------

  Create the following folders in your local disk root (eg: c:\ )

    - 'Bonita_setup'
    - 'Bonita_Process'

  This is not necessary.  But, this will help us a lot in avoiding references
  to long folder paths.

-----------------
- Tomcat 6
-----------------

  File                   :  apache-tomcat-6.0.26-windows-x86.zip
  Download from:  http://www.apache.org/dist/tomcat/tomca … ws-x86.zip

  Use the above URL as a direct file downloading link.  If you have any problem,
  please do as follows:

  Go to http://tomcat.apache.org/download-60.cgi.
  Towards the end of this page, locate the section '6.0.26'.  Below that, you will
  see the section 'Binary Distributions'.  Click on the link '32-bit Windows zip'.

  You may have to wait for sometime to get the download dialog to open up.

  - Save the file to the folder 'Bonita_setup' created earlier.
  - Unzip the zip file under the Bonita_setup folder. 
  - You will get the sub folder 'apache-tomcat-6.0.26'
  - Copy this folder into your C: drive root with name 'Tomcat_6026'

  - (Now, you may delete the 'apache-tomcat-6.0.26' subfolder from 'Bonita_setup' folder).

--------------------------
- Apache ANT
--------------------------

  File                   :  apache-ant-1.8.0-bin.zip
  Download from:  http://ant.apache.org/bindownload.cgi

  Towards the end of the URL page, locate the link 'Current Release of Ant'.
  In that section click on link saying 'apache-ant-1.8.0-bin.zip'.

  - Save the zip file to the folder 'Bonita_setup' created earlier.
  - Unzip the zip file under the Bonita_setup folder. 
  - You will get the sub folder 'apache-ant-1.8.0'
  - Copy this folder into your C: drive root with name 'Ant_180'

  - (Now, you may delete the 'apache-ant-1.8.0' subfolder from 'Bonita_setup' folder).

  This utility is required to create the tables in the Bonita MySQL database.

----------------------
- JAVA EE SDK
----------------------

  File                   :  java_ee_sdk-5_08-jdk-6u18-windows.exe
  Download from:  http://java.sun.com/javase/downloads/index.jsp

  - In the above URL page, click on the rectangle showing 'Java EE' (JDK + Java EE Bundle)
  - In the next page, select 'Windows' for platform and 'English' for Language.
    Click on 'Continue'
  - In the next page, click on link showing 'java_ee_sdk-5_08-jdk-6u18-windows.exe'.

  In fact, I downloaded EE version because, in other versions, I could not find the
  'tools.jar' required by the Ant utility to build the database tables using the
  Bonita 'init-db'.

  - Save the exe file to the folder 'Bonita_setup' created earlier.
  - Run the exe and install Java SDK.
  - Installation will ask you to specify a password for admin.  Give an appropriate
    password and for obvious reasons, do remember that!
  - In the 'Installation Options' appearing in a subsequent page, I had un-checked
    the 'Enable UpdateCentre Client' option and checked the 'Add bin directory to PATH'
    options.  If you think otherwise, choose accordingly.
  - In the 'Installation Completed' screen, do not click on 'Start Server'.
    Directly click on 'Finish' button.

  * Usually the SDK gets installed in c:\sun\sdk.
 
  * If you have a JRE_HOME variable, delete that from System Environment variables list

  * In 'System variables' section, set environment variable JAVA_HOME to c:\sun\sdk\jdk

  * In 'User variables...' section, set environment variable PATH to C:\Sun\SDK\jdk\jre\bin

  * See 'Set Environment variables' at the end of this documentation,
    if you are in doubt how to set variables.

----------------------------
- MySQL server
----------------------------

  File                   : mysql-essential-5.1.45-win32.msi
  Download from: http://www.mysql.com/downloads/mysql/
 
  - Click on 'Download' button shown against 'Windows (x86, 32 bit), MSI Installer'.

    There are two files.  I downloaded '(mysql-essential-5.1.45-win32.msi)' which 
    excludes Instance Manager tool, Documentation & Developer Components.
    If you want, you may download '(mysql-5.1.45-win32.msi)'.

    MySQL site will request you to register.  If you do not want to register click on
    'No thanks, just take me to the downloads!'.

  - You will see 'You are downloading:  mysql-essential-5.1.45-win32.msi.
    ...chose a mirror site close to you'.  If you are not sure which is closer,
    just click on the first 'HTTP' link.  That is what I did!!!

  - Save the MSI file to the folder 'Bonita_setup' created earlier.

  - Run this file to install MySQL Server
      - Select 'Typical' and click 'Next'.  Click 'Install'.
      - Click on 'Next' button on each screen until you see 'Wizard Completed' screen.
      - Make sure that 'Configure the MySQL Server now' is selected (Checked).
      - For time being, uncheck 'Register the MySQL Server now'.
        You can register later if you want.
      - Click on 'Finish'.
      - Click on 'Next'.
      - Select 'Standard Configuration' and click 'Next'
      - 'Install as Windows Service' will be selected by default.
      - Click on check box near to 'Include Bin Directory in Windows PATH' to select it.
      - If not selected, click on check box near to 'Modify Security Settings' to select it.
      - Enter a password for user 'root' (Do REMEMBER this password for obvious reasons!!!)
      - Click on check box near to 'Enable Root acccess from Remote machines' to select it.
      - In the next screen, click 'Execute'.

      - Progress of processes will be displayed.
      - When you see 'Press [Finish] to close the wizard', click on 'Finish'.

----------------------------------------
- MySQL Java Connector
----------------------------------------

  File                            : mysql-connector-java-5.1.12.zip
  Download from: http://www.mysql.com/downloads/connector/

  - Click on 'Connector/J'.
  - In next page, click on 'Download' button shown against 'Platform Independent (Architecture
    Independent), ZIP Archive  (mysql-connector-java-5.1.12.zip)

  - Save the zip file to the folder 'Bonita_setup' created earlier.
  - Unzip the zip file under the Bonita_setup folder. 
  - You will get the sub folder 'mysql-connector-java-5.1.12'

--------------------------------------------------------------
- Bonita.BAT file with Environment Variables
--------------------------------------------------------------

  In the 'C:\Tomcat_6026' folder, create a batch file called 'BONITA.BAT'
  with following contents.

      @echo off
      echo Setting Bonita Environment variable
      echo

      set BONITA_OPTS="-Dorg.ow2.bonita.environment=c:/Tomcat_6026/conf/bonita-environment.xml"
      set LOG_OPTS="-Djava.util.logging.config.file=c:/Tomcat_6026/conf/logging.properties"
      set SECURITY_OPTS="-Djava.security.auth.login.config=c:/Tomcat_6026/conf/jaas-standard.cfg"

      set JAVA_OPTS=%LOG_OPTS% %SECURITY_OPTS% %BONITA_OPTS%

      echo
      echo Starting TomCat...
      echo

-----------------------------------------------------------
- Export the Process and its Application
-----------------------------------------------------------

  Start Bonita studio and open your process.  In my case, it was 'MyProcess'.

  - Click on 'Process' and then 'Export...' to generate the BAR file.
  - For the save Location, select the 'Bonita_Process' folder created earlier.
    Process file 'MyProcess--1.0.bar' will be created in this folder.
 
  - Click on 'Process' and then on 'Export Application' to generate the required
    application files of the process.

  - Click on checkbox to select 'Export UserXP' and then 'All UserXP'
  - Click on checkbox to select 'Export Runtime'
  - Click on checkbox to select 'Extract selected War libraries outside......'

    This will ensure that all required files will be generated.

  - From the process list, click on checkbox to select 'MyProcess'
    (Your process name may be different)
  - For the save Location, click on Browse to select the 'Bonita_Process' folder created earlier.
  - Click on 'Export'

  - File 'bonita_application.zip' will be created in the 'Bonita_Process' folder.
  - Unzip the file in the same folder.  You should get the following folders/file.

      - common-war-lib
      - conf
      - runtime
      - wars
      - INSTALL.txt

----------------------------------------------------------------------
- Prepare the Configuration files and Environments
----------------------------------------------------------------------

  From the C:\BONITA_PROCESS\runtime\conf folder,

  Edit the bonita-environment.xml file ( I edited by opening in Windows WordPad ) for
  the hibernate-configuration sections for 'core' and 'history'

      -----------------------------------------------------------------------------------------
      <!-- Description: Configuration of the Hibernate session factory used by Bonita core. -->
      <hibernate-configuration name='hibernate-configuration:core' >
        <properties file='C:\BONITA_PROCESS\runtime\conf\hibernate-core.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.core.cache.xml' usage='read-write' />
      </hibernate-configuration>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita history. -->
      <hibernate-configuration name='hibernate-configuration:history' >
        <properties file='C:\BONITA_PROCESS\runtime\conf\hibernate-history.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.history.cache.xml' usage='nonstrict-read-write' />
      </hibernate-configuration>
      -----------------------------------------------------------------------------------------

  edit the hibernate-core.properties file.  Change only the below given lines.

      -----------------------------------------------------------------------------------------
      hibernate.dialect                      org.hibernate.dialect.MySQLInnoDBDialect
      hibernate.connection.driver_class      com.mysql.jdbc.Driver
      hibernate.connection.url               jdbc:mysql://localhost:3306/bonita_core
      hibernate.connection.shutdown                     true
      hibernate.connection.username          bonitauser
      hibernate.connection.password          bonitauser123
      -----------------------------------------------------------------------------------------

  IMPORTANT:  Be sure to remove the line showing 'hibernate.hbm2ddl.auto'.
  Otherwise, as per Bonita guide, the migration won't work and you might lose
  the data in your database.

  edit the hibernate-history.properties file.  Change only the below given lines.

      -----------------------------------------------------------------------------------------
      hibernate.dialect                      org.hibernate.dialect.MySQLInnoDBDialect
      hibernate.connection.driver_class      com.mysql.jdbc.Driver
      hibernate.connection.url               jdbc:mysql://localhost:3306/bonita_history
      hibernate.connection.shutdown                     true
      hibernate.connection.username          bonitauser
      hibernate.connection.password          bonitauser123
      -----------------------------------------------------------------------------------------

  IMPORTANT:  Be sure to remove the line showing hibernate.hbm2ddl.auto.
  Otherwise, as per Bonita guide, the migration won't work and you might lose the data in your database.

  From the 'D:\BONITA_SETUP\mysql-connector-java-5.1.12 folder',

  copy the file 'mysql-connector-java-5.1.12-bin.jar' into
  folder 'D:\BONITA_PROCESS\runtime\lib\server'

----------------------------------------------------------
- Create and initialise the databases
----------------------------------------------------------

  - Launch 'MySQL command line client'
    through Start -> Programs -> MySQL -> MySQL Server 5.1
  - It will ask for the password.  Enter the password you specified for the
    'root' user when MySQL was installed.
  - You will the 'mysql>' prompt.

  Now, create the databases

    - At the prompt type below command and press Enter
         create database bonita_core default character set utf8 collate utf8_bin;
      You should see 'Query OK,....'

    - At the prompt type below command and press Enter
         create database bonita_history default character set utf8 collate utf8_bin;
      You should see 'Query OK,....'

  Now, define a userid to work with bonita

  - At the prompt type below command and press Enter
         create user 'bonitauser'@'localhost' identified by 'bonitauser123';
      You should see 'Query OK,....'

    ( Here 'bonitauser123' is the password for this user.  You may use your own password.
      However, in that case, you should replace all occurances of bonitauser123 with
      the password you selected )

  Now, grant rights to the user

  - At the prompt type below command and press Enter
         grant all privileges on bonita_core.* to 'bonitauser'@'localhost';     
      You should see 'Query OK,....'
  - At the prompt type below command and press Enter
         grant all privileges on bonita_history.* to 'bonitauser'@'localhost';     
      You should see 'Query OK,....'

  Now, initialise the database (create tables, indexes and default data )

  - Open a command prompt and change directory to 'D:\BONITA_PROCESS\runtime' folder.
    You should see the command window prompt as

    C:\bonita_process\runtime>

  - Type the command C:\ant_180\bin\ant init-db and press Enter
    ( Please note that, in an earlier step, We have installed the ANT utility in ant_180 folder )

    When asked for 'Which hibernate file to use...'

    Type hibernate-configuration:core and press Enter
    You will see the progress in the process

    At last, you should see 'BUILD SUCCESSFUL'

  - Type the command C:\ant_180\bin\ant init-db and press Enter

    When asked for 'Which hibernate file to use...'

    Type hibernate-configuration:history and press Enter
    You will see the progress in the process

    At last, you should see 'BUILD SUCCESSFUL'

-----------------------------
- Deploy in Tomcat
-----------------------------

  * Copy ALL files
   
    - from C:\BONITA_PROCESS\common-war-lib              TO  C:\Tomcat_6026\lib
      If asked 'Overwrite?', say yes.

    - from C:\BONITA_PROCESS\runtime\conf                TO  C:\Tomcat_6026\conf
      If asked 'Overwrite?', say yes.

    - from C:\BONITA_PROCESS\runtime\lib\server folder   TO  C:\Tomcat_6026\lib
      If asked 'Overwrite?', say yes.

  * Copy ALL files

    - from D:\BONITA_PROCESS\wars                        TO  C:\Tomcat_6026\webapps

-----------------------------------------------
- Modify bonita-environment.xml
-----------------------------------------------

  * The bonita-environment.xml file copied to Tomcat in the earlier step has
    hibernate path refering to C:\BONITA_PROCESS\runtime\conf folder.  This we had
    done for initilising the database through 'init-db'.

    Now, this path to be edited to refer the Tomcat folder.

  * From the C:\Tomcat_6026\conf folder,

    Edit the bonita-environment.xml file ( I edited by opening in Windows WordPad )
    for the hibernate-configuration sections for 'core' and 'history'

      --------------------------------------------------------------------------------------------
      <!-- Description: Configuration of the Hibernate session factory used by Bonita core. -->
      <hibernate-configuration name='hibernate-configuration:core' >
        <properties file='C:\Tomcat_6026\conf\hibernate-core.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.core.cache.xml' usage='read-write' />
      </hibernate-configuration>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita history. -->
      <hibernate-configuration name='hibernate-configuration:history' >
        <properties file='C:\Tomcat_6026\conf\hibernate-history.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.history.cache.xml' usage='nonstrict-read-write' />
      </hibernate-configuration>
      --------------------------------------------------------------------------------------------

  * I know this is a duplication and could have done in one go.  But, this will avoid
    confusions and keep this walkthrough in a step-by-step manner.

-----------------------------
- Start-up Tomcat
-----------------------------

  * Open a command prompt and go to C:\Tomcat_6026\bin folder.

    - Type bonita.bat and press Enter.
      ( you have created this batch file in an earlier step )

    - Type startup.bat and press Enter.
      ( This is the Tomcat startup batch file )

      Now, you should see another dos prompt window saying 'Tomcat' in title bar.
      Tomcat is running now.

  * When the Tomcat starts, it will automatically deploy the war files
    we have copied.

    You can verify this by checking the contents of C:\Tomcat_6026\webapps folder
    You should see two new folders 'MyProcess--1.0' and 'Bonita'.
    If these are not shown, wait for a few seconds and refresh the
    Windows explorer window.

  * Verify that Tomcat is running, open Internet explorer and type in
    http://101.101.101.101:8080 and press Enter.

    ( Replace 101.101.101.101 with the IP of the system in which you have installed tomcat
      and deployed bonita application just now)

    You should see the Tomcat introductory web page.

-----------------------------------------------------------------------------------
- Access Bonita application through your internet browser
-----------------------------------------------------------------------------------

  * Open Internet explorer and type in http://101.101.101.101:8080/bonita/ and
    press enter.

    You should see the Bonita application login page.

  * Enter 'admin' in username and 'bpm' in password and press Enter
    or click on Login.

    ( 'admin' is the Bonita default admin user and 'bpm' is the default password )

    You should see the Bonita user experience page for user admin.

-----------------------------------------------------------------------------------
- Install the process itself
-----------------------------------------------------------------------------------

  * In the user experience window, click on 'Processes'.
    (If you are not seeing this, click on '+' sign near to 'Admin')
   
    - Click on 'browse' and select the file 'MyProcess--1.0.bar' from
      'Bonita_process' folder.  Click 'Save'

    - Click on 'Install'.  You will see the install process.
      If the process is not appearing in the list below 'Select All None' label,
      for a few minutes, click on 'Processes' once again.

      You should see the process name listed.

  * Confirm the Application URL for the process

    - Click on 'Settings' given under 'Admin'.
    - Click on the 'Applications' tab.

    - In the list, you should see the process name.  In the text box shown
      near the process name will read 'http://......'

      In order to make the Process application available from other systems,
      replace 'localhost' with the IP of the system (in which Bonita is installed)

----------------------------------------------------
- Access Bonita within the network
----------------------------------------------------

  * After the process is installed successfuly, you should be able to access
    bonita application within your intranet through URL

    http://101.101.101.101:8080/bonita/

    ( You will have to change the IP according to your setup )

-----------------------------------------------------------
- Adding additional processes
-----------------------------------------------------------

  After completing the design of your new process in the studio

  - Click on 'Process' and then 'Export...' to generate the BAR file of new process.
  - For the save Location, select the 'Bonita_Process' folder created earlier.
    Process BAR file will be created in this folder.
 
  - Click on 'Process' and then on 'Export Application' to generate the required
    application files of the process.

  - UnSelect the 'Export UserXP' and then 'All UserXP'
  - SELECT 'Export Runtime'
  - UnSelect the 'Extract selected War libraries outside......'

    ( This time we need only the WAR file for the new process. )

  - From the process list below, click on checkbox near to new process to select it
  - For the save Location, click on Browse to select the 'Bonita_Process' folder
    created earlier.
  - Click on 'Export'

  - Application ZIP File will be created in the 'Bonita_Process' folder.
  - Unzip the file in the same folder.  You should get the following folders/file.

      - common-war-lib
      - conf
      - runtime
      - wars
      - INSTALL.txt

  - From the 'wars' folder, copy the WAR file of your new process into the TomCat webapps folder.
    ( eg:  C:\Tomcat_6026\webapps )
  - If TomCat is running (or when you start it), WAR application will be
    automatically deployed.

  - Install the new process BAR file in Bonita as explained in the
    'Install the process itself' section.

  Now you can start using your new process


------------------------------------------------------
- 7Zip Compress/Decompress utility
------------------------------------------------------

  Download from: http://sourceforge.net/projects/sevenzi … i/download

  Use the above URL as a direct file downloading link.
  Download and install 7zip in your system.

-----------------------------------------------------
- Set Windows Environmental Variables
-----------------------------------------------------

  From the 'Desktop' right click on 'My Computer' and in the displayed menu,
  click 'Properties'.

  From the displayed page, click on 'Advanced' tab. 
  Click on 'Environment Variables'.
 
  In the 'System Variables' section,
    - search for 'JRE_HOME'.  If exists, click on that to select it
      and then click on 'Delete' button.
    - Click on 'New' button.  In the 'New System variable' dialog box,
      enter 'JAVA_HOME' for variable name and 'C:\Sun\SDK\jdk' for variable value.
    - Click on 'OK' to save it.
    - Click on 'OK'.
    - Click on 'OK'.

  In the 'User Variables...' section,
    - Click on 'New' button.  In the 'New System variable' dialog box,
      enter 'PATH' for variable name and 'C:\Sun\SDK\jdk\jre\bin' for variable value.
      (If 'PATH' already exists, add the above path at the end of the existing value)

    - Click on 'OK' to save it.
    - Click on 'OK'.
    - Click on 'OK'.

  ************* END ***************

Rajesh Karunakaran,
New Delhi, India.
HP: 91-93505-95711

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi,

great work!
We are going to modify your initial post in order for the guide in the sticky section to remain updated.

HTH
Anthony

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Very help document.

However, I have tried on a freshly installed Windows Server 2003 SP2 server by following your updated guide, and still get the same errors.

C:\bonita_process\runtime>ant init-db
Buildfile: C:\bonita_process\runtime\build.xml

init-db:
    [input]
    [input]       Which hibernate configuration to use to generate database ?
    [input]       Default value for bonita engine database is:  hibernate-config
uration:core
    [input]       Default value for bonita DbHistory database is: hibernate-conf
iguration:history
    [input]      []
hibernate-configuration:core
     [java] Apr 30, 2010 1:53:36 PM org.ow2.bonita.env.BonitaEnvironmentParser g
etInstance
     [java] INFO: parsing bindings from resource url: jar:file:/C:/bonita_proces
s/runtime/lib/server/bonita-server-5.1.1.jar!/bonita.wire.bindings.xml
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.Environment <clinit>
     [java] INFO: Hibernate 3.2.6
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.Environment <clinit>
     [java] INFO: hibernate.properties not found
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.Environment buildBytecodeP
rovider
     [java] INFO: Bytecode provider name : cglib
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.Environment <clinit>
     [java] INFO: using JDK 1.4 java.sql.Timestamp handling
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.definition.hbm.xml
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.InternalActivityDefin
ition -> BN_ACT_DEF
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.InternalActivity
Definition.outgoingTransitions -> INCOMING_TR
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.InternalActivity
Definition.incomingTransitions -> OUTGOING_TR
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.InternalActivity
Definition.performers -> BN_ACT_PERFORMERS
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.SubflowP
arameterDefinitionImpl -> BN_SUBFLOW_PARAM_DEF
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.majorElement.impl.Dat
aFieldDefinitionImpl -> BN_DATAF_DEF
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.majorElement.impl.Par
ticipantDefinitionImpl -> BN_ACTOR_DEF
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.majorElement.impl.Tra
nsitionDefinitionImpl -> BN_TRANS_DEF
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.InternalProcessDefini
tion -> BN_PROC_DEF
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.InternalProcessD
efinition.metadata -> BN_PROC_METADATA
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.InternalProcessD
efinition.iterationDescriptors -> BN_ABSTR_ACT_ITDESC
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.InternalProcessD
efinition.subProcesses -> BN_PROC_SUBPROC
     [java] Apr 30, 2010 1:53:37 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.Connecto
rDefinitionImpl -> BN_CON_DEF
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.Connecto
rParameters -> BN_CON_PARAM_
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.MetaData
Impl -> BN_METADATA
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.Attachme
ntDefinitionImpl -> BN_ATTACH_DEF
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.Iteratio
nDescriptor -> BN_ITER_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.element.impl.Ite
rationDescriptor.entryNodes -> ENTRY_NODES
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.element.impl.Ite
rationDescriptor.exitNodes -> EXIT_NODES
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.def.element.impl.Ite
rationDescriptor.otherNodes -> OTHER_NODES
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.Outgoing
EventDefinitionImpl -> BN_OE_DEF
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.def.element.impl.Incoming
EventDefinitionImpl -> BN_IE_DEF
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.runtime.hbm.xml
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.InternalActi
vityInstance -> BN_ACT_INST
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.runtime.impl.Interna
lActivityInstance.candidates -> BN_ACT_CAND
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.AttachmentIn
stanceImpl -> BN_ATTS_INST
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.InternalProc
essInstance -> BN_PROC_INST
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.runtime.impl.Interna
lProcessInstance.childrenInstanceUUID -> BN_PROC_INST_CHILD
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.runtime.impl.Interna
lProcessInstance.variables -> BN_PROC_INST_VARS
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.runtime.impl.Interna
lProcessInstance.transitionStates -> BN_TRANS_STATES
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.runtime.impl.Interna
lProcessInstance.involvedUsers -> BN_INST_USERS
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.CommentImpl
-> BN_COMMENTS
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.StateUpdateI
mpl -> BN_STATE_UPD
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.InstanceStat
eUpdateImpl -> BN_PI_STATE_UPD
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.AssignUpdate
Impl -> BN_TASK_ASS_UPD
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.runtime.impl.AssignU
pdateImpl.candidates -> BN_TA_UPD_CAND
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.VariableUpda
teImpl -> BN_VAR_UPDATE
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.runtime.model.Execution -> BN_PV
M_EXEC
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.definition.activity.AbstractActi
vity -> BN_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.definition.activity.Automatic
Activity -> BN_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.definition.activity.Task -> B
N_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.definition.activity.SubFlow -
> BN_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.definition.activity.Timer ->
BN_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.definition.activity.SendEvent
s -> BN_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.definition.activity.ReceiveEv
ent -> BN_ABSTR_ACT
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.runtime.event.OutgoingEventInsta
nce -> BN_OEI_
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.runtime.event.IncomingEventInsta
nce -> BN_IEI_
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.queries.hbm.xml
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.converter.hbm.xml
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.wire.hbm.xml
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.env.descriptor.AbstractDescripto
r -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.NullDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.TrueDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.FalseDescripto
r -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.StringDescript
or -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.CharacterDescr
iptor -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ClassDescripto
r -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ReferenceDescr
iptor -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.DoubleDescript
or -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.FloatDescripto
r -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.LongDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.IntegerDescrip
tor -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:38 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ShortDescripto
r -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ByteDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.CollectionDesc
riptor -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.MapDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ListDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.SetDescriptor
-> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ObjectDescript
or -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.descriptor.ProvidedObject
Descriptor -> BN_PVM_DESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.env.operation.AbstractOperation
-> BN_PVM_OPERATION
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.operation.FieldOperation
-> BN_PVM_OPERATION
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.operation.PropertyOperati
on -> BN_PVM_OPERATION
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.env.operation.InvokeOperation
-> BN_PVM_OPERATION
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.env.descriptor.ArgDescriptor ->
BN_PVM_ARGDESCR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.variable.hbm.xml
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.type.Variable -> BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.DateVariable ->
BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.DoubleVariable
-> BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.HibernateLongVa
riable -> BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.LongVariable ->
BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.HibernateString
Variable -> BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.StringVariable
-> BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.NullVariable ->
BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.type.variable.BlobVariable ->
BN_VAR
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.type.lob.Lob -> BN_LOB
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.identity.hbm.xml
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.identity.impl.UserImpl ->
BN_USER
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.identity.impl.UserIm
pl.roles -> BN_USER_ROLE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.identity.impl.RoleImpl ->
BN_ROLE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.identity.impl.RoleIm
pl.users -> BN_USER_ROLE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.privilege.hbm.xml
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.privilege.impl.RuleImpl -
> BN_RULE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.privilege.impl.RuleI
mpl.exceptions -> BN_EXCEPTION_RULE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindCollection
     [java] INFO: Mapping collection: org.ow2.bonita.facade.privilege.impl.RuleI
mpl.entities -> BN_ENTITY_RULE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.facade.privilege.impl.Process
StartRuleImpl -> BN_RULE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindSubclass
     [java] INFO: Mapping subclass: org.ow2.bonita.facade.privilege.impl.Process
ReadRuleImpl -> BN_RULE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.web.hbm.xml
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.LabelImpl ->
BN_WEB_LABEL
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.CaseImpl ->
BN_WEB_CASE
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.HbmBinder bindRootPersiste
ntClassCommonValues
     [java] INFO: Mapping class: org.ow2.bonita.facade.runtime.impl.WebUserImpl
-> BN_WEB_USER
     [java] Apr 30, 2010 1:53:39 PM org.hibernate.cfg.Configuration addResource
     [java] INFO: Reading mappings from resource: bonita.web.queries.hbm.xml
     [java] Apr 30, 2010 1:53:39 PM org.ow2.bonita.util.Misc showProblems
     [java] SEVERE: error : couldn't interpret the dom model : org.ow2.bonita.en
v.WireException: Bonita Error: bp_PD_1
     [java] couldn't read properties from resource C:\bonita_process\runtime\con
f\hibernate-core.properties
     [java] . Cause: org.ow2.bonita.env.WireException: Bonita Error: bp_PD_1
     [java] couldn't read properties from resource C:\bonita_process\runtime\con
f\hibernate-core.properties
     [java]
     [java] Exception in thread "main" org.ow2.bonita.util.BonitaRuntimeExceptio
n: Bonita Error: bp_Pa_1
     [java] errors during parsing of environment:
     [java]   error : couldn't interpret the dom model : org.ow2.bonita.env.Wire
Exception: Bonita Error: bp_PD_1
     [java] couldn't read properties from resource C:\bonita_process\runtime\con
f\hibernate-core.properties
     [java]
     [java]
     [java]     at org.ow2.bonita.util.Misc.showProblems(Misc.java:1859)
     [java]     at org.ow2.bonita.env.BonitaEnvironmentParser.parseEnvironmentFa
ctoryFromXmlString(BonitaEnvironmentParser.java:88)
     [java]     at org.ow2.bonita.env.GlobalEnvironmentFactory.getEnvironmentFac
tory(GlobalEnvironmentFactory.java:113)
     [java]     at org.ow2.bonita.util.DbTool.getConfiguration(DbTool.java:54)
     [java]     at org.ow2.bonita.util.DbTool.recreateDb(DbTool.java:77)
     [java]     at org.ow2.bonita.util.DbTool.main(DbTool.java:209)

BUILD FAILED
C:\bonita_process\runtime\build.xml:235: Java returned: 1

The bonita-environment.xml is below:

<environment-definition>

    <environment-factory>
      <!-- Description: Implementation of the BlobStrategy interface which will be used to store Blobs. -->
      <object name='blob-strategy' class='org.ow2.bonita.type.lob.BlobStrategyBlob' />

      <!-- Description: Implementation of the LobCreator interface which will be used to store Clobs. -->
      <object name='clob-strategy' class='org.ow2.bonita.type.lob.ClobStrategyChopped' />

      <!-- Description: Service which executes commands -->
      <command-service name='command-service'>
        <retry-interceptor retries='5' delay='50' delay-factor='10'/>
        <environment-interceptor />
        <standard-transaction-interceptor />
      </command-service>

      <!-- Description: Service which executes events -->
      <event-executor idle-min='50' idle='10000' threads='3' auto-start='true' command-service='command-service'/>

      <!-- Description: List of services called when an instance is finished. -->
      <chainer name='finished-instance-handler'>
        <!-- Description:  -->
        <object class='org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler' />
      </chainer>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita core. -->
      <hibernate-configuration name='hibernate-configuration:core' >
        <properties resource='C:\bonita_process\runtime\conf\hibernate-core.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.core.cache.xml' usage='read-write' />
      </hibernate-configuration>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita history. -->
      <hibernate-configuration name='hibernate-configuration:history' >
        <properties resource='C:\bonita_process\runtime\conf\hibernate-history.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.history.cache.xml' usage='nonstrict-read-write' />
      </hibernate-configuration>

      <!-- Description: Hibernate session factory used by hibernate session factory for Bonita core.. -->
      <hibernate-session-factory name='hibernate-session-factory:core' configuration='hibernate-configuration:core' init='eager'/>

      <!-- Description: Hibernate session factory used by hibernate session factory for Bonita history.. -->
      <hibernate-session-factory name='hibernate-session-factory:history' configuration='hibernate-configuration:history' init='eager'/>

      <!-- Description: Implementation of the large data repository. -->
      <large-data-repository name='large-data-repository' class='org.ow2.bonita.services.impl.FileLargeDataRepository'>
        <arg><string value='property:java.io.tmpdir' /></arg>
      </large-data-repository>

      <!-- Description: Implementation of the LobCreator interface which will be used to create SQL Blobs, Clobs. -->
      <object name='lob-creator' class='org.ow2.bonita.services.impl.HibernateLobCreator' />

      <!-- Description: Service used to find the user logged in. -->
      <object name='security' class='org.ow2.bonita.facade.AutoDetectSecurityContext' />

      <!-- Description: Mapping from java variable to database type -->
      <variable-types resource='bonita.type.resolver.xml' />

      <!-- Description: List of services called when an process is undeployed. -->
      <chainer name='undeployed-process-handler'>
        <!-- Description:  -->
        <object class='org.ow2.bonita.services.handlers.impl.ArchiveUndeployedProcessHandler' />
      </chainer>

    </environment-factory>

    <environment>
      <!-- Description: DB Implementation of the history. This implementation is full conformant with the spec (but not optimized). -->
      <!--
      <history name='history' class='org.ow2.bonita.services.impl.DbHistory'/>
       -->

      <!-- Description: Optimized DB Implementation of the history. This implementation contains optimized methods. For example, a call to getUserTasks(final String userId, final ActivityState taskState)  looks in DB only if the state is an expected one in History (FINISHED is one, READY is not...) -->
      <history name='history' class='org.ow2.bonita.services.impl.OptimizedDbHistory'>
        <arg><string value='bonita-session:history' /></arg>
      </history>

      <!-- Description: List of archivers. -->
      <chainer name='archiver'>
        <!-- Description: Archiver which writes archived data to logs. -->
        <archiver class='org.ow2.bonita.services.impl.LoggerArchiver' />
        <!-- Description: Reference to the history -->
        <ref object='history' />
      </chainer>

      <!-- Description: Implementation of the authentication service. -->
      <authentication-service name='authentication-service' class='org.ow2.bonita.services.impl.DbAuthentication'>
        <arg><string value='bonita-session:core' /></arg>
      </authentication-service>

      <!-- Description: Querier used in hibernate session name for Bonita core.. -->
      <db-session name='bonita-session:core' session='hibernate-session:core'/>

      <!-- Description: Querier used in hibernate session name for Bonita history.. -->
      <db-session name='bonita-session:history' session='hibernate-session:history'/>

      <!-- Description: Implementation of the Event Service. -->
      <event-service name='event-service' class='org.ow2.bonita.services.impl.DbThreadEventService'>
        <arg><string value='bonita-session:core' /></arg>
      </event-service>

      <!-- Description: Hibernate session used by hibernate session for Bonita core.. -->
      <hibernate-session name='hibernate-session:core' factory='hibernate-session-factory:core' />

      <!-- Description: Hibernate session used by hibernate session for Bonita history.. -->
      <hibernate-session name='hibernate-session:history' factory='hibernate-session-factory:history' />

      <!-- Description: Implementation of the identity service. -->
      <identity-service name='identity-service' class='org.ow2.bonita.services.impl.DbIdentity'>
        <arg><string value='bonita-session:core' /></arg>
      </identity-service>

      <!-- Description: Implementation of the journal. -->
      <journal name='journal' class='org.ow2.bonita.services.impl.DbJournal'>
        <arg><string value='bonita-session:core' /></arg>
      </journal>

      <!-- Description: Implementation of the privilege service. -->
      <privilege-service name='privilege-service' class='org.ow2.bonita.services.impl.DbPrivilegeService'>
        <arg><string value='bonita-session:core' /></arg>
      </privilege-service>

      <!-- Description: List of Queriers to use. -->
      <queryApi name='queryList'>
        <!-- Description: Reference to the journal -->
        <ref object='journal' />
        <!-- Description: Reference to the history -->
        <ref object='history' />
      </queryApi>

      <!-- Description: List of recorders. -->
      <chainer name='recorder'>
        <!-- Description: Recorder which writes recorded data to logs. -->
        <recorder class='org.ow2.bonita.services.impl.LoggerRecorder' />
        <!-- Description: Reference to the journal -->
        <ref object='journal' />
      </chainer>

      <!-- Description: Implementation of the repository. -->
      <repository class='org.ow2.bonita.services.impl.DbRepository'>
        <arg><string value='bonita-session:core' /></arg>
      </repository>

      <!-- Description: Db Transaction. -->
      <object name='transaction' class='org.ow2.bonita.runtime.tx.StandardTransaction' />

      <!-- Description: Implementation of the UUID Service. -->
      <uuid-service name='uuid-service' class='org.ow2.bonita.services.impl.DbUUIDService'>
        <arg><string value='bonita-session:core' /></arg>
      </uuid-service>

      <!-- Description: Implementation of the Web Service. -->
      <web-service name='web-service' class='org.ow2.bonita.services.impl.DbWebService'>
        <arg><string value='bonita-session:core' /></arg>
      </web-service>

    </environment>

  </environment-definition>


Anything that is not done correctly?

Appreciate your help.

Thanks and regards,
George

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Rajesh,

I suspect that setup of Environment Variables or some configurations might cause the steps to initialize the databases to fail.

Do you have any other Environment configurations that might be obvious to you but have not be documented in your guide?

Many thanks.

Thanks and regards,
George

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Dear George,

See, in the configuration xml file, the place where you specify the hibernation files folder
(ie c:\bonita_process\........), it should be
'properties file'      not      'properties resource'. 
In the documentation also you will find this.  Please try this and let me know.  It should work.

Rajesh

Rajesh Karunakaran,
New Delhi, India.
HP: 91-93505-95711

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi Rejesh,

Good catch - I should have fully copied and pasted. It works now with the db initialization. Thanks a lot!

George

Thanks and regards,
George

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

hello, thank you for your tutorial
I followed your tutorial step by step,in the first time  it works ,but when I restart Tomcat and mysql i get  me a message that the password is incorecte sad, is anyone can help me please

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

It sounds weired!  can you post bonita-environment.xml?

Rajesh Karunakaran,
New Delhi, India.
HP: 91-93505-95711

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

thanks for answer , that's it

<environment-definition>

    <environment-factory>
      <!-- Description: Implementation of the BlobStrategy interface which will be used to store Blobs. -->
      <object name='blob-strategy' class='org.ow2.bonita.type.lob.BlobStrategyBlob' />

      <!-- Description: Implementation of the LobCreator interface which will be used to store Clobs. -->
      <object name='clob-strategy' class='org.ow2.bonita.type.lob.ClobStrategyChopped' />

      <!-- Description: Service which executes commands -->
      <command-service name='command-service'>
        <retry-interceptor retries='5' delay='50' delay-factor='10'/>
        <environment-interceptor />
        <standard-transaction-interceptor />
      </command-service>

      <!-- Description: Service which executes events -->
      <event-executor idle-min='50' idle='10000' threads='3' auto-start='true' command-service='command-service'/>

      <!-- Description: List of services called when an instance is finished. -->
      <chainer name='finished-instance-handler'>
        <!-- Description:  -->
        <object class='org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler' />
      </chainer>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita core. -->
      <hibernate-configuration name='hibernate-configuration:core' >
        <properties file='C:\Tomcat_6026\conf\hibernate-core.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.core.cache.xml' usage='read-write' />
      </hibernate-configuration>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita history. -->
      <hibernate-configuration name='hibernate-configuration:history' >
        <properties file='C:\Tomcat_6026\conf\hibernate-history.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.history.cache.xml' usage='nonstrict-read-write' />
      </hibernate-configuration>

      <!-- Description: Hibernate session factory used by hibernate session factory for Bonita core.. -->
      <hibernate-session-factory name='hibernate-session-factory:core' configuration='hibernate-configuration:core' init='eager'/>

      <!-- Description: Hibernate session factory used by hibernate session factory for Bonita history.. -->
      <hibernate-session-factory name='hibernate-session-factory:history' configuration='hibernate-configuration:history' init='eager'/>

      <!-- Description: Implementation of the large data repository. -->
      <large-data-repository name='large-data-repository' class='org.ow2.bonita.services.impl.FileLargeDataRepository'>
        <arg><string value='property:java.io.tmpdir' /></arg>
      </large-data-repository>

      <!-- Description: Implementation of the LobCreator interface which will be used to create SQL Blobs, Clobs. -->
      <object name='lob-creator' class='org.ow2.bonita.services.impl.HibernateLobCreator' />

      <!-- Description: Service used to find the user logged in. -->
      <object name='security' class='org.ow2.bonita.facade.AutoDetectSecurityContext' />

      <!-- Description: Mapping from java variable to database type -->
      <variable-types resource='bonita.type.resolver.xml' />

      <!-- Description: List of services called when an process is undeployed. -->
      <chainer name='undeployed-process-handler'>
        <!-- Description:  -->
        <object class='org.ow2.bonita.services.handlers.impl.ArchiveUndeployedProcessHandler' />
      </chainer>

    </environment-factory>

    <environment>
      <!-- Description: DB Implementation of the history. This implementation is full conformant with the spec (but not optimized). -->
      <!--
      <history name='history' class='org.ow2.bonita.services.impl.DbHistory'/>
       -->

      <!-- Description: Optimized DB Implementation of the history. This implementation contains optimized methods. For example, a call to getUserTasks(final String userId, final ActivityState taskState)  looks in DB only if the state is an expected one in History (FINISHED is one, READY is not...) -->
      <history name='history' class='org.ow2.bonita.services.impl.OptimizedDbHistory'>
        <arg><string value='bonita-session:history' /></arg>
      </history>

      <!-- Description: List of archivers. -->
      <chainer name='archiver'>
        <!-- Description: Archiver which writes archived data to logs. -->
        <archiver class='org.ow2.bonita.services.impl.LoggerArchiver' />
        <!-- Description: Reference to the history -->
        <ref object='history' />
      </chainer>

      <!-- Description: Implementation of the authentication service. -->
      <authentication-service name='authentication-service' class='org.ow2.bonita.services.impl.DbAuthentication'>
        <arg><string value='bonita-session:core' /></arg>
      </authentication-service>

      <!-- Description: Querier used in hibernate session name for Bonita core.. -->
      <db-session name='bonita-session:core' session='hibernate-session:core'/>

      <!-- Description: Querier used in hibernate session name for Bonita history.. -->
      <db-session name='bonita-session:history' session='hibernate-session:history'/>

      <!-- Description: Implementation of the Event Service. -->
      <event-service name='event-service' class='org.ow2.bonita.services.impl.DbThreadEventService'> 
        <arg><string value='bonita-session:core' /></arg>
      </event-service>

      <!-- Description: Hibernate session used by hibernate session for Bonita core.. -->
      <hibernate-session name='hibernate-session:core' factory='hibernate-session-factory:core' />

      <!-- Description: Hibernate session used by hibernate session for Bonita history.. -->
      <hibernate-session name='hibernate-session:history' factory='hibernate-session-factory:history' />

      <!-- Description: Implementation of the identity service. -->
      <identity-service name='identity-service' class='org.ow2.bonita.services.impl.DbIdentity'>
        <arg><string value='bonita-session:core' /></arg>
      </identity-service>

      <!-- Description: Implementation of the journal. -->
      <journal name='journal' class='org.ow2.bonita.services.impl.DbJournal'> 
        <arg><string value='bonita-session:core' /></arg>
      </journal>

      <!-- Description: Implementation of the privilege service. -->
      <privilege-service name='privilege-service' class='org.ow2.bonita.services.impl.DbPrivilegeService'>
        <arg><string value='bonita-session:core' /></arg>
      </privilege-service>

      <!-- Description: List of Queriers to use. -->
      <queryApi name='queryList'>
        <!-- Description: Reference to the journal -->
        <ref object='journal' />
        <!-- Description: Reference to the history -->
        <ref object='history' />
      </queryApi>

      <!-- Description: List of recorders. -->
      <chainer name='recorder'>
        <!-- Description: Recorder which writes recorded data to logs. -->
        <recorder class='org.ow2.bonita.services.impl.LoggerRecorder' />
        <!-- Description: Reference to the journal -->
        <ref object='journal' />
      </chainer>

      <!-- Description: Implementation of the repository. -->
      <repository class='org.ow2.bonita.services.impl.DbRepository'>
        <arg><string value='bonita-session:core' /></arg>
      </repository>

      <!-- Description: Db Transaction. -->
      <object name='transaction' class='org.ow2.bonita.runtime.tx.StandardTransaction' />

      <!-- Description: Implementation of the UUID Service. -->
      <uuid-service name='uuid-service' class='org.ow2.bonita.services.impl.DbUUIDService'> 
        <arg><string value='bonita-session:core' /></arg>
      </uuid-service>

      <!-- Description: Implementation of the Web Service. -->
      <web-service name='web-service' class='org.ow2.bonita.services.impl.DbWebService'> 
        <arg><string value='bonita-session:core' /></arg>
      </web-service>

    </environment>

  </environment-definition>

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Gents, thanks for the info. very useful.

I was trying this out on Bonita 5.0 and when exporting the process i could not find the following option " 
- Click on checkbox to select 'Export UserXP' and then 'All UserXP'
  - Click on checkbox to select 'Export Runtime'
  - Click on checkbox to select 'Extract selected War libraries outside......'"

I have exported the application but when i reach the point - "Create and initialise the databases" my build fails. I am asuming that the issue is with above option. please advice.

Regards
Joe

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi eprint,
I get the same error as you: entering 'admin' and 'bpm', GIVES ME 'Unable to login. Check your username and password.' relating to the topic http://www.bonitasoft.org/forum/viewtopic.php?id=2675
Can you please tell me what you have exactly done to solve this issue???? It's really urgent and important for my company. Thanks a lot!!!!

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Can you post the configuration files (hybernation and environment) ?  Let me have a look.
Meanwhile, if you have installed MySQL administrator also, check entries for usernames in 'bn_user' table of 'bonita_core' database.

Rajesh Karunakaran,
New Delhi, India.
HP: 91-93505-95711

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi eprint,
I want to tell you that I have made all the configuration in this excellent tutorial . In fact, My process was done in the BOS 5.0.1 and in order to do exactly what you did in your configuration, I have exported my process in 5.1.1 but while deploying my process in 5.1.1 there was lot of errors but I can easily deploy my process witout error in 5.0.1.
I give you below the C:/Tomcat/conf/bonita-envirenement.xml

<environment-definition>

    <environment-factory>
      <!-- Description: Implementation of the BlobStrategy interface which will be used to store Blobs. -->
      <object name='blob-strategy' class='org.ow2.bonita.type.lob.BlobStrategyBlob' />

      <!-- Description: Implementation of the LobCreator interface which will be used to store Clobs. -->
      <object name='clob-strategy' class='org.ow2.bonita.type.lob.ClobStrategyChopped' />

      <!-- Description: Service which executes commands -->
      <command-service name='command-service'>
        <retry-interceptor retries='5' delay='50' delay-factor='10'/>
        <environment-interceptor />
        <standard-transaction-interceptor />
      </command-service>

      <!-- Description: Service which executes events -->
      <event-executor idle-min='50' idle='10000' threads='3' auto-start='true' command-service='command-service'/>

      <!-- Description: List of services called when an instance is finished. -->
      <chainer name='finished-instance-handler'>
        <!-- Description:  -->
        <object class='org.ow2.bonita.services.handlers.impl.ArchiveFinishedInstanceHandler' />
      </chainer>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita core. -->
      <hibernate-configuration name='hibernate-configuration:core' >
        <properties file='C:\Tomcat\conf\hibernate-core.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.core.cache.xml' usage='read-write' />
      </hibernate-configuration>

      <!-- Description: Configuration of the Hibernate session factory used by Bonita history. -->
      <hibernate-configuration name='hibernate-configuration:history' >
        <properties file='C:\Tomcat\conf\hibernate-history.properties' />
        <mappings resource='bonita.mappings.hbm.xml' />
        <cache-configuration resource='bonita.history.cache.xml' usage='nonstrict-read-write' />
      </hibernate-configuration>

      <!-- Description: Hibernate session factory used by hibernate session factory for Bonita core.. -->
      <hibernate-session-factory name='hibernate-session-factory:core' configuration='hibernate-configuration:core' init='eager'/>

      <!-- Description: Hibernate session factory used by hibernate session factory for Bonita history.. -->
      <hibernate-session-factory name='hibernate-session-factory:history' configuration='hibernate-configuration:history' init='eager'/>

      <!-- Description: Implementation of the large data repository. -->
      <large-data-repository name='large-data-repository' class='org.ow2.bonita.services.impl.FileLargeDataRepository'>
        <arg><string value='property:java.io.tmpdir' /></arg>
      </large-data-repository>

      <!-- Description: Implementation of the LobCreator interface which will be used to create SQL Blobs, Clobs. -->
      <object name='lob-creator' class='org.ow2.bonita.services.impl.HibernateLobCreator' />

      <!-- Description: Service used to find the user logged in. -->
      <object name='security' class='org.ow2.bonita.facade.AutoDetectSecurityContext' />

      <!-- Description: Mapping from java variable to database type -->
      <variable-types resource='bonita.type.resolver.xml' />

      <!-- Description: List of services called when an process is undeployed. -->
      <chainer name='undeployed-process-handler'>
        <!-- Description:  -->
        <object class='org.ow2.bonita.services.handlers.impl.ArchiveUndeployedProcessHandler' />
      </chainer>

    </environment-factory>

    <environment>
      <!-- Description: DB Implementation of the history. This implementation is full conformant with the spec (but not optimized). -->
      <!--
      <history name='history' class='org.ow2.bonita.services.impl.DbHistory'/>
       -->

      <!-- Description: Optimized DB Implementation of the history. This implementation contains optimized methods. For example, a call to getUserTasks(final String userId, final ActivityState taskState)  looks in DB only if the state is an expected one in History (FINISHED is one, READY is not...) -->
      <history name='history' class='org.ow2.bonita.services.impl.OptimizedDbHistory'>
        <arg><string value='bonita-session:history' /></arg>
      </history>

      <!-- Description: List of archivers. -->
      <chainer name='archiver'>
        <!-- Description: Archiver which writes archived data to logs. -->
        <archiver class='org.ow2.bonita.services.impl.LoggerArchiver' />
        <!-- Description: Reference to the history -->
        <ref object='history' />
      </chainer>

      <!-- Description: Implementation of the authentication service. -->
<authentication-service name='authentication-service' class='org.ow2.bonita.services.AuthenticationService '>

        <arg><string value='bonita-session:core' /></arg>
      </authentication-service>

      <!-- Description: Querier used in hibernate session name for Bonita core.. -->
      <db-session name='bonita-session:core' session='hibernate-session:core'/>

      <!-- Description: Querier used in hibernate session name for Bonita history.. -->
      <db-session name='bonita-session:history' session='hibernate-session:history'/>

      <!-- Description: Implementation of the Event Service. -->
      <event-service name='event-service' class='org.ow2.bonita.services.impl.DbThreadEventService'> 
        <arg><string value='bonita-session:core' /></arg>
      </event-service>

      <!-- Description: Hibernate session used by hibernate session for Bonita core.. -->
      <hibernate-session name='hibernate-session:core' factory='hibernate-session-factory:core' />

      <!-- Description: Hibernate session used by hibernate session for Bonita history.. -->
      <hibernate-session name='hibernate-session:history' factory='hibernate-session-factory:history' />

      <!-- Description: Implementation of the identity service. -->
      <identity-service name='identity-service' class='org.ow2.bonita.services.impl.DbIdentity'>
        <arg><string value='bonita-session:core' /></arg>
      </identity-service>

      <!-- Description: Implementation of the journal. -->
      <journal name='journal' class='org.ow2.bonita.services.impl.DbJournal'> 
        <arg><string value='bonita-session:core' /></arg>
      </journal>

      <!-- Description: Implementation of the privilege service. -->
      <privilege-service name='privilege-service' class='org.ow2.bonita.services.impl.DbPrivilegeService'>
        <arg><string value='bonita-session:core' /></arg>
      </privilege-service>

      <!-- Description: List of Queriers to use. -->
      <queryApi name='queryList'>
        <!-- Description: Reference to the journal -->
        <ref object='journal' />
        <!-- Description: Reference to the history -->
        <ref object='history' />
      </queryApi>

      <!-- Description: List of recorders. -->
      <chainer name='recorder'>
        <!-- Description: Recorder which writes recorded data to logs. -->
        <recorder class='org.ow2.bonita.services.impl.LoggerRecorder' />
        <!-- Description: Reference to the journal -->
        <ref object='journal' />
      </chainer>

      <!-- Description: Implementation of the repository. -->
      <repository class='org.ow2.bonita.services.impl.DbRepository'>
        <arg><string value='bonita-session:core' /></arg>
      </repository>

      <!-- Description: Db Transaction. -->
      <object name='transaction' class='org.ow2.bonita.runtime.tx.StandardTransaction' />

      <!-- Description: Implementation of the UUID Service. -->
      <uuid-service name='uuid-service' class='org.ow2.bonita.services.impl.DbUUIDService'> 
        <arg><string value='bonita-session:core' /></arg>
      </uuid-service>

      <!-- Description: Implementation of the Web Service. -->
      <web-service name='web-service' class='org.ow2.bonita.services.impl.DbWebService'> 
        <arg><string value='bonita-session:core' /></arg>
      </web-service>

    </environment>

  </environment-definition>

The hibernate-history.properties in the C:/Tomcat/conf

 #HSQL
#dialect           org.hibernate.dialect.HSQLDialect
#driver class      org.hsqldb.jdbcDriver
#connection url    jdbc:hsqldb:file:${java.io.tmpdir}/bonita-db/bonita_history.db;shutdown=true

#POSTGRESQL
#dialect           org.hibernate.dialect.PostgreSQLDialect
#driver class      org.postgresql.Driver
#connection url    jdbc:postgresql://localhost:5433/bonita_history

#MYSQL
#dialect           org.hibernate.dialect.MySQLInnoDBDialect
#driver class      com.mysql.jdbc.Driver
#connection url    jdbc:mysql://localhost:3306/bonita_history

#H2
#dialect           org.hibernate.dialect.H2Dialect
#driver class      org.h2.Driver
#connection url    jdbc:h2:file:${java.io.tmpdir}/bonita-db/bonita_history.db;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE

#ORACLE
#dialect           org.hibernate.dialect.Oracle10gDialect
#driver class      oracle.jdbc.OracleDriver
#connection url    jdbc:oracle:thin:@localhost:1521:bonitahisto

hibernate.dialect                      org.hibernate.dialect.MySQLInnoDBDialect
hibernate.connection.driver_class      com.mysql.jdbc.Driver
hibernate.connection.url               jdbc:mysql://localhost:3306/bonita_history
hibernate.connection.shutdown                     true
hibernate.connection.username          bonitauser
hibernate.connection.password          bonitauser123
hibernate.cache.use_second_level_cache false
hibernate.cache.use_query_cache         false
hibernate.cache.provider_class         org.hibernate.cache.EhCacheProvider
hibernate.show_sql                     false
hibernate.format_sql                   false
hibernate.use_sql_comments             false

The hibernate-core.properties in the c:/Tomcat/conf

#HSQL
#dialect           org.hibernate.dialect.HSQLDialect
#driver class      org.hsqldb.jdbcDriver
#connection url    jdbc:hsqldb:file:${java.io.tmpdir}/bonita-db/bonita_core.db;shutdown=true

#POSTGRESQL
#dialect           org.hibernate.dialect.PostgreSQLDialect
#driver class      org.postgresql.Driver
#connection url    jdbc:postgresql://localhost:5433/bonita_core

#MYSQL
#dialect           org.hibernate.dialect.MySQLInnoDBDialect
#driver class      com.mysql.jdbc.Driver
#connection url    jdbc:mysql://localhost:3306/bonita_core

#H2
#dialect           org.hibernate.dialect.H2Dialect
#driver class      org.h2.Driver
#connection.url    jdbc:h2:file:${java.io.tmpdir}/bonita-db/bonita_core.db;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE

#ORACLE
#dialect           org.hibernate.dialect.Oracle10gDialect
#driver class      oracle.jdbc.OracleDriver
#connection url    jdbc:oracle:thin:@localhost:1521:bonitacore

hibernate.dialect                      org.hibernate.dialect.MySQLInnoDBDialect
hibernate.connection.driver_class      com.mysql.jdbc.Driver
hibernate.connection.url               jdbc:mysql://localhost:3306/bonita_core
hibernate.connection.shutdown                     true
hibernate.connection.username          bonitauser
hibernate.connection.password          bonitauser123
hibernate.cache.use_second_level_cache false
hibernate.cache.use_query_cache         false
hibernate.cache.provider_class         org.hibernate.cache.EhCacheProvider
hibernate.show_sql                     false
hibernate.format_sql                   false
hibernate.use_sql_comments             false
 

Waht can I do to solve my problem PLEASe !!
Thanks a lot!

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi Mariam,

The issue is with your process itself.... to resolve this.. you will have to import the process into 5.1.1 first, make sure that everything within the process works and then export with the steps in the document.

it should work fine

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi Mariam,

Please try what gfarag (Joe) suggests.   Please post your status so that I also can learn.

Dear gfarag (Joe),

Thank from my side also for your immediate post.

Rajesh Karunakaran,
New Delhi, India.
HP: 91-93505-95711

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

hi evrybody i tink my data base is emty , can anybody tel me how to intialise it because when itry to build it steel emty , ( there are no table )

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Hi. Thanks for your detail document. It serves as a good background for me to setup the deployment.

I solved a login problem similar to Mariam. My case was due to authentication error, which means the security option isn't properly set.

I figured out that my Tomcat uses the environment setting in "Configure Tomcat", instead of the standard Windows environment. There is no bat file to start up tomcat. Instead, it has an utility program to control start/shutdown and configure environment variables and Java options. So I need to add security options and bonita options there as well. Notice that it seems it expects path in Window-style, and without quotation marks.

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

I'm getting this error, when I try to login:

java.lang.ClassCastException: org.ow2.bonita.facade.impl.StandardInternalAPIAccessorImpl cannot be cast to org.ow2.bonita.facade.internal.InternalAPIAccessor
    org.ow2.bonita.facade.impl.StandardInternalAPIAccessorFactory.getStandardInternalAPIAccessor(StandardInternalAPIAccessorFactory.java:77)
    org.ow2.bonita.util.AccessorUtil.resetContext(AccessorUtil.java:100)
    org.ow2.bonita.util.AccessorUtil$1.initialValue(AccessorUtil.java:81)
    org.ow2.bonita.util.AccessorUtil$1.initialValue(AccessorUtil.java:80)
    java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
    java.lang.ThreadLocal.get(ThreadLocal.java:131)
    org.ow2.bonita.util.AccessorUtil.getAPIAccessor(AccessorUtil.java:145)
    org.ow2.bonita.util.AccessorUtil.getAPIAccessor(AccessorUtil.java:161)
    org.ow2.bonita.util.AccessorUtil.getWebAPI(AccessorUtil.java:231)
    org.bonitasoft.console.security.server.api.impl.CredentialsEncryptionAPIImpl.generateTemporaryToken(CredentialsEncryptionAPIImpl.java:155)
    org.bonitasoft.console.security.server.CredentialsEncryptionServlet.doPost(CredentialsEncryptionServlet.java:101)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Any ideas ??? Need help, don't know much about tomcat, just followed the tutorial.

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

bob.abd:
I had the same problem with the database. My issue was resolved when I made the changes pointed out by Rajesh to the conf/hibernate-core.properties and conf/hibernate-history.properties. this is the conf folder that is created under the tree where you have exploded bonita.zip.

PROBLEM DESCRIPTION:
Unfortunately, from that point I only progressed as far as oligenhex did. I am using BOM 5.2. I suspect that some other setting in one of the conf files in the exploded bonita.zip might be the cause of this issue. The stacktrace is exactly as oligenhex's so am not posting it here to keep the post readable. To be clear, the ClassCastException is thrown upon clicking submit on the Login Page of UserXP or any of the other WAR's deployed on the tomcat server.

I did search through the forums, but I was unable to find any other post with a similar problem so am at a loss on how to proceed.
Any help will be greatly appreciated.

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

I was able to install with BOS 5.1.0, with the most recent version 5.2 it doesn't work. Any ideas? I would like to test this on the most recent version.

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Great Work! But is the way you described to install bonita the standard installation or the enterprise installation.
In the user and refernce guide these two methods are mentioned.

thanks in advance.

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

lthanks eppards it woks

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

In my windows XP tomcat 6 install there is no startup.bat there is a .exe that is run and a configuration app that is accessable.

in the java tab, java options box of the tomcat configuration utility I put
-Djava.util.logging.config.file=C:\Tomcat6\conf\logging.properties
-Dorg.ow2.bonita.environment=C:\Tomcat6\conf\bonita.environment.xml
-Djava.security.auth.login.config=C:\Tomcat6\conf\jaas-standard.cfg

and I am able to run Bonita XP and my process but the install will not use the mysql instance it always reverts back to the H2 database in C:\Tomcat6\temp\bonita-db

i have verified that the information in bonita.environment.xml and core and history files are correct and was able to use them to initailize the database as per these instructions.

Any help would be appreciated as I cannot find anything to help me see what Bontia/Tomcat are doing in regards to the database connection.

Windows XP, Tomcat 6, Bonita 5.2.3

-Brad
Windows2003, Tomcat 6

24

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

Please verify that the bonita environment file well exists because you refer to bonita.environment.xml and the default name of that file is bonita-environment.xml

Re: Bonita in Win2003/Tomcat6/MySQL5.1: Full guide (Modified)

When I try to login  the  next page I got  is this ...............any ideas what could be wrong

org.ow2.bonita.util.BonitaRuntimeException: Bonita Error: bp_Pa_1
errors during parsing of environment:
  error : couldn't interpret the dom model : org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver

    org.ow2.bonita.util.Misc.showProblems(Misc.java:1851)
    org.ow2.bonita.env.BonitaEnvironmentParser.parseEnvironmentFactoryFromXmlString(BonitaEnvironmentParser.java:88)
    org.ow2.bonita.env.GlobalEnvironmentFactory.getEnvironmentFactory(GlobalEnvironmentFactory.java:113)
    org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:115)
    $Proxy0.generateTemporaryToken(Unknown Source)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(ClientAPIInterceptor.java:69)
    $Proxy1.generateTemporaryToken(Unknown Source)
    org.bonitasoft.console.security.server.api.impl.CredentialsEncryptionAPIImpl.generateTemporaryToken(CredentialsEncryptionAPIImpl.java:156)
    org.bonitasoft.console.security.server.CredentialsEncryptionServlet.doPost(CredentialsEncryptionServlet.java:101)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)