Error occuring after API extension deployment
Hi all,
I am having a bit of an issue when trying to deploy an API extension.
Just so you know, this is my first time developing an API extension with Bonita, so i might have missed a step or so which could potentially be the reason of the encountered issue.
The deployment seems to run its course, the .zip and .jar being built
But then i have the following error message.
******************
An error occured during the deployment of revDRAPI
"exception":"class org.bonitasoft.web.toolkit.client.common.api.APIExtznsion", "message":"org.bonitasoft.engine.exception.InvalidPageZipInconsistentException: USERNAME=install | RestAPIController fr/[...]/index.groovy has not been found in archive,",
"cause":{"exception":"class org.bonitasoft.engine.exception.InvalidPageZipInconsistentException",""message':'USERNAME=install | RestAPIController fr/[...]/Index.groovy has not been foun in archive."},"api":"portal","resource":"page"}
org.bonitasoft.studio.engine.http.AddCustomPageRequest.doExecute(AddCustomPageRequest.java:49)
org.bonitasoft.studio.engine.http.AddCustomPageRequest.doExecute(AddCustomPageRequest.java:1)
org.bonitasoft.studio.engine.http.HttpRequest.execute(HttpRequest.java:42)
org.bonitasoft.studio.maven.operation.DeployCustomPageOperation.deploy(DeployCustomPageOperation.java:64)
org.bonitasoft.studio.maven.operation.DeployCustomPageOperation.run(DeployCustomPageOperation.java:99)
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
********************
Does anyone have an idea why that might be happening ?
Sorry i tried to attach pictures but somehow they are not shown in the question...
Thanks
By the why i'm using Bonita 2022.2 if it can be of any help
Hi All,
We finally figured out what the issue was.
I was all because i based my work on an old API extension that had been developed in our project.
It appears that in Bonita 2022.2 u1 they changed the way Groovy is managed. Now it used a compiled version of groovy files.
Therefore, in the page.properties, instead of using 'resourceNameRestAPI.classFileName' we should use 'resourceNameRestAPI.className'
Anyhow, thx y'all for your help,