Failed to run server module (source code)

Description

Hello,
I'm new using Bonita and I was trying to build it from source code so I could learn more about it.
I executed the script and everything went well, until I tried to execute the following line in the server module:

./mvnw clean verify org.codehaus.cargo:cargo-maven2-plugin:run -DskipTests -Pdev

Now, it finishes with a build success, but inside there is an error with this output:

[INFO] [en2.ContainerRunMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.6.4 for container tomcat8x
[INFO] [talledLocalContainer] Tomcat 8.x starting...
[INFO] [stalledLocalDeployer] Deploying /home/plastres/Escritorio/Bonita/Build-Bonita/bonita-web/server/target/tomcat-deployable to /home/plastres/Escritorio/Bonita/Build-Bonita/bonita-web/server/target/tomcat8x/webapps...
[INFO] [yer.DeployerWatchdog] Deployable http://localhost:8080/cargocpc/index.html failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
[WARNING] [talledLocalContainer] org.codehaus.cargo.container.ContainerException: Deployable http://localhost:8080/cargocpc/index.html failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
[ERROR] Starting container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@1f13276a] failed
org.codehaus.cargo.container.ContainerException: Deployable http://localhost:8080/cargocpc/index.html failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
at org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch (DeployerWatchdog.java:111)
at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion (AbstractLocalContainer.java:385)
at org.codehaus.cargo.container.spi.AbstractLocalContainer.start (AbstractLocalContainer.java:232)
at org.codehaus.cargo.maven2.ContainerStartMojo.executeLocalContainerAction (ContainerStartMojo.java:84)
at org.codehaus.cargo.maven2.ContainerRunMojo.doExecute (ContainerRunMojo.java:96)
at org.codehaus.cargo.maven2.AbstractCargoMojo.execute (AbstractCargoMojo.java:462)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:55)
[INFO] Press Ctrl-C to stop the container...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:08 min
[INFO] Finished at: 2020-02-28T12:44:48+01:00
[INFO] Final Memory: 56M/536M
[INFO] ------------------------------------------------------------------------

I've tried several things, like downloading again the source code from the repository (I'm using the dev branch), but I don't know why it's not working.

Thank you!

Environment

Ubuntu 18.04
Java 8

External Link

None

Workaround

None

Activity

Show:
Patricia Rodríguez Lastres
March 2, 2020, 8:51 AM

I’ve installed the master branch and I get the same output.

Antoine Mottier
March 2, 2020, 9:17 AM

Hi,

Did you use the script provided here: https://github.com/Bonitasoft-Community/Build-Bonita?

If yes did which branch or tag of the repository did you used?

I'll try to reproduce your error.

Patricia Rodríguez Lastres
March 2, 2020, 9:34 AM

Hi!

Yes, I used the script and followed the instructions to run the server module.

I’ve tried dev and master branches, and still got the same issue.

Assignee

Delphine Coille

Reporter

Patricia Rodríguez Lastres

Affects versions

Reference

None

Fix versions

None
Configure