Error 500 - DefaultTenantIdException

So, I’ve installed Tomcat7 and I have mysql running and I have “installed” the bonita deployment files on the correct path, tomcat’s manager indicated that the application is indeed running and has started.
However, when accessing localhost:8080/bonita/ all I get is an error for
“org.bonitasoft.console.common.server.utils.DefaultTenantIdException”

I thought it was because I had some sort of problem installing the app, however with the h2 database it is working, so my best guess would be some problem with the mysql connectors or the database itself.

Help?

Why was this required? Is there another answer at to why this is happening. I have the same problem

Also, bonita.log:

2015-05-26 12:41:29 org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter SEVERE: 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(Tenant$ at org.bonitasoft.console.common.server.login.TenantIdAccessor.getDefaultTenantId(TenantIdAcce$ at org.bonitasoft.console.common.server.login.TenantIdAccessor.ensureTenantId(TenantIdAccessor$ at org.bonitasoft.console.common.server.login.filter.AutoLoginRule.doAuthorize(AutoLoginRule.j$ at org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.isAuthorized(Authoriz$ at org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doAuthorizationFilter$ at org.bonitasoft.console.common.server.login.filter.AuthorizationFilter.doFilter(Authorizatio$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilte$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.bonitasoft.console.common.server.login.filter.SecurityFilter.doFilter(SecurityFilter.ja$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.bonitasoft.console.common.server.login.filter.NoCacheFilter.doFilter(NoCacheFilter.java$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) t org.bonitasoft.console.common.server.sso.filter.InternalSSOFilter.doFilter(InternalSSOFilte$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.bonitasoft.console.common.server.login.filter.SecurityFilter.doFilter(SecurityFilter.ja$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.bonitasoft.console.common.server.login.filter.NoCacheFilter.doFilter(NoCacheFilter.java$ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav$ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:$ at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) Caused by: org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been start$ at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:29$ at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:280) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:128) at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) at com.sun.proxy.$Proxy16.login(Unknown Source) at org.bonitasoft.console.common.server.utils.TenantsManagementUtils.getDefaultTenantId(Tenant$ ... 32 more

2015-05-26 12:41:29 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita].[homepage]
SEVERE: Servlet.service() for servlet [homepage] in context with path [/bonita] threw exception [org.b$
org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Met$
at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:29$

this goes on, but if it’s an error it’ll probably show up at the top

After digging around I’ve added the following lines to the platform-tenant-config.properties:

platform.create=true platform.tenant.create=true platform.stop=true platform.start=true

I am now at the login screen

Today while trying this out it no longer works by using the address http://:8080/bonita , however using the address http://:8080/bonita/login.jsp?redirectUrl=portal/homepage the portal is working fine

My memory is a bit fuzzy, it’s been some time since I’ve fixed it but from what I remember it was a problem with the creation of the database or it’s tables. I haven’t had the need to use “login.jsp?redirectUrl=portal/homepage” at the end of the url.

IF I remember correctly i simply deleted the entire bonita database (on mysql), created a new one, without any tables in it, and booted up as if it was a clean install and it was fixed