Can't retrieve default tenant id: org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can't retrieve default tenant id

I am creating for first time a Bonita environment:
Is Ubuntu with JBoss bundle with postgres.
I have setup the sandlone.xml and create the correct structure for module for postgres.
But when i start i get the following error, can you help me, please :

sudo bin/standalone.sh =========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/BonitaJBoss

JAVA: java

JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dbonita.home=‘/opt/BonitaJBoss/bonita’ -Dfile.encoding=UTF-8

=========================================================================

06:59:37,663 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
06:59:37,799 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
06:59:37,835 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final “Brontes” starting
06:59:38,442 INFO [org.xnio] XNIO Version 3.0.3.GA
06:59:38,450 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
06:59:38,454 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
06:59:38,470 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
06:59:38,505 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
06:59:38,507 INFO [org.jboss.as.configadmin] (ServerService Thread Pool – 26) JBAS016200: Activating ConfigAdmin Subsystem
06:59:38,585 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 31) JBAS010280: Activating Infinispan subsystem.
06:59:38,606 INFO [org.jboss.as.osgi] (ServerService Thread Pool – 39) JBAS011940: Activating OSGi Subsystem
06:59:38,615 INFO [org.jboss.as.naming] (ServerService Thread Pool – 38) JBAS011800: Activating Naming Subsystem
06:59:38,630 INFO [org.jboss.as.security] (ServerService Thread Pool – 44) JBAS013101: Activating Security Subsystem
06:59:38,641 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool – 27) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.4)
06:59:38,659 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final
06:59:38,672 INFO [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
06:59:38,694 INFO [org.jboss.as.webservices] (ServerService Thread Pool – 48) JBAS015537: Activating WebServices Extension
06:59:38,716 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
06:59:38,772 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
06:59:38,872 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-8) JBoss Web Services - Stack CXF Server 4.0.2.GA
06:59:38,923 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Starting Coyote HTTP/1.1 on http–0.0.0.0-8080
06:59:39,157 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /0.0.0.0:9999
06:59:39,158 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /0.0.0.0:4447
06:59:39,170 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory /opt/BonitaJBoss/standalone/deployments
06:59:39,176 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/bonitaSequenceManagerDS]
06:59:39,178 WARN [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015002: Deployment of ‘h2.sar’ requested, but the deployment is not present
06:59:39,188 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/bonitaDS]
06:59:39,263 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of “bonita-all-in-one-7.0.2.ear”
06:59:41,199 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb-api.jar in “/content/bonita-all-in-one-7.0.2.ear/lib/jaxb-xjc-2.2.7.jar” does not point to a valid jar for a Class-Path reference.
06:59:41,200 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb-core.jar in “/content/bonita-all-in-one-7.0.2.ear/lib/jaxb-xjc-2.2.7.jar” does not point to a valid jar for a Class-Path reference.
06:59:41,201 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb-api.jar in “/content/bonita-all-in-one-7.0.2.ear/lib/jaxb-core-2.2.7.jar” does not point to a valid jar for a Class-Path reference.
06:59:41,208 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of “bonita-engine-ejb.jar”
06:59:41,210 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of “bonita.war”
06:59:41,889 WARN [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name ‘org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer’ for service type ‘org.xmlpull.v1.XmlPullParserFactory’
06:59:42,101 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-8) JNDI bindings for session bean named serverAPIBean in deployment unit subdeployment “bonita-engine-ejb.jar” of deployment “bonita-all-in-one-7.0.2.ear” are as follows:

java:global/bonita-ear/bonita-ejb/serverAPIBean!org.bonitasoft.engine.api.internal.ServerAPI
java:app/bonita-ejb/serverAPIBean!org.bonitasoft.engine.api.internal.ServerAPI
java:module/serverAPIBean!org.bonitasoft.engine.api.internal.ServerAPI
java:jboss/exported/bonita-ear/bonita-ejb/serverAPIBean!org.bonitasoft.engine.api.internal.ServerAPI
java:global/bonita-ear/bonita-ejb/serverAPIBean
java:app/bonita-ejb/serverAPIBean
java:module/serverAPIBean

06:59:42,452 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Initializing Bonita Engine…
06:59:42,452 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Initializing Spring context…
06:59:42,545 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-5) Loading XML bean definitions from file [/opt/BonitaJBoss/bonita/engine-server/work/platform-init/bonita-platform-init-community.xml]
06:59:42,694 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-5) Loading XML bean definitions from file [/opt/BonitaJBoss/bonita/engine-server/conf/platform-init/bonita-platform-init-custom.xml]
06:59:42,728 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-5) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5b44142d: defining beans [sessionAccessor]; root of factory hierarchy
06:59:42,747 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-5) Loading XML bean definitions from file [/opt/BonitaJBoss/bonita/engine-server/work/platform/bonita-platform-community.xml]
06:59:42,858 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-5) Loading XML bean definitions from file [/opt/BonitaJBoss/bonita/engine-server/conf/platform/bonita-platform-custom.xml]
06:59:42,926 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-5) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@d214843: defining beans [synchroService,quartzProperties,schedulerExecutor,jobService,scheduler,servicesResolver,quartzSchedulerFactory,platformSessionProvider,platformSessionService,platformLoginService,platformCommandService,platformAuthenticationService,sqlFolders,communitySqlFolders,platformService,platformProperties,tenantRestartHandlers,commonTenantRestartHandlers,communityTenantRestartHandlers,nodeConfiguration,jobLogCreator,jdbcJobListener,loggerJobListener,schedulerServiceRestartHandler,platformTechnicalLoggerService,lockService,incidentService,bonitaSequenceManagerDSJNDI,platformDependencyService,parentClassLoaderResolver,classLoaderService,platformCacheService,defaultPlatformCacheConfiguration,platformCacheConfigurations,communityPlatformCacheConfigurations,synchroServiceCacheConfig,platformCacheConfig,broadcastService,platformRecorderSync,tenantRecorderSyncForPlatform,transactionExecutor,platformEventService,sequenceMappingProvider,org.bonitasoft.engine.sequence.SequenceMapping#0,org.bonitasoft.engine.sequence.SequenceMapping#1,org.bonitasoft.engine.sequence.SequenceMapping#2,org.bonitasoft.engine.sequence.SequenceMapping#3,org.bonitasoft.engine.sequence.SequenceMapping#4,org.bonitasoft.engine.sequence.SequenceMapping#5,org.bonitasoft.engine.sequence.SequenceMapping#6,org.bonitasoft.engine.sequence.SequenceMapping#7,org.bonitasoft.engine.sequence.SequenceMapping#8,org.bonitasoft.engine.sequence.SequenceMapping#9,org.bonitasoft.engine.sequence.SequenceMapping#10,org.bonitasoft.engine.sequence.SequenceMapping#11,org.bonitasoft.engine.sequence.SequenceMapping#12,org.bonitasoft.engine.sequence.SequenceMapping#13,org.bonitasoft.engine.sequence.SequenceMapping#14,org.bonitasoft.engine.sequence.SequenceMapping#15,org.bonitasoft.engine.sequence.SequenceMapping#16,org.bonitasoft.engine.sequence.SequenceMapping#17,org.bonitasoft.engine.sequence.SequenceMapping#18,org.bonitasoft.engine.sequence.SequenceMapping#19,org.bonitasoft.engine.sequence.SequenceMapping#20,org.bonitasoft.engine.sequence.SequenceMapping#21,org.bonitasoft.engine.sequence.SequenceMapping#22,org.bonitasoft.engine.sequence.SequenceMapping#23,org.bonitasoft.engine.sequence.SequenceMapping#24,org.bonitasoft.engine.sequence.SequenceMapping#25,org.bonitasoft.engine.sequence.SequenceMapping#26,org.bonitasoft.engine.sequence.SequenceMapping#27,org.bonitasoft.engine.sequence.SequenceMapping#28,org.bonitasoft.engine.sequence.SequenceMapping#29,org.bonitasoft.engine.sequence.SequenceMapping#30,org.bonitasoft.engine.sequence.SequenceMapping#31,org.bonitasoft.engine.sequence.SequenceMapping#32,org.bonitasoft.engine.sequence.SequenceMapping#33,org.bonitasoft.engine.sequence.SequenceMapping#34,org.bonitasoft.engine.sequence.SequenceMapping#35,org.bonitasoft.engine.sequence.SequenceMapping#36,org.bonitasoft.engine.sequence.SequenceMapping#37,org.bonitasoft.engine.sequence.SequenceMapping#38,org.bonitasoft.engine.sequence.SequenceMapping#39,org.bonitasoft.engine.sequence.SequenceMapping#40,org.bonitasoft.engine.sequence.SequenceMapping#41,org.bonitasoft.engine.sequence.SequenceMapping#42,org.bonitasoft.engine.sequence.SequenceMapping#43,org.bonitasoft.engine.sequence.SequenceMapping#44,org.bonitasoft.engine.sequence.SequenceMapping#45,org.bonitasoft.engine.sequence.SequenceMapping#46,org.bonitasoft.engine.sequence.SequenceMapping#47,org.bonitasoft.engine.sequence.SequenceMapping#48,org.bonitasoft.engine.sequence.SequenceMapping#49,org.bonitasoft.engine.sequence.SequenceMapping#50,org.bonitasoft.engine.sequence.SequenceMapping#51,org.bonitasoft.engine.sequence.SequenceMapping#52,org.bonitasoft.engine.sequence.SequenceMapping#53,org.bonitasoft.engine.sequence.SequenceMapping#54,org.bonitasoft.engine.sequence.SequenceMapping#55,org.bonitasoft.engine.sequence.SequenceMapping#56,org.bonitasoft.engine.sequence.SequenceMapping#57,org.bonitasoft.engine.sequence.SequenceMapping#58,org.bonitasoft.engine.sequence.SequenceMapping#59,org.bonitasoft.engine.sequence.SequenceMapping#60,sequenceManager,transactionManager,transactionService,communityHbmResourcesProvider,extraPlatformHibernateProperties,extraTenantHibernateProperties,platformPersistenceService,defaultPlatformWordSearchExclusionMappings,platformWordSearchExclusionMappings,persistenceService,defaultTenantWordSearchExclusionMappings,tenantWordSearchExclusionMappings,hbmConfigurationProviderProperties,communityHbmConfigurationProviderProperties,interfaceToClassMapping,communityInterfaceToClassMapping,mappingExclusions,hbmConfigurationProvider,hbmResourcesConfigurationProvider]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@5b44142d
06:59:46,288 WARN [org.hibernate.type.TypeFactory] (MSC service thread 1-5) HHH000233: Scoping types to session factory org.hibernate.internal.SessionFactoryImpl@26ae0874 after already scoped org.hibernate.internal.SessionFactoryImpl@6bad0b82
06:59:47,540 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Initializing platform…
06:59:47,541 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Creating platform…
06:59:47,588 INFO [stdout] (MSC service thread 1-5) Hibernate:
06:59:47,588 INFO [stdout] (MSC service thread 1-5) /* named HQL query getPlatform */ select
06:59:47,588 INFO [stdout] (MSC service thread 1-5) splatformi0_.id as id1_38_,
06:59:47,589 INFO [stdout] (MSC service thread 1-5) splatformi0_.created as created2_38_,
06:59:47,589 INFO [stdout] (MSC service thread 1-5) splatformi0_.createdBy as createdB3_38_,
06:59:47,589 INFO [stdout] (MSC service thread 1-5) splatformi0_.initialVersion as initialV4_38_,
06:59:47,590 INFO [stdout] (MSC service thread 1-5) splatformi0_.previousVersion as previous5_38_,
06:59:47,590 INFO [stdout] (MSC service thread 1-5) splatformi0_.version as version6_38_
06:59:47,590 INFO [stdout] (MSC service thread 1-5) from
06:59:47,591 INFO [stdout] (MSC service thread 1-5) platform splatformi0_ limit ?
06:59:47,614 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-5) SQL Error: 0, SQLState: 42P01
06:59:47,614 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-5) ERROR: relation “platform” does not exist
Position: 284
06:59:47,633 ERROR [org.bonitasoft.engine.platform.impl.PlatformServiceImpl] (MSC service thread 1-5) THREAD_ID=16 | HOSTNAME=ip-172-31-29-175.ec2.internal | Following SQL command failed: CREATE TABLE contract_data (
tenantid INT8 NOT NULL,
id INT8 NOT NULL,
kind VARCHAR(20) NOT NULL,
scopeId INT8 NOT NULL,
name VARCHAR(50) NOT NULL,
val BYTEA
)
06:59:47,634 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Platform is already initialized.: org.bonitasoft.engine.exception.CreationException: Platform Creation failed.
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.createPlatform(PlatformAPIImpl.java:145) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.createAndInitializePlatform(PlatformAPIImpl.java:186) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.PlatformTenantManager.createPlatform(PlatformTenantManager.java:42) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.EngineInitializer.initPlatform(EngineInitializer.java:140) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:93) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:42) [bonita-server-7.0.2.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: org.bonitasoft.engine.platform.exception.SPlatformCreationException: org.postgresql.util.PSQLException: ERROR: relation “contract_data” already exists
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.createTables(PlatformServiceImpl.java:179) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.createPlatform(PlatformAPIImpl.java:129) [bonita-server-7.0.2.jar:]
… 13 more
Caused by: org.postgresql.util.PSQLException: ERROR: relation “contract_data” already exists
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:406)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:398)
at org.jboss.jca.adapters.jdbc.WrappedStatement.execute(WrappedStatement.java:153)
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.doExecuteSQLThroughJDBC(PlatformServiceImpl.java:283) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.executeSQLResource(PlatformServiceImpl.java:258) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.executeSQLResources(PlatformServiceImpl.java:199) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.executeSQLResources(PlatformServiceImpl.java:189) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.platform.impl.PlatformServiceImpl.createTables(PlatformServiceImpl.java:175) [bonita-server-7.0.2.jar:]
… 14 more

06:59:47,643 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Starting platform…
06:59:47,643 INFO [stdout] (MSC service thread 1-5) Hibernate:
06:59:47,644 INFO [stdout] (MSC service thread 1-5) /* named HQL query getPlatform */ select
06:59:47,644 INFO [stdout] (MSC service thread 1-5) splatformi0_.id as id1_38_,
06:59:47,644 INFO [stdout] (MSC service thread 1-5) splatformi0_.created as created2_38_,
06:59:47,645 INFO [stdout] (MSC service thread 1-5) splatformi0_.createdBy as createdB3_38_,
06:59:47,645 INFO [stdout] (MSC service thread 1-5) splatformi0_.initialVersion as initialV4_38_,
06:59:47,645 INFO [stdout] (MSC service thread 1-5) splatformi0_.previousVersion as previous5_38_,
06:59:47,646 INFO [stdout] (MSC service thread 1-5) splatformi0_.version as version6_38_
06:59:47,646 INFO [stdout] (MSC service thread 1-5) from
06:59:47,646 INFO [stdout] (MSC service thread 1-5) platform splatformi0_ limit ?
06:59:47,647 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-5) SQL Error: 0, SQLState: 42P01
06:59:47,647 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-5) ERROR: relation “platform” does not exist
Position: 284
06:59:47,649 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Exception while initializing the engine: org.bonitasoft.engine.platform.PlatformNotFoundException: Can’t start or stop platform if it is not created
06:59:47,649 SEVERE [org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener] (MSC service thread 1-5) Error while initializing the Engine: org.bonitasoft.engine.platform.PlatformNotFoundException: Can’t start or stop platform if it is not created
at org.bonitasoft.engine.PlatformTenantManager.updatePlatform(PlatformTenantManager.java:50) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.PlatformTenantManager.startPlatform(PlatformTenantManager.java:60) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.EngineInitializer.startPlatform(EngineInitializer.java:147) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:101) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:42) [bonita-server-7.0.2.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

06:59:47,701 ERROR [stderr] (MSC service thread 1-5) Node not started. Method ‘org.bonitasoft.engine.api.LoginAPI.login’ cannot be called until node has been started (PlatformAPI.startNode()). Exact class: org.bonitasoft.engine.api.impl.LoginAPIImpl
06:59:47,702 SEVERE [org.bonitasoft.console.common.server.servlet.PlatformTenantListener] (MSC service thread 1-5) Error while initializing the default tenant: org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Method PlatformAPI.startNode() must be called previously.
at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:290) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIOutsideTransaction(ServerAPIImpl.java:283) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:276) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:131) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) [bonita-common-7.0.2.jar:]
at com.sun.proxy.$Proxy12.login(Unknown Source)
at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.initializeDefaultTenant(PlatformTenantListener.java:61) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.contextInitialized(PlatformTenantListener.java:44) [console-server-7.0.2.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

06:59:47,791 INFO [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /bonita
06:59:47,792 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://0.0.0.0:9990
06:59:47,795 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS 7.1.1.Final “Brontes” started in 10330ms - Started 471 of 556 services (80 services are passive or on-demand)
06:59:47,829 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed “bonita-all-in-one-7.0.2.ear”
07:00:00,121 ERROR [stderr] (http–0.0.0.0-8080-1) Node not started. Method ‘org.bonitasoft.engine.api.LoginAPI.login’ cannot be called until node has been started (PlatformAPI.startNode()). Exact class: org.bonitasoft.engine.api.impl.LoginAPIImpl
07:00:00,121 SEVERE [org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter] (http–0.0.0.0-8080-1) Can’t retrieve default tenant id: org.bonitasoft.console.common.server.utils.DefaultTenantIdException: Can’t retrieve default tenant id
at org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(TenantsManagementUtils.java:201) [console-common-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.TenantIdAccessor.getDefaultTenantId(TenantIdAccessor.java:52) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.TenantIdAccessor.ensureTenantId(TenantIdAccessor.java:46) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AutoLoginRule.doAuthorize(AutoLoginRule.java:45) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.isAuthorized(AuthenticationFilter.java:151) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.doAuthenticationFiltering(AuthenticationFilter.java:134) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:119) [console-server-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilter.java:103) [console-server-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.bonitasoft.console.common.server.login.filter.SecurityFilter.doFilter(SecurityFilter.java:59) [console-common-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.bonitasoft.console.common.server.login.filter.NoCacheFilter.doFilter(NoCacheFilter.java:53) [console-common-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Method PlatformAPI.startNode() must be called previously.
at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:290) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIOutsideTransaction(ServerAPIImpl.java:283) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:276) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:131) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) [bonita-common-7.0.2.jar:]
at com.sun.proxy.$Proxy12.login(Unknown Source)
at org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(TenantsManagementUtils.java:196) [console-common-7.0.2.jar:]
… 28 more

07:00:00,129 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/bonita].[homepage]] (http–0.0.0.0-8080-1) Servlet.service() for servlet homepage threw exception: org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Method PlatformAPI.startNode() must be called previously.
at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:290) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIOutsideTransaction(ServerAPIImpl.java:283) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:276) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:131) [bonita-server-7.0.2.jar:]
at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) [bonita-common-7.0.2.jar:]
at com.sun.proxy.$Proxy12.login(Unknown Source)
at org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(TenantsManagementUtils.java:196) [console-common-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.TenantIdAccessor.getDefaultTenantId(TenantIdAccessor.java:52) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.TenantIdAccessor.ensureTenantId(TenantIdAccessor.java:46) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AutoLoginRule.doAuthorize(AutoLoginRule.java:45) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.isAuthorized(AuthenticationFilter.java:151) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.doAuthenticationFiltering(AuthenticationFilter.java:134) [console-server-7.0.2.jar:]
at org.bonitasoft.console.common.server.login.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:119) [console-server-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilter.java:103) [console-server-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.bonitasoft.console.common.server.login.filter.SecurityFilter.doFilter(SecurityFilter.java:59) [console-common-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.bonitasoft.console.common.server.login.filter.NoCacheFilter.doFilter(NoCacheFilter.java:53) [console-common-7.0.2.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]

Hello Andre,

I had the same issue. I dropped all the tables in my bonita database and then re ran the jboss script again. It did help me to get rid of this error and my bpm portal is working fine. Thank you.