Hi,
I am trying to setup Java EE Tutorial specially "Persistence" project. Checked out complete javaeetutorial project. Need your help and support to setup the example project. When I ran maven build, got following error -
[DEBUG] [DeployerRedeployMojo] Resolved artifact and dependencies: [file:/C:/Users/Rahul/.m2/repository/org/codehaus/cargo/cargo-core-container-glassfish/1.4.4/cargo-core-container-glassfish-1.4.4.jar]
[INFO] [DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.4 for container glassfish4x
[DEBUG] Performing deployment action into [GlassFish 4.x]...
[DEBUG] Initial deployable values: groupId = [null], artifactId = [null], type = [null], location = [null]
[DEBUG] Searching for an artifact that matches [org.glassfish.javaeetutorial:address-book:war:null]...
[DEBUG] Checking artifact [org.glassfish.javaeetutorial:address-book:war:null]...
[DEBUG] Computed deployable values: groupId = [org.glassfish.javaeetutorial], artifactId = [address-book], classifier = [null], type = [war], location = [C:\Development\EclipseWorkspace\javaeetutorial~svn\examples\persistence\address-book\target\address-book.war]
[DEBUG] Redeploying [C:\Development\EclipseWorkspace\javaeetutorial~svn\examples\persistence\address-book\target\address-book.war] ...
[DEBUG] [talledLocalContainer] Execute:Java13CommandLauncher: Executing 'C:\InstalledSoftware\Java\jdk1.8.0_45\jre\bin\java.exe' with arguments:
'-jar'
'c:\InstalledSoftware\glassfish-4.1\glassfish\modules\admin-cli.jar'
'--interactive=false'
'--port'
'4848'
'--user'
'admin'
'--passwordfile'
'c:\InstalledSoftware\glassfish-4.1\glassfish\domains\password.properties'
'deploy'
'--force'
'--contextroot'
'address-book'
'C:\Development\EclipseWorkspace\javaeetutorial~svn\examples\persistence\address-book\target\address-book.war'
The ' characters around the executable and arguments are
not part of the command.
[INFO] [talledLocalContainer] Remote server does not listen for requests on [localhost:4848]. Is the server up?
[INFO] [talledLocalContainer] Unable to get remote commands.
[INFO] [talledLocalContainer] Closest matching local command(s):
[INFO] [talledLocalContainer] help
[INFO] [talledLocalContainer] Command deploy failed.
[INFO] [talledLocalContainer]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] persistence ........................................ SUCCESS [ 1.720 s]
[INFO] address-book ....................................... FAILURE [ 22.857 s]
[INFO] order .............................................. SKIPPED
[INFO] roster ............................................. SKIPPED
[INFO] roster-common ...................................... SKIPPED
[INFO] roster-ejb ......................................... SKIPPED
[INFO] roster-appclient ................................... SKIPPED
[INFO] roster-ear ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.117 s
[INFO] Finished at: 2015-07-21T22:45:07+05:30
[INFO] Final Memory: 31M/232M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project address-book: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: GlassFish admin command failed: asadmin exited 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project address-book: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: GlassFish admin command failed: asadmin exited 1
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
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:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
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.PluginExecutionException: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: GlassFish admin command failed: asadmin exited 1
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: org.codehaus.cargo.util.CargoException: GlassFish admin command failed: asadmin exited 1
at org.codehaus.cargo.container.glassfish.internal.GlassFish3xAsAdmin.invokeAsAdmin(GlassFish3xAsAdmin.java:88)
at org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalContainer.invokeAsAdmin(AbstractGlassFishInstalledLocalContainer.java:96)
at org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalContainer.invokeAsAdmin(AbstractGlassFishInstalledLocalContainer.java:69)
at org.codehaus.cargo.container.glassfish.GlassFish3xInstalledLocalDeployer.doDeploy(GlassFish3xInstalledLocalDeployer.java:89)
at org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishInstalledLocalDeployer.redeploy(AbstractGlassFishInstalledLocalDeployer.java:97)
at org.codehaus.cargo.maven2.DeployerRedeployMojo.performDeployerActionOnSingleDeployable(DeployerRedeployMojo.java:50)
at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:180)
at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:97)
at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:432)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :address-book