Cannot start container *.Tomcat8xInstalledLocalContainer

Lai Tat Ming_ Ray November 12, 2022

I am running into trouble when I try to run the first HelloWorld plugin project

https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/

 

I followed the step: 

 1. atlas-create-jira-plugin

 2. atlas-run

But cannot run the project. 

 

my atlas-version:

C:\Users\IGS>atlas-version

ATLAS Version: 8.2.7
ATLAS Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7
ATLAS Scripts: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\bin
ATLAS Maven Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4
AMPS Version: 8.1.2
--------
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" --version -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
Maven home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\..
Java version: 1.8.0_351, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_351\jre
Default locale: en_HK, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

 

error message: 

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16:15 min
[INFO] Finished at: 2022-11-12T12:29:52+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:run (default-cli) on project myPlugin: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@4d9ad37e]: Deployable [http://localhost:2991/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:run (default-cli) on project myPlugin: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@4d9ad37e]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    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:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@4d9ad37e]
    at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute (ContainerStartMojo.java:74)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.execute (AbstractCargoMojo.java:471)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo (MojoExecutor.java:119)
    at com.atlassian.maven.plugins.amps.util.MojoUtils.execute (MojoUtils.java:36)
    at com.atlassian.maven.plugins.amps.MavenGoals.startWebapp (MavenGoals.java:1074)
    at com.atlassian.maven.plugins.amps.product.AbstractWebappProductHandler.startApplication (AbstractWebappProductHandler.java:68)
    at com.atlassian.maven.plugins.amps.product.AbstractProductHandler.start (AbstractProductHandler.java:91)
    at com.atlassian.maven.plugins.amps.RunMojo.startProducts (RunMojo.java:137)
    at com.atlassian.maven.plugins.amps.RunMojo.doExecute (RunMojo.java:84)
    at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.execute (AbstractProductHandlerMojo.java:801)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo (MojoExecutor.java:119)
    at com.atlassian.maven.plugins.amps.util.MojoUtils.execute (MojoUtils.java:36)
    at com.atlassian.maven.plugins.amps.util.MojoUtils.executeWithMergedConfig (MojoUtils.java:66)
    at com.atlassian.maven.plugins.ampsdispatcher.AbstractAmpsDispatcherMojo.execute (AbstractAmpsDispatcherMojo.java:56)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    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:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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)
Caused by: org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:2991/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. 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.ContainerStartMojo.doExecute (ContainerStartMojo.java:58)
    at org.codehaus.cargo.maven2.AbstractCargoMojo.execute (AbstractCargoMojo.java:471)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo (MojoExecutor.java:119)
    at com.atlassian.maven.plugins.amps.util.MojoUtils.execute (MojoUtils.java:36)
    at com.atlassian.maven.plugins.amps.MavenGoals.startWebapp (MavenGoals.java:1074)
    at com.atlassian.maven.plugins.amps.product.AbstractWebappProductHandler.startApplication (AbstractWebappProductHandler.java:68)
    at com.atlassian.maven.plugins.amps.product.AbstractProductHandler.start (AbstractProductHandler.java:91)
    at com.atlassian.maven.plugins.amps.RunMojo.startProducts (RunMojo.java:137)
    at com.atlassian.maven.plugins.amps.RunMojo.doExecute (RunMojo.java:84)
    at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.execute (AbstractProductHandlerMojo.java:801)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo (MojoExecutor.java:119)
    at com.atlassian.maven.plugins.amps.util.MojoUtils.execute (MojoUtils.java:36)
    at com.atlassian.maven.plugins.amps.util.MojoUtils.executeWithMergedConfig (MojoUtils.java:66)
    at com.atlassian.maven.plugins.ampsdispatcher.AbstractAmpsDispatcherMojo.execute (AbstractAmpsDispatcherMojo.java:56)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    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:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

2 answers

1 accepted

3 votes
Answer accepted
Carlos Garcia Navarro
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2022

Hi @Lai Tat Ming_ Ray ,

Welcome to the Community! Hmm... I wonder if this could be related to this other post: https://community.atlassian.com/t5/Jira-questions/Can-t-Run-JIRA-8-5-0-from-SDK/qaq-p/1214395

Lai Tat Ming_ Ray November 13, 2022

Hi @Carlos Garcia Navarro ,

thank for reply me. I think this post : https://community.atlassian.com/t5/Jira-questions/Can-t-Run-JIRA-8-5-0-from-SDK/qaq-p/1214395

should not related to my situation because my Java is a 64-bit version of Java. 

Lai Tat Ming_ Ray November 13, 2022

Hi @Carlos Garcia Navarro ,

after I turn off my anti-virus program, the plugin project can run normal.

I think the timeout reason is my anti-virus program slowing everything in my computer.

The project is timeout When the project cannot start within timeout period [600000]

 

thanks for you help.

Like Carlos Garcia Navarro likes this
Carlos Garcia Navarro
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2022

I'm glad to hear! Thanks @Lai Tat Ming_ Ray for taking the time to share here the solution.

0 votes
Diego Resta May 17, 2024

Pessoal esta dando esse erro pra mim

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:03 min
[INFO] Finished at: 2024-05-17T15:08:26-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:run (default-cli) on project myPlugin: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@67c912d3]: Could not parse element: <parent><Resource name='jdbc/JiraDS'
[ERROR] type='javax.sql.DataSource'
[ERROR] auth='Container'
[ERROR] driverClassName='org.h2.Driver'
[ERROR] factory='org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory'
[ERROR] password=''
[ERROR] url='jdbc:h2:file:C:/Users/diego/OneDrive/Área de Trabalho/DEV - VS Code/JIRA_CLOUD/Atlassin_SDK/myPlugin/target/jira/home/database/h2db'
[ERROR] username='sa'
[ERROR] />
[ERROR] </parent>
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:run (default-cli) on project myPlugin: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@67c912d3]

Caused by: org.codehaus.cargo.util.CargoException: Could not parse element: <parent><Resource name='jdbc/JiraDS'
type='javax.sql.DataSource'
auth='Container'
driverClassName='org.h2.Driver'
factory='org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory'
password=''
url='jdbc:h2:file:C:/Users/diego/OneDrive/Área de Trabalho/DEV - VS Code/JIRA_CLOUD/Atlassin_SDK/myPlugin/target/jira/home/database/h2db'
username='sa'
/>
</parent>
at org.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events