Replacing cfg-bonita-authentication-impl

Hi,

I am trying to replace the bean defined on this configuration file to create my own authentication method. Bonita bundle starts ok, but when I am trying to log, this error is shown:

500

org.bonitasoft.engine.platform.NodeNotStartedException

Oops. Error.

On bonita console I get:

Node not started. Method ‘org.bonitasoft.engine.api.LoginAPI.login’ cannot be called until node has been started (PlatformAPI.startNode())
Node not started. Method ‘org.bonitasoft.engine.api.LoginAPI.login’ cannot be called until node has been started (PlatformAPI.startNode())

I only replace

with:

My code only override the method checkUserCredentials and return true. I have added my jar library to the server classpath. I have tryed to copy the code of AuthenticationServiceImpl from github to my implementation (with the args identityService and logger on the bean injection) and the same error happens.

Any idea?

Thanks.

I put the jar in the tomcat lib and bonita does not find it, so I solved it by putting the jar on the bonita lib folder.

Could you check if there are exceptions in the logs, please?