hello, configure tomcat with mysql. BD was built correctly, but when I try to run the following example throws me the following error
try {
final LoginAPI loginAPI = TenantAPIAccessor.getLoginAPI();
APISession session = loginAPI.login(“bonita”, “bpm”);
ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI(session);
} catch (BonitaHomeNotSetException ex) {
Logger.getLogger(ControladorIndex.class.getName()).log(Level.SEVERE, null, ex);
} catch (ServerAPIException ex) {
Logger.getLogger(ControladorIndex.class.getName()).log(Level.SEVERE, null, ex);
} catch (UnknownAPITypeException ex) {
Logger.getLogger(ControladorIndex.class.getName()).log(Level.SEVERE, null, ex);
} catch (LoginException ex) {
Logger.getLogger(ControladorIndex.class.getName()).log(Level.SEVERE, null, ex);
}
Node not started. Method ‘org.bonitasoft.engine.api.LoginAPI.login’ cannot be called until node has been started (PlatformAPI.startNode()). Exact class: org.bonitasoft.engine.api.impl.LoginAPIImpl
2016-04-21 18:05:16.149 -0300 org.zkoss org.zkoss.zk.ui.impl.UiEngineImpl handleError:1352
GRAVE: >>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.checkMethodAccessibility(ServerAPIImpl.java:287)
at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIOutsideTransaction(ServerAPIImpl.java:278)