Hi all !
I tried to use Bonita v6.1.2 on JBoss and this is what I got so far : "org.bonitasoft.engine.platform.PlatformNotFoundException: Can't start or stop platform if it is not created". Funny thing is that the previous line (see below) proudly says "Creating platform ..." without notifying any issue.
12:13:01,784 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Creating platform... 12:13:02,150 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Starting platform... 12:13:02,151 GRAVE [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:53) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.PlatformTenantManager.startPlatform(PlatformTenantManager.java:63) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.EngineInitializer.startPlatform(EngineInitializer.java:121) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:86) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:29) [bonita-server-6.1.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31] 12:13:02,212 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())
If I set log level to DEBUG, nothing's getting clearer :
12:13:01,849 DEBUG [org.bonitasoft.engine.persistence.PlatformHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/dependency-platform/model/impl/db/h2-createTables.sql 12:13:01,885 DEBUG [org.bonitasoft.engine.persistence.PlatformHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/platform/command/model/impl/db/h2-createTables.sql 12:13:01,889 DEBUG [org.bonitasoft.engine.persistence.PlatformHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/platform/db/h2-createTables.sql 12:13:01,894 DEBUG [org.bonitasoft.engine.persistence.PlatformHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/scheduler/h2-createQuartzTables.sql 12:13:01,942 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/persistence/db/h2-createTables.sql 12:13:01,947 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/document/model/impl/db/h2-createTables.sql 12:13:01,952 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/queriablelogger/model/impl/db/h2-createTables.sql 12:13:01,969 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/data/model/impl/db/h2-createTables.sql 12:13:01,977 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/dependency/model/impl/db/h2-createTables.sql 12:13:01,985 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/scheduler/impl/db/h2-createTables.sql 12:13:01,994 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/data/instance/model/impl/db/h2-createTables.sql 12:13:02,000 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/data/instance/model/impl/db/archive/h2-createTables.sql 12:13:02,004 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/supervisor/mapping/db/h2-createTables.sql 12:13:02,007 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/profile/model/impl/db/h2-createTables.sql 12:13:02,012 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/comment/model/impl/db/archive/h2-createTables.sql 12:13:02,015 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/document/mapping/model/impl/db/h2-createTables.sql 12:13:02,018 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/document/mapping/model/impl/db/archive/h2-createTables.sql 12:13:02,021 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/comment/model/impl/db/h2-createTables.sql 12:13:02,025 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/instance/model/impl/db/h2-createTables.sql 12:13:02,039 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/instance/model/impl/db/archive/h2-createTables.sql 12:13:02,046 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/process/definition/model/impl/db/h2-createTables.sql 12:13:02,050 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/category/db/h2-createTables.sql 12:13:02,055 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/actor/mapping/db/h2-createTables.sql 12:13:02,059 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/external/identity/mapping/db/h2-createTables.sql 12:13:02,063 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/identity/model/impl/db/h2-createTables.sql 12:13:02,079 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/command/db/h2-createTables.sql 12:13:02,082 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/core/reporting/model/impl/db/h2-createTables.sql 12:13:02,085 DEBUG [org.bonitasoft.engine.persistence.TenantHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/persistence/db/h2-postCreateStructure.sql 12:13:02,147 DEBUG [org.bonitasoft.engine.persistence.PlatformHibernatePersistenceService] (MSC service thread 1-5) Processing SQL resource : /org/bonitasoft/engine/dependency-platform/model/impl/db/h2-initTables.sql 12:13:02,150 INFO [org.bonitasoft.engine.EngineInitializer] (MSC service thread 1-5) Starting platform... 12:13:02,151 GRAVE [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:53) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.PlatformTenantManager.startPlatform(PlatformTenantManager.java:63) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.EngineInitializer.startPlatform(EngineInitializer.java:121) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:86) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:29) [bonita-server-6.1.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31] 12:13:02,212 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()) 12:13:02,214 GRAVE [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.invokeAPI(ServerAPIImpl.java:213) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:105) [bonita-server-6.1.2.jar:] at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) [bonita-common-6.1.2.jar:] at $Proxy10.login(Unknown Source) at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.initializeDefaultTenant(PlatformTenantListener.java:61) [common-server-6.1.2.jar:] at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.contextInitialized(PlatformTenantListener.java:44) [common-server-6.1.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31] 12:13:02,274 INFO [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /bonita
I tried to clear the database (I'm currently using H2), start again on the same base, etc. without much success. Any idea ? What can I do to have more informations on what's wrong ? Which types of logs should I switch on ?
Thanks & regards,
Julien.