I am unable to get BonitaBPMCommunity version 6.2.3 to run on an Amazon EC2 instance under TomCat7. I have followed this tutorial: http://documentation.bonitasoft.com/ubuntu-openjdk-tomcat-mysql and modified it so I can install the software on Amazon Linux (use yum).
My initial error stated that I needed to set the bonita.home variable, even though I followed the tutorial and created the setenv.sh under /usr/share/tomcat7/bin. I also noticed that I did not see a catalina.sh file, which loads the setenv.sh file if I am not mistaken.
I finally gave up on setenv.sh and put my variables into /etc/tomcat7/tomcat7.conf. I added the following variables at the end of the file (as per the tutorial, except they are now in tomcat7.conf instead of setenv.sh).
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Define location of Bonita "home" folder
BONITA_HOME="-Dbonita.home=/opt/bonita/bonita_home-6.2.3"
# Bitronix (JTA for Tomcat) configuration
BTM_OPTS="-Dbtm.root=/opt/bonita/btm -Dbitronix.tm.configuration=/opt/bonita/btm/conf/bitronix-config.properties"
# Use mysql
DB_OPTS="-Dsysprop.bonita.db.vendor=mysql"
CATALINA_OPTS="${CATALINA_OPTS} ${BONITA_HOME} ${BTM_OPTS} -Dfile.encoding=UTF-8 -Xshare:auto -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError"
export CATALINA_OPTS
I am getting the following error when I go to http://myaddress:8080/bonita (and the catalina.out file looks very similar):
type Exception report
message org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can't retrieve default tenant id
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can't retrieve default tenant id org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilter.java:109)
root cause
org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can't retrieve default tenant id org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(TenantsManagementUtils.java:205) org.bonitasoft.console.common.server.login.TenantIdAccessor.getDefaultTenantId(TenantIdAccessor.java:52) org.bonitasoft.console.common.server.login.TenantIdAccessor.ensureTenantId(TenantIdAccessor.java:46) org.bonitasoft.console.common.server.login.filter.AutoLoginRule.doAuthorize(AutoLoginRule.java:31) org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.isAuthorized(AuthorizationFilter.java:86) org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doAuthorizationFiltering(AuthorizationFilter.java:68) org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:58) org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilter.java:103)
root cause
org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Method PlatformAPI.startNode() must be called previously. org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:215) org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:107) org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) com.sun.proxy.$Proxy4.login(Unknown Source) org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(TenantsManagementUtils.java:200) org.bonitasoft.console.common.server.login.TenantIdAccessor.getDefaultTenantId(TenantIdAccessor.java:52) org.bonitasoft.console.common.server.login.TenantIdAccessor.ensureTenantId(TenantIdAccessor.java:46) org.bonitasoft.console.common.server.login.filter.AutoLoginRule.doAuthorize(AutoLoginRule.java:31) org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.isAuthorized(AuthorizationFilter.java:86) org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doAuthorizationFiltering(AuthorizationFilter.java:68) org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:58) org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilter.java:103)