I m using tomcat + bonita bundle and
by documentation http://documentation.bonitasoft.com/tomcat-bundle
i configure database to my sql , when i start server it started successfully .
but when i try to go into portol : http://localhost:8080/bonita
gives following error
http://localhost:8080/bonita/portal/homepage
500
org.bonitasoft.console.common.server.utils.DefaultTenantIdException
Pl help what should i do ?
what i mistaken ?
Hello,
It seems that something goes wrong during the Tomcat start. The “org.bonitasoft.console.common.server.utils.DefaultTenantIdException” error means that tables in Bonitasoft Database has not been initiated (DataSource trouble or whatever). Check the full trace of the Tomcat start and try to find the root cause.
Thanks,
Pierrick
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class ‘net.sf.ehcache.constructs.web.ShutdownListener’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class ‘org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class ‘org.bonitasoft.console.common.server.servlet.PlatformTenantListener’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jul 9, 2014 6:08:24 PM org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener contextInitialized
SEVERE: Error while initializing the Engine
org.bonitasoft.engine.exception.BonitaRuntimeException: You need to set the system property: bonita.home
at org.bonitasoft.engine.EngineInitializerProperties.(EngineInitializerProperties.java:61)
at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:43)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.bonitasoft.engine.exception.BonitaHomeNotSetException: You need to set the system property: bonita.home
at org.bonitasoft.engine.home.BonitaHome.getBonitaHomeFolder(BonitaHome.java:34)
at org.bonitasoft.engine.home.BonitaHomeServer.getBonitaHomeServerFolder(BonitaHomeServer.java:89)
at org.bonitasoft.engine.home.BonitaHomeServer.getPlatformFolder(BonitaHomeServer.java:99)
at org.bonitasoft.engine.home.BonitaHomeServer.getPlatformConfFolder(BonitaHomeServer.java:108)
at org.bonitasoft.engine.home.BonitaHomeServer.getPlatformFile(BonitaHomeServer.java:115)
at org.bonitasoft.engine.home.BonitaHomeServer.getPlatformProperties(BonitaHomeServer.java:202)
at org.bonitasoft.engine.EngineInitializerProperties.(EngineInitializerProperties.java:59)
… 25 more
Jul 9, 2014 6:08:24 PM org.bonitasoft.console.common.server.servlet.PlatformTenantListener initializeDefaultTenant
SEVERE: Bonita exception while creating tenant directory
org.bonitasoft.engine.exception.BonitaHomeNotSetException: You need to set the system property: bonita.home
at org.bonitasoft.engine.home.BonitaHome.getBonitaHomeFolder(BonitaHome.java:34)
at org.bonitasoft.engine.home.BonitaHomeClient.getBonitaHomeClientFolder(BonitaHomeClient.java:42)
at org.bonitasoft.engine.util.APITypeManager.getProperties(APITypeManager.java:78)
at org.bonitasoft.engine.util.APITypeManager.getProperty(APITypeManager.java:73)
at org.bonitasoft.engine.util.APITypeManager.getAPIType(APITypeManager.java:45)
at org.bonitasoft.engine.api.TenantAPIAccessor.getServerAPI(TenantAPIAccessor.java:43)
at org.bonitasoft.engine.api.TenantAPIAccessor.getAPI(TenantAPIAccessor.java:82)
at org.bonitasoft.engine.api.TenantAPIAccessor.getLoginAPI(TenantAPIAccessor.java:88)
at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.initializeDefaultTenant(PlatformTenantListener.java:61)
at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.contextInitialized(PlatformTenantListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 9, 2014 6:08:24 PM org.bonitasoft.console.common.server.servlet.PlatformTenantListener contextInitialized
SEVERE: Error while initializing the default tenant
org.bonitasoft.engine.exception.BonitaHomeNotSetException: You need to set the system property: bonita.home
at org.bonitasoft.engine.home.BonitaHome.getBonitaHomeFolder(BonitaHome.java:34)
at org.bonitasoft.engine.home.BonitaHomeClient.getBonitaHomeClientFolder(BonitaHomeClient.java:42)
at org.bonitasoft.engine.util.APITypeManager.getProperties(APITypeManager.java:78)
at org.bonitasoft.engine.util.APITypeManager.getProperty(APITypeManager.java:73)
at org.bonitasoft.engine.util.APITypeManager.getAPIType(APITypeManager.java:45)
at org.bonitasoft.engine.api.TenantAPIAccessor.getServerAPI(TenantAPIAccessor.java:43)
at org.bonitasoft.engine.api.TenantAPIAccessor.getAPI(TenantAPIAccessor.java:82)
at org.bonitasoft.engine.api.TenantAPIAccessor.getLoginAPI(TenantAPIAccessor.java:88)
at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.initializeDefaultTenant(PlatformTenantListener.java:61)
at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.contextInitialized(PlatformTenantListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘BonitaHomeFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘TokenGeneratorFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘AuthorizationFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘InternalSSOFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘BPMURLSupportFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘NoCacheFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘RestAPIAuthorizationFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘CacheFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘SecurityFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘ApplicationResourceCacheFilter’
Jul 9, 2014 6:08:24 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘TokenValidatorFilter’
At the first start, the script creates the tables for Bonita in the database, but you have first to create an account and a database for Bonita. This is a common mistake. Did you do that ?
yup i created database : bonita and in config file i mentioned it