[RESOLVED] Can't retrieve default tenant id - new jBoss install 6.2.2

I have a jBoss install up and running and have logged in and added users, groups, etc. When I sent to a diufferent users computer to walk throug logging in and uising I am getting errors: 

Can't retrieve default tenant id

I wen't to lunch and I get the same errors from the session that I have running on my own client. I have looked around a bit and have seen some posts on 6.x.x and above that ask about the contents of  the

 BONITA_HOME/bonita/client/platform/conf/platform-tenant-config.properties

file. This file on my instance only has the two lines that were in it before starting:

#For tenant
platform.tenant.default.username=admin
platform.tenant.default.password=removed

It seems like Bonita modifies the contents of this file. It's loke there is a permission problem. The file is owned by jboss user. I have not been able to determine what user jboss is running as.

Any help would be greatly appreciated.

Also, using a third party browser to look at the contents of the bonita tables it looks like the tables were created just fine. They also show the users that I have entered.

Errors:

HTTP Status 500 -

<p>
	<strong>type</strong>&nbsp;Exception report</p>

<p>
	<strong>message</strong></p>

<p>
	<strong>description</strong>&nbsp;The server encountered an internal error () that prevented it from fulfilling this request.</p>

<p>
	<strong>exception</strong></p>

<pre>

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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

<p>
	&nbsp;</p>

<p>
	<strong>root cause</strong></p>

<pre>

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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

<p>
	&nbsp;</p>

<p>
	<strong>root cause</strong></p>

<pre>

org.bonitasoft.engine.platform.LoginException: org.bonitasoft.engine.exception.BonitaRuntimeException: Unable to login: the user is disable
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:61)
sun.reflect.GeneratedMethodAccessor1092.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:292)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:217)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:105)
org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
com.sun.proxy.$Proxy519.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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:744)
══════════════════════════.<server stack trace>()
org.bonitasoft.engine.execution.TransactionExecutorImpl.execute(TransactionExecutorImpl.java:54)
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:101)
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:59)
sun.reflect.GeneratedMethodAccessor1092.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:292)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:217)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:105)
org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
com.sun.proxy.$Proxy519.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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:744)
.Caused By:(org.bonitasoft.engine.exception.BonitaRuntimeException: Unable to login: the user is disable)
org.bonitasoft.engine.api.impl.LoginAPIImpl$LoginAndRetrieveUser.execute(LoginAPIImpl.java:160)
org.bonitasoft.engine.execution.TransactionExecutorImpl$1.call(TransactionExecutorImpl.java:44)
org.bonitasoft.engine.execution.TransactionExecutorImpl$1.call(TransactionExecutorImpl.java:40)
org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:223)
org.bonitasoft.engine.execution.TransactionExecutorImpl.execute(TransactionExecutorImpl.java:50)
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:101)
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:59)
sun.reflect.GeneratedMethodAccessor1092.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:292)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:217)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:105)
org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
com.sun.proxy.$Proxy519.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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:744)
══════════════════════════.<server stack trace>()
org.bonitasoft.engine.api.impl.LoginAPIImpl$LoginAndRetrieveUser.execute(LoginAPIImpl.java:151)
org.bonitasoft.engine.execution.TransactionExecutorImpl$1.call(TransactionExecutorImpl.java:44)
org.bonitasoft.engine.execution.TransactionExecutorImpl$1.call(TransactionExecutorImpl.java:40)
org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:223)
org.bonitasoft.engine.execution.TransactionExecutorImpl.execute(TransactionExecutorImpl.java:50)
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:101)
org.bonitasoft.engine.api.impl.LoginAPIImpl.login(LoginAPIImpl.java:59)
sun.reflect.GeneratedMethodAccessor1092.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:292)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:217)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:105)
org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88)
com.sun.proxy.$Proxy519.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)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Regarding the stacktrace, you get the error "Unable to login: the user is disable ".

This is quite self-explained: you try to log in with a disabled user.
To solve this, log in as an admin user and check that the user you try to login with a "activated / enabled".

If you're using Subscription edition of Bonita BPM, please check that your license is correctly installed.

If you've copied a Subscription Jboss bundle on someone else's computer, please note that you need a different license for that different environment.

Hope this helps,
Emmanuel.

This seemed to resolve the issue:

In the Change Default Credentials I missed that all three files should have the same password. I changed that and it *seems* to be working now. - See more at: http://community.bonitasoft.com//answers/cant-retrieve-default-tenant-id-new-jboss-install-622#comment-35235

In the Change Default Credentials I missed that all three files should have the same password. I changed that and it *seems* to be working now.

When creating the users, did you add them to User or Administrator profiles? Can you still use your "admin / removed" technical account ? did you create, in the Portal, a user with the login "admin" (the same than the technical account) ?

I was already logged in as the user that Bonita was claiming was disabled.