Build Failure: Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:6.1 .2:run-standalone

564 views
Skip to first unread message

Sarabjeet Oberoi

unread,
Jan 3, 2016, 5:23:03 PM1/3/16
to Atlassian Connect Dev
Hi,

I'm trying to set SDK framework on windows 7 system with Java SE 8. I'm getting error on starting standalone confluence after installing sdk framework. Following is the error log. Please help to resolve this issue.

Complete error is attached for reference.
[DEBUG] [talledLocalContainer] Executing 'C:\Program Files\Java\jdk1.8.0_66\jre\bin\java.exe' with arguments:
'-Xmx512m'
'-XX:MaxPermSize=256m'
'-Xms128m'
'-XX:PermSize=48m'
'-Dplugin.root.directories=C:\atlastutorial\amps-standalone'
'-Dcargo.servlet.uriencoding=UTF-8'
'-Dconfluence.home=C:\atlastutorial\amps-standalone\target\confluence\home'
'-Dplugin.resource.directories='
'-Datlassian.dev.mode=true'
'-Djava.awt.headless=true'
'-Datlassian.sdk.version="6.1.2"'
'-Dcatalina.home=C:\atlastutorial\amps-standalone\target\container\tomcat8x\apache-tomcat-8.0.9'
'-Dcatalina.base=C:\atlastutorial\amps-standalone\target\container\tomcat8x\cargo-confluence-home'
'-Djava.io.tmpdir=C:\atlastutorial\amps-standalone\target\container\tomcat8x\cargo-confluence-home/temp'
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
'-Djava.util.logging.config.file=C:\atlastutorial\amps-standalone\target\container\tomcat8x\cargo-confluence-home/conf/logging.properties'
'-classpath'
'C:\atlastutorial\amps-standalone\target\container\tomcat8x\apache-tomcat-8.0.9\bin\tomcat-juli.jar;C:\atlastutorial\amps-standalone\target\container\tomcat8x\apache-tomcat-8.0.9\bin\bootstrap.jar;C:\Program Files\Java\jdk1.8.0_66\lib\tools.jar'
'org.apache.catalina.startup.Bootstrap'
'start'

The ' characters around the executable and arguments are
not part of the command.
[DEBUG] [talledLocalContainer] Output redirected to C:\atlastutorial\amps-standalone\target\confluence-LATEST.log
[DEBUG] [talledLocalContainer] Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.8.0_66\jre\bin\java.exe' with arguments:
'-Xmx512m'
'-XX:MaxPermSize=256m'
'-Xms128m'
'-XX:PermSize=48m'
'-Dplugin.root.directories=C:\atlastutorial\amps-standalone'
'-Dcargo.servlet.uriencoding=UTF-8'
'-Dconfluence.home=C:\atlastutorial\amps-standalone\target\confluence\home'
'-Dplugin.resource.directories='
'-Datlassian.dev.mode=true'
'-Djava.awt.headless=true'
'-Datlassian.sdk.version="6.1.2"'
'-Dcatalina.home=C:\atlastutorial\amps-standalone\target\container\tomcat8x\apache-tomcat-8.0.9'
'-Dcatalina.base=C:\atlastutorial\amps-standalone\target\container\tomcat8x\cargo-confluence-home'
'-Djava.io.tmpdir=C:\atlastutorial\amps-standalone\target\container\tomcat8x\cargo-confluence-home/temp'
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
'-Djava.util.logging.config.file=C:\atlastutorial\amps-standalone\target\container\tomcat8x\cargo-confluence-home/conf/logging.properties'
'-classpath'
'C:\atlastutorial\amps-standalone\target\container\tomcat8x\apache-tomcat-8.0.9\bin\tomcat-juli.jar;C:\atlastutorial\amps-standalone\target\container\tomcat8x\apache-tomcat-8.0.9\bin\bootstrap.jar;C:\Program Files\Java\jdk1.8.0_66\lib\tools.jar'
'org.apache.catalina.startup.Bootstrap'
'start'

The ' characters around the executable and arguments are
not part of the command.
[DEBUG] [URLDeployableMonitor] URL [http://localhost:1990/cargocpc/index.html] is not responding: -1 java.net.ConnectException: Connection refused: connect
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@1fd31f4]
[DEBUG] [URLDeployableMonitor] Checking URL [http://localhost:1990/cargocpc/index.html] for status using a timeout of [600000] ms...
[DEBUG] [URLDeployableMonitor] URL [http://localhost:1990/cargocpc/index.html] is not responding: -1 java.net.ConnectException: Connection refused: connect
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@1fd31f4]
[DEBUG] [URLDeployableMonitor] Checking URL [http://localhost:1990/cargocpc/index.html] for status using a timeout of [600000] ms...
[DEBUG] [URLDeployableMonitor] URL [http://localhost:1990/cargocpc/index.html] is not responding: -1 java.net.ConnectException: Connection refused: connect
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@1fd31f4]
[DEBUG] [URLDeployableMonitor] Checking URL [http://localhost:1990/cargocpc/index.html] for status using a timeout of [600000] ms...
[DEBUG] [URLDeployableMonitor] URL [http://localhost:1990/cargocpc/index.html] is not responding: -1 java.net.ConnectException: Connection refused: connect
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@1fd31f4]
[DEBUG] [URLDeployableMonitor] Checking URL [http://localhost:1990/cargocpc/index.html] for status using a timeout of [600000] ms...
[DEBUG] [URLDeployableMonitor] URL [http://localhost:1990/cargocpc/index.html] is not responding: -1 java.net.ConnectException: Connection refused: connect
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@1fd31f4]
[DEBUG] [URLDeployableMonitor] URL [http://localhost:1990/cargocpc/index.html] is not responding: -1 java.net.SocketTimeoutException: Read timed out
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@1fd31f4]
[INFO] [yer.DeployerWatchdog] Deployable [http://localhost:1990/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown.
[WARNING] [talledLocalContainer] org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:1990/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24:24 min
[INFO] Finished at: 2015-12-29T22:24:18+05:30
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:6.1.2:run-standalone (default-cli) on project standalone-pom: Unable to execute mojo: Execution null of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.7:start failed: Deployable [http://localhost:1990/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:maven-amps-plugin:6.1.2:run-standalone (default-cli) on project standalone-pom: Unable to execute mojo
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
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:497)
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: Unable to execute mojo
at com.atlassian.maven.plugins.amps.RunStandaloneMojo.doExecute(RunStandaloneMojo.java:80)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.execute(AbstractProductHandlerMojo.java:786)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecutor.java:174)
at org.twdata.maven.mojoexecutor.MojoExecutor$ExecutionEnvironmentM3.executeMojo(MojoExecutor.java:476)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:75)
at com.atlassian.maven.plugins.amps.MavenGoals.executeAmpsRecursively(MavenGoals.java:156)
at com.atlassian.maven.plugins.amps.RunStandaloneMojo.doExecute(RunStandaloneMojo.java:76)
... 22 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecutor.java:174)
at org.twdata.maven.mojoexecutor.MojoExecutor$ExecutionEnvironmentM3.executeMojo(MojoExecutor.java:476)
at com.atlassian.maven.plugins.amps.MavenGoals.executeMojoExcludeProductCargoConfig(MavenGoals.java:925)
at com.atlassian.maven.plugins.amps.MavenGoals.startWebapp(MavenGoals.java:1008)
at com.atlassian.maven.plugins.amps.product.AbstractWebappProductHandler.startApplication(AbstractWebappProductHandler.java:71)
at com.atlassian.maven.plugins.amps.product.AbstractProductHandler.start(AbstractProductHandler.java:82)
at com.atlassian.maven.plugins.amps.RunMojo.startProducts(RunMojo.java:135)
at com.atlassian.maven.plugins.amps.RunMojo.doExecute(RunMojo.java:97)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.execute(AbstractProductHandlerMojo.java:786)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecutor.java:172)
... 26 more
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution null of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.7:start failed: Deployable [http://localhost:1990/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:144)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecutor.java:172)
... 36 more
Caused by: org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:1990/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:353)
at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:231)
at org.codehaus.cargo.maven2.ContainerStartMojo.executeLocalContainerAction(ContainerStartMojo.java:96)
at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:63)
at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:432)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
... 37 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

Dec12.txt

Seb Ruiz

unread,
Jan 3, 2016, 5:37:24 PM1/3/16
to atlassian-...@googlegroups.com
Sarabjeet,

What command are you running? Have you followed our instructions at https://developer.atlassian.com/static/connect/docs/latest/developing/developing-locally.html ?

Cheers

--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Seb Ruiz
Atlassian

Sarabjeet Oberoi

unread,
Jan 4, 2016, 5:25:58 PM1/4/16
to Atlassian Connect Dev

I used atlas-run-standalone --product confluence.

This command worked on one of the system, but its not working on any other.

Thanks,
Sarabjeet Kaur
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connect-dev+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Seb Ruiz
Atlassian
Reply all
Reply to author
Forward
0 new messages