Replacing cfg-bonita-authentication-impl

1
0
-1

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

<bean id="authenticationService" class="org.bonitasoft.engine.authentication.impl.AuthenticationServiceImpl">
                <constructor-arg name="identityService" ref="identityService" />
                <constructor-arg name="logger" ref="tenantTechnicalLoggerService" />
        </bean>

with:

<bean id="authenticationService" class="route.to.my.implementation">
        </bean>

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.

Comments

Submitted by elias.ricken on Mon, 08/04/2014 - 14:46

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

1 answer

1
0
-1

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.

Notifications