Boot of Tomcat in BonitaBPMCommunity-7.3.2-Tomcat-7.0.67 don't start

Hi,

I use BonitaBPMCommunity-7.3.2-Tomcat-7.0.67 and I have configured the engine with dbms postgres following all the steps in the documentation “Database configuration”.

When I run the file bonita-start.bat there are this messages

C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>bonita-start.bat
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Set some JVM system prop
erties required by Bonita BPM
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set PLATFORM_SETUP=“-Dorg.bo
nitasoft.platform.setup.folder=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.
67\setup”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set H2_DATABASE_DIR=“-Dorg.b
onitasoft.h2.database.dir=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\da
tabase”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set INCIDENT_LOG_DIR=“-Dorg.
bonitasoft.engine.incident.folder=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7
.0.67\logs”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Define the RDMBS vendor
use by Bonita Engine to store data. Valid values are: h2, postgres, sqlserver, oracle, mysql.
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set DB_OPTS=“-Dsysprop.bonit
a.db.vendor=postgres”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Define the RDMBS vendor
use by Bonita Engine to store Business Data. Valid values are: h2, postgres, sql
server, oracle, mysql.
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem If you use different DB
engines by tenants, please update directly bonita-tenant-community-custom.proper
ties
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set BDM_DB_OPTS=“-Dsysprop.b
onita.bdm.db.vendor=postgres”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Bitronix (JTA service ad
ded to Tomcat and required by Bonita Engine for transaction management)
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set BTM_OPTS=“-Dbtm.root=C:
BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67” “-Dbitronix.tm.configuration=C
:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\conf\bitronix-config.properties”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Optional JAAS configurat
ion. Usually used when delegating authentication to LDAP / Active Directory server
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem set SECURITY_OPTS=“-Djav
a.security.auth.login.config=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67
\conf\jaas-standard.cfg”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Pass the JVM system prop
erties to Tomcat JVM using CATALINA_OPTS variable
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set CATALINA_OPTS= “-Dorg.bo
nitasoft.platform.setup.folder=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.
67\setup” “-Dorg.bonitasoft.h2.database.dir=C:\BonitaBPM\BonitaBPMCommunity-7.3.
2-Tomcat-7.0.67\database” “-Dsysprop.bonita.db.vendor=postgres” “-Dsysprop.bonit
a.bdm.db.vendor=postgres” “-Dbtm.root=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomc
at-7.0.67” “-Dbitronix.tm.configuration=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-To
mcat-7.0.67\conf\bitronix-config.properties” “-Dorg.bonitasoft.engine.incident.f
older=C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\logs” -Dfile.encoding=
UTF-8 -Xshare:auto -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOf
MemoryError
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>set CATALINA_PID=C:\BonitaBP
M\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\catalina.pid
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>goto setenvDone
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>rem Get standard Java enviro
nment variables
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>if exist “C:\BonitaBPM\Bonit
aBPMCommunity-7.3.2-Tomcat-7.0.67\bin\setclasspath.bat” goto okSetclasspath
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>call “C:\BonitaBPM\BonitaBPM
Community-7.3.2-Tomcat-7.0.67\bin\setclasspath.bat” start
Using CATALINA_BASE: “C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67”
Using CATALINA_HOME: “C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67”
Using CATALINA_TMPDIR: “C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\temp”
Using JRE_HOME: “C:\Program Files\Java\jre7”
Using CLASSPATH: “C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\bin
bootstrap.jar;C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\bin\tomcat-juli.jar”
C:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67>

In the folder c:\BonitaBPM\BonitaBPMCommunity-7.3.2-Tomcat-7.0.67\logs there are
bonita.2016-09-16.log
catalina.2016-09-16.log
host-manager.2016-09-16.log
localhost.2016-09-16.log
manager.2016-09-16.log

almost all with dimension 0, but only
in catalina.2016-09-16.log there is the follow message

2016-09-16 11:57:15.726 +0200 INFORMAZIONI: org.apache.catalina.core.AprLifecycleListener The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Sony\VAIO Improvement;C:\Program Files (x86)\Sony\VAIO Startup Setting Tool;C:\Program Files (x86)\Skype\Phone;C:\Program Files\TortoiseSVN\bin;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;c:\Program Files\Microsoft SQL Server\110\Tools\Binn;c:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;C:\Program Files\MySQL\MySQL Utilities 1.6;C:\Program Files\Java\jdk1.7.0_79\bin;.
2016-09-16 11:57:15.883 +0200 INFORMAZIONI: org.apache.coyote.http11.Http11Protocol Initializing ProtocolHandler [“http-bio-8080”]
2016-09-16 11:57:15.898 +0200 INFORMAZIONI: org.apache.coyote.ajp.AjpProtocol Initializing ProtocolHandler [“ajp-bio-8009”]
2016-09-16 11:57:15.898 +0200 INFORMAZIONI: org.apache.catalina.startup.Catalina Initialization processed in 668 ms

The service http://localhost:8080/ doesn’t start and I don’t have any instruction of the error.
Help me.
I try to promove bonita in our production (with licency subsequently), but if It doesn’t work …I don’t hope it.

Thanks.

When changing the database you MUST NOT start the service before changing the parameters. This is vital.

I can assure you it works it just takes a lot of patience to get it right.

I wrote something up recently on how to do this correctly, and have submitted a bug report because it’s not very clear at all.

  1. In postgresql create a user you will use for bonitasoft databases
  2. Create the two databases manually

bonita_journal for the Bonita Engine, and
bonita_business_data for the Business Data

  1. Run setup.bat

http://documentation.bonitasoft.com/?page=BonitaBPM_platform_setup

  1. Then configure the various xml files etc.

regards
Seán

PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply.

Hello,

Just to confirm, is it the documentation you used? http://documentation.bonitasoft.com/?page=database-configuration

Do you get any information in the bonita.2016-09-16.log file? If there is an error, it might be there.

Also did you validate that you manage to start the server right after download? By default, the bundle Tomcat will use a H2 database. If it works, we can focus on the Database configuration part, if it doesn’t maybe something else is going on.

Finally, if you consider getting a Subscription version, you should contact Bonitasoft: http://www.bonitasoft.com/contact-us They will be happy to assist you.

Cheers

Thanks you for the answers.
I resolved friday reconfiguring the various xml files and I resolved the problem.

Thanks.
Lina.