I did an installation on Ubuntu 14.04 LTS according the document http://documentation.bonitasoft.com/ubuntu-openjdk-tomcat-postgresql-0
But when I’m trying to connect to BPM Portal (http://<your_server_hostname>:8080/bonita) I’m getting a 404 error. Question: is the Tomcat part of the manual complete. It seems that the virual directory ‘bonita’ does not exist…
You did use your server name didn’t you?
http://:8080/bonita is wrong…
.
http://myservername:8080/bonita is correct…
regards
Seán
OK, but in your post it didn’t look like it
So if you look at your folder hierarchy do you find these:?
/opt/bonita/bonita_home-7.1.4/engine-server/work/platform
/opt/bonita/bonita_home-7.1.4/engine-client/work/bonita-client-community.properties
because that’s what it’s looking for.
If not then you must have got something wrong somewhere,
regards
Directory and file were not mentioned in de the installation document. This is the reason they were missing. Fixed that by creating the missing folders and copying the file ‘bonita-client-community.properties’ to the required location.
After restarting the server there are still errors.
Bonita.yyyy-MM-dd.log:
`2015-12-30 12:48:02.695 +0100 org.bonitasoft.engine.EngineInitializer org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Initializing Bonita Engine…
2015-12-30 12:48:02.695 +0100 org.bonitasoft.engine.EngineInitializer org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Initializing Spring context…
2015-12-30 12:48:02.696 +0100 org.bonitasoft.engine.EngineInitializer org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Exception while initializing the engine: org.bonitasoft.engine.exception.BonitaRuntimeException: org.bonitasoft.engine.exception.BonitaHomeConfigurationException: platformClassName not set in bonita-platform-private.properties
2015-12-30 12:48:02.697 +0100 org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener contextInitialized
SEVERE: Error while initializing the Engine
org.bonitasoft.engine.exception.BonitaRuntimeException: org.bonitasoft.engine.exception.BonitaHomeConfigurationException: platformClassName not set in bonita-platform-private.properties
at org.bonitasoft.engine.EngineInitializer.getPlatformAccessor(EngineInitializer.java:65)
at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:83)
at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:42)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.bonitasoft.engine.exception.BonitaHomeConfigurationException: platformClassName not set in bonita-platform-private.properties
at org.bonitasoft.engine.service.impl.ServiceAccessorFactory.createPlatformServiceAccessor(ServiceAccessorFactory.java:63)
at org.bonitasoft.engine.EngineInitializer.getPlatformAccessor(EngineInitializer.java:63)
… 15 more
2015-12-30 12:48:02.778 +0100 org.bonitasoft.console.common.server.servlet.PlatformTenantListener org.bonitasoft.console.common.server.servlet.PlatformTenantListener initializeDefaultTenant
SEVERE: Bonita exception while creating tenant directory
org.bonitasoft.engine.exception.ServerAPIException: java.lang.reflect.InvocationTargetException
at org.bonitasoft.engine.api.impl.LocalServerAPIFactory.getServerAPI(LocalServerAPIFactory.java:45)
at org.bonitasoft.engine.api.TenantAPIAccessor.getServerAPI(TenantAPIAccessor.java:53)
at org.bonitasoft.engine.api.TenantAPIAccessor.getAPI(TenantAPIAccessor.java:97)
at org.bonitasoft.engine.api.TenantAPIAccessor.getLoginAPI(TenantAPIAccessor.java:103)
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:4973)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bonitasoft.engine.api.impl.LocalServerAPIFactory.getServerAPI(LocalServerAPIFactory.java:43)
… 18 more
Caused by: java.lang.ExceptionInInitializerError: Cannot load class null. Platform property ‘serverApi’ may not be set.
at org.bonitasoft.engine.api.impl.ServerAPIFactory.getServerAPIImplementation(ServerAPIFactory.java:47)
at org.bonitasoft.engine.api.impl.ServerAPIFactory.getServerAPI(ServerAPIFactory.java:35)
… 23 more
2015-12-30 12:48:02.779 +0100 org.bonitasoft.console.common.server.servlet.PlatformTenantListener org.bonitasoft.console.common.server.servlet.PlatformTenantListener contextInitialized
SEVERE: Error while initializing the default tenant
org.bonitasoft.engine.exception.ServerAPIException: java.lang.reflect.InvocationTargetException
at org.bonitasoft.engine.api.impl.LocalServerAPIFactory.getServerAPI(LocalServerAPIFactory.java:45)
at org.bonitasoft.engine.api.TenantAPIAccessor.getServerAPI(TenantAPIAccessor.java:53)
at org.bonitasoft.engine.api.TenantAPIAccessor.getAPI(TenantAPIAccessor.java:97)
at org.bonitasoft.engine.api.TenantAPIAccessor.getLoginAPI(TenantAPIAccessor.java:103)
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:4973)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bonitasoft.engine.api.impl.LocalServerAPIFactory.getServerAPI(LocalServerAPIFactory.java:43)
… 18 more
Caused by: java.lang.ExceptionInInitializerError: Cannot load class null. Platform property ‘serverApi’ may not be set.
at org.bonitasoft.engine.api.impl.ServerAPIFactory.getServerAPIImplementation(ServerAPIFactory.java:47)
at org.bonitasoft.engine.api.impl.ServerAPIFactory.getServerAPI(ServerAPIFactory.java:35)
… 23 more
2015-12-30 12:48:03.219 +0100 org.bonitasoft.engine.EngineInitializer org.bonitasoft.engine.EngineInitializer unloadEngine
INFO: Stopping Bonita Engine…
2015-12-30 12:48:03.219 +0100 org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener contextDestroyed
SEVERE: Error while unloading the Engine
org.bonitasoft.engine.exception.BonitaRuntimeException: org.bonitasoft.engine.exception.BonitaHomeConfigurationException: platformClassName not set in bonita-platform-private.properties
at org.bonitasoft.engine.EngineInitializer.getPlatformAccessor(EngineInitializer.java:65)
at org.bonitasoft.engine.EngineInitializer.unloadEngine(EngineInitializer.java:156)
at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextDestroyed(EngineInitializerListener.java:33)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.bonitasoft.engine.exception.BonitaHomeConfigurationException: platformClassName not set in bonita-platform-private.properties
at org.bonitasoft.engine.service.impl.ServiceAccessorFactory.createPlatformServiceAccessor(ServiceAccessorFactory.java:63)
at org.bonitasoft.engine.EngineInitializer.getPlatformAccessor(EngineInitializer.java:63)
… 11 more
`
Directory and file were not mentioned in de the installation document. This is the reason they were missing. Fixed that by creating the missing folders and copying the file ‘bonita-client-community.properties’ to the required location.
The directory and file are not supposed to be mentioned in the installation document. they are supposed to be created by the installation.
I think you must have gotten a step wrong somewhere in the installation.
For example if you search your installation for the folder
/opt/bonita/bonita_home-7.1.4/engine-server/work/platform
is there an extra /bonita/ in there for i.e.
/opt/bonita/bonita/bonita_home-7.1.4/engine-server/work/platform
Where do you find the original platform folder?
I think you might have to try the whole install again, and if you do fix it can you let us know how you did it…
regards
Seán